{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"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":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"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":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"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":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Deconvolution2D._forwardGCGPU (cyclomatic 72): Deconvolution2D._forwardGCGPU has cyclomatic complexity 72 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Deconvolution2D.swift"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"020142b897904c68eaa26e440db40e469b2f5ca78ec9e760a8af8f7e5bb692dc"}},{"ruleId":"D1","level":"warning","message":{"text":"Convolution2D._forwardGCGPU (cyclomatic 64): Convolution2D._forwardGCGPU has cyclomatic complexity 64 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1038}}}],"partialFingerprints":{"codehealthFindingId/v1":"b067e71ef1e490bb0bda62e813d1a6866931c5adc65acf90e4653fdbda7861ab"}},{"ruleId":"D1","level":"warning","message":{"text":"Deconvolution2D._forwardGCCPU (cyclomatic 63): Deconvolution2D._forwardGCCPU has cyclomatic complexity 63 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Deconvolution2D.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"030ad651864899d9b35a52e0e424efcab528f20a347aa52805f91869eb3b2e39"}},{"ruleId":"D1","level":"warning","message":{"text":"Convolution2D._forwardGCCPU (cyclomatic 55): Convolution2D._forwardGCCPU has cyclomatic complexity 55 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f39940ee9ceae55214cb1296d0f697669d542886e1246feacd750c5ad313318"}},{"ruleId":"D1","level":"warning","message":{"text":"FullyConnectedPatch._forwardGCCPU (cyclomatic 34): FullyConnectedPatch._forwardGCCPU 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. This shape REPEATS in the file: one other method here (FullyConnectedPatch._forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce6994620f0abc898c5f532c8b656e974596c2e5a5a6e19cb1adf4da5a26b2d"}},{"ruleId":"D1","level":"warning","message":{"text":"FullyConnectedPatch._forwardGCGPU (cyclomatic 34): FullyConnectedPatch._forwardGCGPU 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. This shape REPEATS in the file: one other method here (FullyConnectedPatch._forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f9cd001141a061fc7182099c5769192a833c9f58bd46b6ecfba5fbaa9b5204"}},{"ruleId":"D1","level":"warning","message":{"text":"FullyConnectedSeq._forwardGCCPU (cyclomatic 28): FullyConnectedSeq._forwardGCCPU has cyclomatic complexity 28 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (FullyConnectedSeq._forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"40214a4d73cace4518172a686ecc7daed8ec03a1e7151c59558d986f49104573"}},{"ruleId":"D1","level":"warning","message":{"text":"FullyConnectedSeq._forwardGCGPU (cyclomatic 28): FullyConnectedSeq._forwardGCGPU has cyclomatic complexity 28 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (FullyConnectedSeq._forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ea510d0edafb272a0e79159cac73a6e43fd14f47c80f31f7a5a973f6c3c4ca"}},{"ruleId":"D1","level":"warning","message":{"text":"AdaptiveAvgPool2D.forwardGCCPU (cyclomatic 27): AdaptiveAvgPool2D.forwardGCCPU has cyclomatic complexity 27 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c0406d1316cca5576913ee71b54696c54fb4f31e5f951ebe871bbb9798fe12"}},{"ruleId":"D1","level":"warning","message":{"text":"FullyConnected._forwardGCCPU (cyclomatic 24): FullyConnected._forwardGCCPU has cyclomatic complexity 24 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (FullyConnected._forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"46210b8e62abb861f723ea5834f2c0b98ea561c6f0bf3ddec6e0bb8a77730f26"}},{"ruleId":"D1","level":"warning","message":{"text":"FullyConnected._forwardGCGPU (cyclomatic 24): FullyConnected._forwardGCGPU has cyclomatic complexity 24 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (FullyConnected._forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a7ae61680757d3799a1c4523841f1dd896fb46626c745bf3f6842515a52d72"}},{"ruleId":"D1","level":"warning","message":{"text":"AdaptiveAvgPool2D.forwardCPU (cyclomatic 23): AdaptiveAvgPool2D.forwardCPU has cyclomatic complexity 23 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"526cb0a7fa471501660fe6ab9cae09b6147534552ed834d5d838baf1d0d0f3ba"}},{"ruleId":"D1","level":"warning","message":{"text":"AdaptiveAvgPool2D.backwardCPU (cyclomatic 21): AdaptiveAvgPool2D.backwardCPU has cyclomatic complexity 21 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0621183e0af82e2b799dc6c4b42af0c6b92ea010999d77894447bd7693505b"}},{"ruleId":"D1","level":"warning","message":{"text":"Concat2D.forwardGCGPU (cyclomatic 20): Concat2D.forwardGCGPU has cyclomatic complexity 20 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Concat2D.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea08c4dd1c77f031461636cf78e1e41f602e39e1ef344c3a45e3c4893c4f87ab"}},{"ruleId":"D1","level":"warning","message":{"text":"Multiply2D.forwardGCGPU (cyclomatic 20): Multiply2D.forwardGCGPU has cyclomatic complexity 20 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"7405fcf08ee60f89925da933907929f2fc746b73caea1748b3350bd70507a912"}},{"ruleId":"D1","level":"warning","message":{"text":"Sum2D.forwardGCGPU (cyclomatic 20): Sum2D.forwardGCGPU has cyclomatic complexity 20 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Sum2D.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a59b51c3e97531eb020255a28e6e5b8ef3ced18a1c09ce99b10d538624cb37"}},{"ruleId":"D1","level":"warning","message":{"text":"QueryCausalSeq.forwardGCCPU (cyclomatic 20): QueryCausalSeq.forwardGCCPU has cyclomatic complexity 20 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (QueryCausalSeq.forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ae60df50bdb55f14d85995f81a5d6b3cb1417d6a5695267298567a3dc1b310"}},{"ruleId":"D1","level":"warning","message":{"text":"QueryCausalSeq.forwardGCGPU (cyclomatic 20): QueryCausalSeq.forwardGCGPU has cyclomatic complexity 20 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (QueryCausalSeq.forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1473}}}],"partialFingerprints":{"codehealthFindingId/v1":"230ba29b07e6594b13a9e0cd70c3666186624df854aaa7c67574c5f3b53bc423"}},{"ruleId":"D1","level":"warning","message":{"text":"BCE2D.lossDerivativeCPU (cyclomatic 19): BCE2D.lossDerivativeCPU 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":"Sources/GrAIdient/Layer2D/BCE2D.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ddd1886a6b02bec31b20b0d8836d300489f3d4a201fdb7bc91f6c363191b5d9"}},{"ruleId":"D1","level":"warning","message":{"text":"Concat2D.forwardGCCPU (cyclomatic 19): Concat2D.forwardGCCPU 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":"Sources/GrAIdient/Layer2D/Concat2D.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8da941b144f7975685d2909a534bd497f840f244c814871cb219635a2d2fa8"}},{"ruleId":"D1","level":"warning","message":{"text":"Deconvolution2D._backwardWeightsCPU (cyclomatic 19): Deconvolution2D._backwardWeightsCPU 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":"Sources/GrAIdient/Layer2D/Deconvolution2D.swift"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"76807f329af733c26eb81abaac6bacc7b99ecd74db8f9f0d74413c1e7c757781"}},{"ruleId":"D1","level":"warning","message":{"text":"Multiply2D.forwardGCCPU (cyclomatic 19): Multiply2D.forwardGCCPU 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":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b973173ca5b1f3b0bca89f51ff3af551e5a66367eb255f0fb488b4e9e12218"}},{"ruleId":"D1","level":"warning","message":{"text":"Sum2D.forwardGCCPU (cyclomatic 19): Sum2D.forwardGCCPU 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":"Sources/GrAIdient/Layer2D/Sum2D.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9ab52aa0194cd77579f4178da430d778657a1863ab5f8a60212c9855002720"}},{"ruleId":"D1","level":"warning","message":{"text":"ValueSelfSeq.backwardCPU (cyclomatic 19): ValueSelfSeq.backwardCPU 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":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ee4108960c0c986ceeb63f58955cccfb4fe3bb33fea10a54e148197c5da33b"}},{"ruleId":"D1","level":"warning","message":{"text":"LayerNormalization.forwardGC (cyclomatic 19): LayerNormalization.forwardGC has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":2103}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc6dc428c7a0425839630c9f4f66b801857e1256d5dc738c0ba36a69131049a"}},{"ruleId":"D1","level":"warning","message":{"text":"LayerOutput2D.checkGroundTruthGPU (cyclomatic 19): LayerOutput2D.checkGroundTruthGPU 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":"Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a979156494c20b9bc7f5ccb4415844eefebea4e9079cc9ba794ffda1a2cf20"}},{"ruleId":"D1","level":"warning","message":{"text":"ResizeBilinearCrop.forwardCPU (cyclomatic 19): ResizeBilinearCrop.forwardCPU has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"e78e20e2564bef06b5f3f4e7459fec2ef5fd53f1d516db664cc9e6d3352ae4c7"}},{"ruleId":"D1","level":"warning","message":{"text":"QuerySeq.forwardGCCPU (cyclomatic 18): QuerySeq.forwardGCCPU 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. This shape REPEATS in the file: one other method here (QuerySeq.forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad48448787028e0bf058fe02a5c4c2c8c0d10dbbf361ef6eb816a9bbd5c3391"}},{"ruleId":"D1","level":"warning","message":{"text":"QuerySeq.forwardGCGPU (cyclomatic 18): QuerySeq.forwardGCGPU 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. This shape REPEATS in the file: one other method here (QuerySeq.forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3ea85665368eb831d2c1ef61f3f6f91d6a44c306ebdb4e080108adee18d7f9"}},{"ruleId":"D1","level":"warning","message":{"text":"ValueSeq.forwardGCCPU (cyclomatic 18): ValueSeq.forwardGCCPU 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. This shape REPEATS in the file: 5 other methods here (ValueSeq.forwardGCGPU, ValueSelfSeq.forwardGCCPU, ValueSelfSeq.forwardGCGPU, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"72bf8972ca19108b68e759a8a59c0a033406adf6cb7a5048e9114d8ce269dbc8"}},{"ruleId":"D1","level":"warning","message":{"text":"ValueSeq.forwardGCGPU (cyclomatic 18): ValueSeq.forwardGCGPU 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. This shape REPEATS in the file: 5 other methods here (ValueSeq.forwardGCCPU, ValueSelfSeq.forwardGCCPU, ValueSelfSeq.forwardGCGPU, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f82f30c5513c9079a92e822afb6f632b6420f374aa9e7ec395b26f53feea1f"}},{"ruleId":"D1","level":"warning","message":{"text":"ValueSelfSeq.forwardGCCPU (cyclomatic 18): ValueSelfSeq.forwardGCCPU 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. This shape REPEATS in the file: 5 other methods here (ValueSeq.forwardGCCPU, ValueSeq.forwardGCGPU, ValueSelfSeq.forwardGCGPU, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae5327dcb7f30e81116c33f901a825c36d9513c9cebed2b5eb40c039248f2b4c"}},{"ruleId":"D1","level":"warning","message":{"text":"ValueSelfSeq.forwardGCGPU (cyclomatic 18): ValueSelfSeq.forwardGCGPU 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. This shape REPEATS in the file: 5 other methods here (ValueSeq.forwardGCCPU, ValueSeq.forwardGCGPU, ValueSelfSeq.forwardGCCPU, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3bd364064ee5ba341169f281a3b768c083a73d00812b2c223b5402e79411e45"}},{"ruleId":"D1","level":"warning","message":{"text":"ValueCausalSeq.forwardGCCPU (cyclomatic 18): ValueCausalSeq.forwardGCCPU 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. This shape REPEATS in the file: 5 other methods here (ValueSeq.forwardGCCPU, ValueSeq.forwardGCGPU, ValueSelfSeq.forwardGCCPU, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"7efbbd8303e05be6e1a44adb6b537b92a6ea7bf198681a8b1d8ab40a0c8a2a6d"}},{"ruleId":"D1","level":"warning","message":{"text":"ValueCausalSeq.forwardGCGPU (cyclomatic 18): ValueCausalSeq.forwardGCGPU 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. This shape REPEATS in the file: 5 other methods here (ValueSeq.forwardGCCPU, ValueSeq.forwardGCGPU, ValueSelfSeq.forwardGCCPU, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"28780d687614aa00d0d9c9249f757042d66cf6876ad2e9ed8517841ba68d08be"}},{"ruleId":"D1","level":"warning","message":{"text":"BCESigmoid2D.lossDerivativeCPU (cyclomatic 17): BCESigmoid2D.lossDerivativeCPU has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCESigmoid2D.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c2f9cf3b38f832004cb39a601875f63a4218052ab089f1cc552f78eea07587"}},{"ruleId":"D1","level":"warning","message":{"text":"Convolution2D._backwardWeightsCPU (cyclomatic 17): Convolution2D._backwardWeightsCPU has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1444}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb3944d1210d07487a3296c3d7c1fdf70eec3212a9409199b85561d742aa43a"}},{"ruleId":"D1","level":"warning","message":{"text":"SimilarityError2D.forwardGCGPU (cyclomatic 17): SimilarityError2D.forwardGCGPU has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityError2D.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19b3b4d4e1c0118cbec5e8a26725878a1f1934db2130e3ee5d0692cc0dc2572"}},{"ruleId":"D1","level":"warning","message":{"text":"Concat1Seq.forwardGCGPU (cyclomatic 17): Concat1Seq.forwardGCGPU has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (Concat2Seq.forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c50d857ae934b3f8b915d437f51d0c33ea10d10daf04047322d1bea2582528f"}},{"ruleId":"D1","level":"warning","message":{"text":"Concat2Seq.forwardGCGPU (cyclomatic 17): Concat2Seq.forwardGCGPU has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (Concat1Seq.forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa29a668b7fd952f940cb787bb4721db641489e06d738e52ac905219be0aea32"}},{"ruleId":"D1","level":"warning","message":{"text":"MultiplySeq.forwardGCGPU (cyclomatic 17): MultiplySeq.forwardGCGPU has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/MutiplySeq.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe23053d4fd302e4c1c88b5dd1ca84f63d847fbdd696f4308edaba78cd410e7"}},{"ruleId":"D1","level":"warning","message":{"text":"QueryCausalSeq.backwardCPU (cyclomatic 17): QueryCausalSeq.backwardCPU has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1895}}}],"partialFingerprints":{"codehealthFindingId/v1":"0adf90c11251390bd8226cf2113c32374d1a172228be62f8b52942e88b468785"}},{"ruleId":"D1","level":"warning","message":{"text":"SumSeq.forwardGCGPU (cyclomatic 17): SumSeq.forwardGCGPU has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/SumSeq.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bfe33d26edfde004fd1624eb48c570cfd348de2d243b73ece5b66016b2982b8"}},{"ruleId":"D1","level":"warning","message":{"text":"ValueCausalSeq.backwardCPU (cyclomatic 17): ValueCausalSeq.backwardCPU has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":1890}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ef6b6fe8889f2ccbf9de84625b2e14d010474efc5d8bc49ddba8ce15c53266"}},{"ruleId":"D1","level":"warning","message":{"text":"Crop2D.backwardCPU (cyclomatic 17): Crop2D.backwardCPU has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Crop2D.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a47169eabf52c697797742f00ab7ef5fe36066c59432f09d07f9a20f7f69e98"}},{"ruleId":"D1","level":"warning","message":{"text":"FTFrequences2D.setDataCPU (cyclomatic 17): FTFrequences2D.setDataCPU has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/FTFrequences2D.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"f611bc67e53d556abcbdc40b0f7afa2a36e3e7ddda57ef1bcce7d2e2ce64ba53"}},{"ruleId":"D1","level":"warning","message":{"text":"Convolution2D._backwardWeightsGPU (cyclomatic 16): Convolution2D._backwardWeightsGPU has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e645fe181b8a397e734e56ed738e0b17a25115ca191c0cc9ddbb5f378452f3"}},{"ruleId":"D1","level":"warning","message":{"text":"SimilarityError2D.forwardGCCPU (cyclomatic 16): SimilarityError2D.forwardGCCPU has cyclomatic complexity 16 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityError2D.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e50358ca8f5b54c582435f3815d1736e60267e300d2743a4522542791ba6efd"}},{"ruleId":"D1","level":"warning","message":{"text":"Concat1Seq.forwardGCCPU (cyclomatic 16): Concat1Seq.forwardGCCPU 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. This shape REPEATS in the file: one other method here (Concat2Seq.forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2be707f4553b0336c0b5256e82c5d1649f7de8c1ed3b179da300b22da95e5b"}},{"ruleId":"D1","level":"warning","message":{"text":"Concat2Seq.forwardGCCPU (cyclomatic 16): Concat2Seq.forwardGCCPU 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. This shape REPEATS in the file: one other method here (Concat1Seq.forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"b351450fcba7f5ed108f92dcf9bda520cc638a3c80e953b5def24d9c605b8907"}},{"ruleId":"D1","level":"warning","message":{"text":"MultiplySeq.forwardGCCPU (cyclomatic 16): MultiplySeq.forwardGCCPU has cyclomatic complexity 16 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/MutiplySeq.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"70f80391ed498ac691800f37ef69a0336fcd7bf2b708e7978abe886aac5376c3"}},{"ruleId":"D1","level":"warning","message":{"text":"QuerySeq.backwardCPU (cyclomatic 16): QuerySeq.backwardCPU has cyclomatic complexity 16 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06e6d0c4e388cb9caf256e0836e07a188ce5975fa64980b594319d8104d50ab"}},{"ruleId":"D1","level":"warning","message":{"text":"SumSeq.forwardGCCPU (cyclomatic 16): SumSeq.forwardGCCPU has cyclomatic complexity 16 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/SumSeq.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa5fea0a72703c256b5d5751e02929430e28388200e6efdb82227d3e796bfe1"}},{"ruleId":"D1","level":"warning","message":{"text":"ValueSeq.backwardCPU (cyclomatic 16): ValueSeq.backwardCPU has cyclomatic complexity 16 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"266d5a3ac584d59fb79e05068d266715a02baa47c7c92f901cc4256a61ab56ce"}},{"ruleId":"D1","level":"warning","message":{"text":"Rotate2D.backwardCPU (cyclomatic 16): Rotate2D.backwardCPU has cyclomatic complexity 16 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5fe4bef89736395ab82355b490fccea943c26406a01dcb11146e731a2f222a"}},{"ruleId":"D2","level":"warning","message":{"text":"Deconvolution2D._forwardGCGPU (cognitive 431): Deconvolution2D._forwardGCGPU has cognitive complexity 431 (threshold 15). Drivers by points: loops 40 (258 pts), if/else 17 (157 pts), boolean chains 16 (nesting depth added 358). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Deconvolution2D.swift"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1df7b0ed884e8710a99c46ab03e98b90a78d304f5619e9a484391c9c3e28837"}},{"ruleId":"D2","level":"warning","message":{"text":"Deconvolution2D._forwardGCCPU (cognitive 422): Deconvolution2D._forwardGCCPU has cognitive complexity 422 (threshold 15). Drivers by points: loops 40 (258 pts), if/else 17 (157 pts), boolean chains 7 (nesting depth added 358). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Deconvolution2D.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4bfbe76199ea14f0400fb905e77aeb52f237008b270fe6ffa632e8481254112"}},{"ruleId":"D2","level":"warning","message":{"text":"Convolution2D._forwardGCGPU (cognitive 374): Convolution2D._forwardGCGPU has cognitive complexity 374 (threshold 15). Drivers by points: loops 40 (258 pts), if/else 13 (104 pts), boolean chains 12 (nesting depth added 309). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1038}}}],"partialFingerprints":{"codehealthFindingId/v1":"1510ffa194413f0c452b4de7673290454fade88eaf929207ab89e08126390a1a"}},{"ruleId":"D2","level":"warning","message":{"text":"Convolution2D._forwardGCCPU (cognitive 365): Convolution2D._forwardGCCPU has cognitive complexity 365 (threshold 15). Drivers by points: loops 40 (258 pts), if/else 13 (104 pts), boolean chains 3 (nesting depth added 309). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"74aab8c57e31ae99ac4bddec42b6336f08ee925d5353cdccd7cf375d477f0938"}},{"ruleId":"D2","level":"warning","message":{"text":"FullyConnectedPatch._forwardGCCPU (cognitive 192): FullyConnectedPatch._forwardGCCPU has cognitive complexity 192 (threshold 15). Drivers by points: loops 26 (146 pts), if/else 8 (45 pts), boolean chains 1 (nesting depth added 157). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (FullyConnectedPatch._forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"560676452ec035d1042d36c7229a3433c9fde1415f0e7c9146fb3664ab7a577c"}},{"ruleId":"D2","level":"warning","message":{"text":"FullyConnectedPatch._forwardGCGPU (cognitive 192): FullyConnectedPatch._forwardGCGPU has cognitive complexity 192 (threshold 15). Drivers by points: loops 26 (146 pts), if/else 8 (45 pts), boolean chains 1 (nesting depth added 157). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (FullyConnectedPatch._forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b993379a1dd9bbc8185e57870b049bc5f9468c71c7200eb88e8e1c4ab9a368e"}},{"ruleId":"D2","level":"warning","message":{"text":"FullyConnectedSeq._forwardGCCPU (cognitive 135): FullyConnectedSeq._forwardGCCPU has cognitive complexity 135 (threshold 15). Drivers by points: loops 20 (93 pts), if/else 8 (41 pts), boolean chains 1 (nesting depth added 106). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (FullyConnectedSeq._forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4091366f250ced894110c795aa4e092c0dcb8c03b2bfbf50ab20df3d7f9be19"}},{"ruleId":"D2","level":"warning","message":{"text":"FullyConnectedSeq._forwardGCGPU (cognitive 135): FullyConnectedSeq._forwardGCGPU has cognitive complexity 135 (threshold 15). Drivers by points: loops 20 (93 pts), if/else 8 (41 pts), boolean chains 1 (nesting depth added 106). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (FullyConnectedSeq._forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"618ad1f6d69b9e9c8820d485bde6df888efaefee60c6881013dc1eede7528da9"}},{"ruleId":"D2","level":"warning","message":{"text":"AdaptiveAvgPool2D.forwardGCCPU (cognitive 127): AdaptiveAvgPool2D.forwardGCCPU has cognitive complexity 127 (threshold 15). Drivers by points: loops 22 (118 pts), if/else 6 (9 pts) (nesting depth added 99). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a090e505b0f1f0648542880dc08de60d0b448b33ec49db001f92c179c276d3"}},{"ruleId":"D2","level":"warning","message":{"text":"FullyConnected._forwardGCCPU (cognitive 106): FullyConnected._forwardGCCPU has cognitive complexity 106 (threshold 15). Drivers by points: loops 16 (68 pts), if/else 8 (37 pts), boolean chains 1 (nesting depth added 81). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (FullyConnected._forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"2494c4aa2e2c3d5a74c629468690b98076946a26ca5ec58c5af3ee6cdac22518"}},{"ruleId":"D2","level":"warning","message":{"text":"FullyConnected._forwardGCGPU (cognitive 106): FullyConnected._forwardGCGPU has cognitive complexity 106 (threshold 15). Drivers by points: loops 16 (68 pts), if/else 8 (37 pts), boolean chains 1 (nesting depth added 81). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (FullyConnected._forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c809c2df6543dec3c46eb7260aa563531c176b465fcde9ab9ac5f0b427caa1"}},{"ruleId":"D2","level":"warning","message":{"text":"AdaptiveAvgPool2D.forwardCPU (cognitive 106): AdaptiveAvgPool2D.forwardCPU has cognitive complexity 106 (threshold 15). Drivers by points: loops 20 (102 pts), if/else 3 (4 pts) (nesting depth added 83). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d54148278412721a1dc7b4967748b128781222284b98c996fb0a9948196c9d"}},{"ruleId":"D2","level":"warning","message":{"text":"AdaptiveAvgPool2D.backwardCPU (cognitive 91): AdaptiveAvgPool2D.backwardCPU has cognitive complexity 91 (threshold 15). Drivers by points: loops 16 (84 pts), if/else 4 (6 pts), boolean chains 1 (nesting depth added 70). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"1568332e8dd341f3c867c11ae364a5def1ae5a3c8b562c8798e66490d4c10ced"}},{"ruleId":"D2","level":"warning","message":{"text":"Deconvolution2D._backwardWeightsCPU (cognitive 85): Deconvolution2D._backwardWeightsCPU has cognitive complexity 85 (threshold 15). Drivers by points: loops 10 (50 pts), if/else 6 (33 pts), boolean chains 2 (nesting depth added 67). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Deconvolution2D.swift"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"793394e157ea89c526830d6c412f39f412fb8d1ccbf426ac666219729cc17da7"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryCausalSeq.forwardGCCPU (cognitive 80): QueryCausalSeq.forwardGCCPU has cognitive complexity 80 (threshold 15). Drivers by points: loops 16 (55 pts), if/else 6 (25 pts) (nesting depth added 58). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (QueryCausalSeq.forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23df705972c0878177da88a9d025d9ce0ff62b8e7cf3bde46cfbd7bbaa9006d"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryCausalSeq.forwardGCGPU (cognitive 80): QueryCausalSeq.forwardGCGPU has cognitive complexity 80 (threshold 15). Drivers by points: loops 16 (55 pts), if/else 6 (25 pts) (nesting depth added 58). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (QueryCausalSeq.forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1473}}}],"partialFingerprints":{"codehealthFindingId/v1":"792ed1e89c76bc5ba9ed6ce8a23ad9eed0697d00c937353380ee945ddbd9e5f1"}},{"ruleId":"D2","level":"warning","message":{"text":"LayerNormalization.forwardGC (cognitive 79): LayerNormalization.forwardGC has cognitive complexity 79 (threshold 15). Drivers by points: if/else 15 (43 pts), loops 9 (35 pts), boolean chains 1 (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":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":2103}}}],"partialFingerprints":{"codehealthFindingId/v1":"279f05c3b750214c33fed909d63118197ca36919e490096584588c7810021ca5"}},{"ruleId":"D2","level":"warning","message":{"text":"BCE2D.lossDerivativeCPU (cognitive 74): BCE2D.lossDerivativeCPU has cognitive complexity 74 (threshold 15). Drivers by points: loops 8 (36 pts), if/else 11 (35 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 53). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCE2D.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"76696579bcc4631859d75c8c45315fa4ad9491e557134aa3cea630d27fc3aed1"}},{"ruleId":"D2","level":"warning","message":{"text":"Convolution2D._backwardWeightsCPU (cognitive 74): Convolution2D._backwardWeightsCPU has cognitive complexity 74 (threshold 15). Drivers by points: loops 10 (50 pts), if/else 5 (23 pts), boolean chains 1 (nesting depth added 58). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1444}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79a91d6d3ea6055d3523a45645943b5c599c889225ab2e9691fb622891fbcbb"}},{"ruleId":"D2","level":"warning","message":{"text":"BCESigmoid2D.lossDerivativeCPU (cognitive 72): BCESigmoid2D.lossDerivativeCPU has cognitive complexity 72 (threshold 15). Drivers by points: loops 8 (36 pts), if/else 9 (33 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 53). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCESigmoid2D.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee738fa53ddb8431f2a9bf5e324b99fb22116181c4ea1e64445c78af9cc7376"}},{"ruleId":"D2","level":"warning","message":{"text":"Concat2D.forwardGCGPU (cognitive 66): Concat2D.forwardGCGPU has cognitive complexity 66 (threshold 15). Drivers by points: loops 18 (57 pts), if/else 2 (9 pts) (nesting depth added 46). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Concat2D.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14f035a64aa676a39373f829b8a9bacccb086babd7e98712a58e5d58e80d978"}},{"ruleId":"D2","level":"warning","message":{"text":"Multiply2D.forwardGCGPU (cognitive 66): Multiply2D.forwardGCGPU has cognitive complexity 66 (threshold 15). Drivers by points: loops 18 (57 pts), if/else 2 (9 pts) (nesting depth added 46). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8ce1c1a0d9d760d9979c24ab3b31f98bdcd7c61855762e06375f840af07738"}},{"ruleId":"D2","level":"warning","message":{"text":"Normalize122D.backwardCPU (cognitive 66): Normalize122D.backwardCPU has cognitive complexity 66 (threshold 15). Drivers by points: loops 10 (50 pts), if/else 5 (15 pts), boolean chains 1 (nesting depth added 50). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"6adb73bd6594de93d5e6c5de96a50823c7e13d9e17a228e00abba7ed96078990"}},{"ruleId":"D2","level":"warning","message":{"text":"Sum2D.forwardGCGPU (cognitive 66): Sum2D.forwardGCGPU has cognitive complexity 66 (threshold 15). Drivers by points: loops 18 (57 pts), if/else 2 (9 pts) (nesting depth added 46). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Sum2D.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ff5ec1d922795f06e5a312c5ec0f50c61770fb17610c74e9ee9a6fa3d443d9"}},{"ruleId":"D2","level":"warning","message":{"text":"FTFrequences2D.setDataCPU (cognitive 66): FTFrequences2D.setDataCPU has cognitive complexity 66 (threshold 15). Drivers by points: loops 14 (59 pts), if/else 2 (4 pts), ternaries 1 (3 pts) (nesting depth added 49). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/FTFrequences2D.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"131511c989c135fdcf5a2fc8f3fb3e713a6cd00960f86d1b636a8cccb42da230"}},{"ruleId":"D2","level":"warning","message":{"text":"Concat2D.forwardGCCPU (cognitive 65): Concat2D.forwardGCCPU has cognitive complexity 65 (threshold 15). Drivers by points: loops 17 (56 pts), if/else 2 (9 pts) (nesting depth added 46). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Concat2D.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a911a94546dcedc1d34da0785abaea69e5ee8e87ef0f37c0ca3bb9082ad59b0"}},{"ruleId":"D2","level":"warning","message":{"text":"Multiply2D.forwardGCCPU (cognitive 65): Multiply2D.forwardGCCPU has cognitive complexity 65 (threshold 15). Drivers by points: loops 17 (56 pts), if/else 2 (9 pts) (nesting depth added 46). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f210416cb3dd31c47742c72f9f43e4e132ad27b6cc3e0be2355d17a2e87fa94"}},{"ruleId":"D2","level":"warning","message":{"text":"Sum2D.forwardGCCPU (cognitive 65): Sum2D.forwardGCCPU has cognitive complexity 65 (threshold 15). Drivers by points: loops 17 (56 pts), if/else 2 (9 pts) (nesting depth added 46). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Sum2D.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f3fb28b005b2616325ba387b668dbd48d352256bb9cd53ee8625b285bdc841"}},{"ruleId":"D2","level":"warning","message":{"text":"Convolution2D._backwardCPU (cognitive 64): Convolution2D._backwardCPU has cognitive complexity 64 (threshold 15). Drivers by points: loops 7 (35 pts), if/else 5 (27 pts), boolean chains 2 (nesting depth added 50). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1394}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b0ff5e3df7b82df5c9d9771cee3a54b2f4e437ad577642612d1669777831cf"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryCausalSeq.backwardCPU (cognitive 64): QueryCausalSeq.backwardCPU has cognitive complexity 64 (threshold 15). Drivers by points: loops 11 (47 pts), if/else 7 (17 pts) (nesting depth added 46). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1895}}}],"partialFingerprints":{"codehealthFindingId/v1":"459bfcb728f077ca4ed4050d23a8f308d49b40f1a8e1182c1655677b611e5f3f"}},{"ruleId":"D2","level":"warning","message":{"text":"ValueSelfSeq.backwardCPU (cognitive 64): ValueSelfSeq.backwardCPU has cognitive complexity 64 (threshold 15). Drivers by points: loops 13 (52 pts), if/else 6 (12 pts) (nesting depth added 45). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabf2f1c2c07ffd7f237f9825c583a6c597291d1346c0131c74fd681ba97713e"}},{"ruleId":"D2","level":"warning","message":{"text":"ValueCausalSeq.backwardCPU (cognitive 64): ValueCausalSeq.backwardCPU has cognitive complexity 64 (threshold 15). Drivers by points: loops 11 (47 pts), if/else 7 (17 pts) (nesting depth added 46). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":1890}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f1c2a2bef5c595c96a1d9ff697b856d6195ea40bec02c9e6813bfad6b9d185"}},{"ruleId":"D2","level":"warning","message":{"text":"QuerySeq.forwardGCCPU (cognitive 62): QuerySeq.forwardGCCPU has cognitive complexity 62 (threshold 15). Drivers by points: loops 16 (53 pts), if/else 2 (9 pts) (nesting depth added 44). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (QuerySeq.forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"47961b6cc5ea146b81e2d71e58ea1afe140ab35b6a7eea69d18cb395cf4eb2e2"}},{"ruleId":"D2","level":"warning","message":{"text":"QuerySeq.forwardGCGPU (cognitive 62): QuerySeq.forwardGCGPU has cognitive complexity 62 (threshold 15). Drivers by points: loops 16 (53 pts), if/else 2 (9 pts) (nesting depth added 44). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (QuerySeq.forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"806325d078a0629646b6dc69d71435894a3e5a1eccc237a35896efb56a96b269"}},{"ruleId":"D2","level":"warning","message":{"text":"ValueSeq.forwardGCCPU (cognitive 62): ValueSeq.forwardGCCPU has cognitive complexity 62 (threshold 15). Drivers by points: loops 16 (53 pts), if/else 2 (9 pts) (nesting depth added 44). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 5 other methods here (ValueSeq.forwardGCGPU, ValueSelfSeq.forwardGCCPU, ValueSelfSeq.forwardGCGPU, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"246e8844db764721245e3d052c591f038ff4222c401043936410f3135855f02b"}},{"ruleId":"D2","level":"warning","message":{"text":"ValueSeq.forwardGCGPU (cognitive 62): ValueSeq.forwardGCGPU has cognitive complexity 62 (threshold 15). Drivers by points: loops 16 (53 pts), if/else 2 (9 pts) (nesting depth added 44). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 5 other methods here (ValueSeq.forwardGCCPU, ValueSelfSeq.forwardGCCPU, ValueSelfSeq.forwardGCGPU, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"e78aa0b9cefb45b8f9fb44f63debcf23b568ff44b397481d0f06b17ba06e2cb7"}},{"ruleId":"D2","level":"warning","message":{"text":"ValueSelfSeq.forwardGCCPU (cognitive 62): ValueSelfSeq.forwardGCCPU has cognitive complexity 62 (threshold 15). Drivers by points: loops 16 (53 pts), if/else 2 (9 pts) (nesting depth added 44). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 5 other methods here (ValueSeq.forwardGCCPU, ValueSeq.forwardGCGPU, ValueSelfSeq.forwardGCGPU, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef62078ff3e1b046c8590f4d6a2c8c04642d94480ef60185a8401738b4e5d6f"}},{"ruleId":"D2","level":"warning","message":{"text":"ValueSelfSeq.forwardGCGPU (cognitive 62): ValueSelfSeq.forwardGCGPU has cognitive complexity 62 (threshold 15). Drivers by points: loops 16 (53 pts), if/else 2 (9 pts) (nesting depth added 44). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 5 other methods here (ValueSeq.forwardGCCPU, ValueSeq.forwardGCGPU, ValueSelfSeq.forwardGCCPU, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"f31ed9456f5c1f0e52dae2a6e1584489c4302d4b59fc93638f17e06a4cb295f7"}},{"ruleId":"D2","level":"warning","message":{"text":"ValueCausalSeq.forwardGCCPU (cognitive 62): ValueCausalSeq.forwardGCCPU has cognitive complexity 62 (threshold 15). Drivers by points: loops 16 (53 pts), if/else 2 (9 pts) (nesting depth added 44). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 5 other methods here (ValueSeq.forwardGCCPU, ValueSeq.forwardGCGPU, ValueSelfSeq.forwardGCCPU, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff129aae8d39f94121b444ebe3498bdfde8617a3b9b7fbe94129aea0937aa058"}},{"ruleId":"D2","level":"warning","message":{"text":"ValueCausalSeq.forwardGCGPU (cognitive 62): ValueCausalSeq.forwardGCGPU has cognitive complexity 62 (threshold 15). Drivers by points: loops 16 (53 pts), if/else 2 (9 pts) (nesting depth added 44). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 5 other methods here (ValueSeq.forwardGCCPU, ValueSeq.forwardGCGPU, ValueSelfSeq.forwardGCCPU, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b3c8803490bb03f65c65574ed323ad8cf7cdcfc2ab8bcaf773b2dd7587ee78"}},{"ruleId":"D2","level":"warning","message":{"text":"VQGrad2D.forwardCPU (cognitive 58): VQGrad2D.forwardCPU has cognitive complexity 58 (threshold 15). Drivers by points: loops 8 (35 pts), if/else 6 (22 pts), boolean chains 1 (nesting depth added 43). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"7765e0f723e52f02cfcb747bf818ab8c0e03d08951c3bfc6fa6608ef07780e94"}},{"ruleId":"D2","level":"warning","message":{"text":"QuerySeq.backwardCPU (cognitive 57): QuerySeq.backwardCPU has cognitive complexity 57 (threshold 15). Drivers by points: loops 10 (40 pts), if/else 7 (17 pts) (nesting depth added 40). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b2a6dae36128277c451621163d9546a65f6038944f77e065b67e47d82a7422"}},{"ruleId":"D2","level":"warning","message":{"text":"ValueSeq.backwardCPU (cognitive 57): ValueSeq.backwardCPU has cognitive complexity 57 (threshold 15). Drivers by points: loops 10 (40 pts), if/else 7 (17 pts) (nesting depth added 40). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba8830a5204bd5a514ec248ffa9d3813ee48205ffe44debe8c814c8f4e77759"}},{"ruleId":"D2","level":"warning","message":{"text":"Deconvolution2D._forwardCPU (cognitive 56): Deconvolution2D._forwardCPU has cognitive complexity 56 (threshold 15). Drivers by points: loops 7 (35 pts), if/else 3 (20 pts), boolean chains 1 (nesting depth added 45). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Deconvolution2D.swift"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b8d96361b033f61757f0fda9cdc4b67025f7d216ee8ba629b8f1b7249debb0"}},{"ruleId":"D2","level":"warning","message":{"text":"MSE2D.lossDerivativeCPU (cognitive 56): MSE2D.lossDerivativeCPU has cognitive complexity 56 (threshold 15). Drivers by points: loops 8 (36 pts), if/else 5 (17 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 41). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/MSE2D.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"f945867e50845d6f67035e84f7b3404e009a4ebfca234a8c14b5464473f14f40"}},{"ruleId":"D2","level":"warning","message":{"text":"QuerySelfSeq.backwardCPU (cognitive 56): QuerySelfSeq.backwardCPU has cognitive complexity 56 (threshold 15). Drivers by points: loops 10 (40 pts), if/else 5 (15 pts), boolean chains 1 (nesting depth added 40). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"2247caa8d59249eba3f77c389bf5ef4e542871e5a184f807f4bb8e4c023e623e"}},{"ruleId":"D2","level":"warning","message":{"text":"MaxPool2D.forwardGCCPU (cognitive 55): MaxPool2D.forwardGCCPU has cognitive complexity 55 (threshold 15). Drivers by points: loops 10 (44 pts), if/else 2 (10 pts), boolean chains 1 (nesting depth added 42). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/MaxPool2D.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"053356c4c356a143bed9047f0909e98403a9bfcf9f1fbdbcb9da45f10b7b34ee"}},{"ruleId":"D2","level":"warning","message":{"text":"Deconvolution2D._backwardCPU (cognitive 53): Deconvolution2D._backwardCPU has cognitive complexity 53 (threshold 15). Drivers by points: loops 7 (35 pts), if/else 4 (17 pts), boolean chains 1 (nesting depth added 41). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Deconvolution2D.swift"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56ca2f8768b07477e85ecc99cf2eabe823fbb69b24be1ca591e9cab0f8b8287"}},{"ruleId":"D2","level":"warning","message":{"text":"SimilarityError2D.forwardGCGPU (cognitive 49): SimilarityError2D.forwardGCGPU has cognitive complexity 49 (threshold 15). Drivers by points: loops 15 (41 pts), if/else 2 (8 pts) (nesting depth added 32). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityError2D.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"2efc4e706bbcf892eb4b28c30d52e539ef80c2958a5ffdefc098ba6fe9731c59"}},{"ruleId":"D2","level":"warning","message":{"text":"Concat1Seq.forwardGCGPU (cognitive 49): Concat1Seq.forwardGCGPU has cognitive complexity 49 (threshold 15). Drivers by points: loops 15 (41 pts), if/else 2 (8 pts) (nesting depth added 32). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (Concat2Seq.forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4904b445513e9e6c9841706ea31adb180e2897c104bde8d2b8188c51e56ee8"}},{"ruleId":"D2","level":"warning","message":{"text":"Concat2Seq.forwardGCGPU (cognitive 49): Concat2Seq.forwardGCGPU has cognitive complexity 49 (threshold 15). Drivers by points: loops 15 (41 pts), if/else 2 (8 pts) (nesting depth added 32). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (Concat1Seq.forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f929171fd213d7ba403369b9e41dedb6e7d43ae5fdf607077fa520f8809617e"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiplySeq.forwardGCGPU (cognitive 49): MultiplySeq.forwardGCGPU has cognitive complexity 49 (threshold 15). Drivers by points: loops 15 (41 pts), if/else 2 (8 pts) (nesting depth added 32). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/MutiplySeq.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"4babdc9b27c254e51508a01ee49ca4142b17ac5a90d968590d53cee7125b0e22"}},{"ruleId":"D2","level":"warning","message":{"text":"SumSeq.forwardGCGPU (cognitive 49): SumSeq.forwardGCGPU has cognitive complexity 49 (threshold 15). Drivers by points: loops 15 (41 pts), if/else 2 (8 pts) (nesting depth added 32). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/SumSeq.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2f2f5e556d3c7469f6d9d43c5a1571aa6caf1faf4abda29055741c4545dce6"}},{"ruleId":"D2","level":"warning","message":{"text":"SimilarityError2D.forwardGCCPU (cognitive 48): SimilarityError2D.forwardGCCPU has cognitive complexity 48 (threshold 15). Drivers by points: loops 14 (40 pts), if/else 2 (8 pts) (nesting depth added 32). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityError2D.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f423fcd0d0240622f613e0cb1c97cd685fd455ad33c51cc7c7fd947cb7465b"}},{"ruleId":"D2","level":"warning","message":{"text":"Concat1Seq.forwardGCCPU (cognitive 48): Concat1Seq.forwardGCCPU has cognitive complexity 48 (threshold 15). Drivers by points: loops 14 (40 pts), if/else 2 (8 pts) (nesting depth added 32). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (Concat2Seq.forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e418a189f3099ecf004c23b3d18aac7859280a8a927186fce36702b378987dd"}},{"ruleId":"D2","level":"warning","message":{"text":"Concat2Seq.forwardGCCPU (cognitive 48): Concat2Seq.forwardGCCPU has cognitive complexity 48 (threshold 15). Drivers by points: loops 14 (40 pts), if/else 2 (8 pts) (nesting depth added 32). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (Concat1Seq.forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"a423aa47f5043f903f6ec4a355da07db91f2e8fc40419a977d571dcc468a1b6f"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiplySeq.forwardGCCPU (cognitive 48): MultiplySeq.forwardGCCPU has cognitive complexity 48 (threshold 15). Drivers by points: loops 14 (40 pts), if/else 2 (8 pts) (nesting depth added 32). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/MutiplySeq.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd63599282d3072c4bd9d164149074079ab178b5dc98e987defa93f12df0eea"}},{"ruleId":"D2","level":"warning","message":{"text":"SumSeq.forwardGCCPU (cognitive 48): SumSeq.forwardGCCPU has cognitive complexity 48 (threshold 15). Drivers by points: loops 14 (40 pts), if/else 2 (8 pts) (nesting depth added 32). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/SumSeq.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb748d82b2261af44ec76c02be5bbb05484369ef106a4cc38284694e068e269f"}},{"ruleId":"D2","level":"warning","message":{"text":"Convolution2D._forwardCPU (cognitive 45): Convolution2D._forwardCPU has cognitive complexity 45 (threshold 15). Drivers by points: loops 7 (35 pts), if/else 2 (10 pts) (nesting depth added 36). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1275}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6315c4df3620f3017ab2f7de06c4cb2f0e71f26d70f1db2df14113719978e2"}},{"ruleId":"D2","level":"warning","message":{"text":"MaxPool2D.forwardCPU (cognitive 45): MaxPool2D.forwardCPU has cognitive complexity 45 (threshold 15). Drivers by points: loops 6 (27 pts), if/else 4 (16 pts), boolean chains 2 (nesting depth added 33). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/MaxPool2D.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8b9c639d50961feaa9e4168216705da0ae7a067786f22f61cc653ced8ebaa2d"}},{"ruleId":"D2","level":"warning","message":{"text":"Normalize122D.forwardGCCPU (cognitive 45): Normalize122D.forwardGCCPU has cognitive complexity 45 (threshold 15). Drivers by points: loops 11 (44 pts), if/else 1 (nesting depth added 33). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3df1b84458bde55eb4892cc1041f973bf9c1912adcb24de3f2a0d805ade3df7"}},{"ruleId":"D2","level":"warning","message":{"text":"SoftmaxSeq.forwardGCCPU (cognitive 45): SoftmaxSeq.forwardGCCPU has cognitive complexity 45 (threshold 15). Drivers by points: loops 9 (37 pts), if/else 2 (8 pts) (nesting depth added 34). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"18beaa8674ceac60f3ea45902e09b249d77015ed04076250dc4e6e96e636c22a"}},{"ruleId":"D2","level":"warning","message":{"text":"IRDFT2RGB.forwardGCCPU (cognitive 45): IRDFT2RGB.forwardGCCPU has cognitive complexity 45 (threshold 15). Drivers by points: loops 10 (44 pts), if/else 1 (nesting depth added 34). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac814c1e8b384e3c14e75ee9032e64f290e9ce54ca88cffd21bd12925ebb3b66"}},{"ruleId":"D2","level":"warning","message":{"text":"Rotate2D.backwardCPU (cognitive 45): Rotate2D.backwardCPU has cognitive complexity 45 (threshold 15). Drivers by points: loops 8 (32 pts), if/else 3 (9 pts), boolean chains 4 (nesting depth added 30). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a53a48a7547f3894de59747022b42dd09149aed0718a1bc0ff375e57b4e412e"}},{"ruleId":"D2","level":"warning","message":{"text":"VQGradSeq.forwardCPU (cognitive 44): VQGradSeq.forwardCPU has cognitive complexity 44 (threshold 15). Drivers by points: loops 6 (24 pts), if/else 6 (19 pts), boolean chains 1 (nesting depth added 31). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/VQSeq.swift"},"region":{"startLine":1102}}}],"partialFingerprints":{"codehealthFindingId/v1":"be728cddffbf68da8cfc318e98fbcadde59ea72cc636d421ecb6d0e8232669b0"}},{"ruleId":"D2","level":"warning","message":{"text":"BCESigmoid2D.getLossGC (cognitive 43): BCESigmoid2D.getLossGC has cognitive complexity 43 (threshold 15). Drivers by points: loops 8 (28 pts), if/else 4 (14 pts), match/switch 1 (nesting depth added 30). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This shape REPEATS in the file: one other method here (BCESigmoid2D.getLossCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCESigmoid2D.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f2cc18cfc5ab4ea046d98fdf098e5a4243a4d3ee3cb4710775324d694fccf2"}},{"ruleId":"D2","level":"warning","message":{"text":"BCESigmoid2D.getLossCPU (cognitive 43): BCESigmoid2D.getLossCPU has cognitive complexity 43 (threshold 15). Drivers by points: loops 8 (28 pts), if/else 4 (14 pts), match/switch 1 (nesting depth added 30). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This shape REPEATS in the file: one other method here (BCESigmoid2D.getLossGC) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCESigmoid2D.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf560349f1832119e783090acf74aad26e12c0d97355af25ac8bcfd49c94e60"}},{"ruleId":"D2","level":"warning","message":{"text":"BN2D._forwardGCCPU (cognitive 43): BN2D._forwardGCCPU has cognitive complexity 43 (threshold 15). Drivers by points: loops 11 (42 pts), if/else 1 (nesting depth added 31). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (BN2D._forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BN2D.swift"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"930942b47ec213f6b172eb81b608367e89a32e92aabd4244774eaeb7893f5973"}},{"ruleId":"D2","level":"warning","message":{"text":"BN2D._forwardGCGPU (cognitive 43): BN2D._forwardGCGPU has cognitive complexity 43 (threshold 15). Drivers by points: loops 11 (42 pts), if/else 1 (nesting depth added 31). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (BN2D._forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BN2D.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"222695b965fd018a66649e91c4e132710da71c4e0d128cfd4bb16eda994dce6d"}},{"ruleId":"D2","level":"warning","message":{"text":"Constant2D.forwardGCCPU (cognitive 43): Constant2D.forwardGCCPU has cognitive complexity 43 (threshold 15). Drivers by points: loops 9 (27 pts), if/else 3 (16 pts) (nesting depth added 31). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (Constant2D.forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Constant2D.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8ba310f6e80c82ab0df3df7e39fa3942fa99ef29265287938b5cf78c2e29c7"}},{"ruleId":"D2","level":"warning","message":{"text":"Constant2D.forwardGCGPU (cognitive 43): Constant2D.forwardGCGPU has cognitive complexity 43 (threshold 15). Drivers by points: loops 9 (27 pts), if/else 3 (16 pts) (nesting depth added 31). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (Constant2D.forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Constant2D.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f95ddff127c3ec90b8e41d38d3285d2a59c8b37bc3c8fe447231c31ae465187"}},{"ruleId":"D2","level":"warning","message":{"text":"InstanceNorm2D._forwardGCCPU (cognitive 43): InstanceNorm2D._forwardGCCPU has cognitive complexity 43 (threshold 15). Drivers by points: loops 11 (42 pts), if/else 1 (nesting depth added 31). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (InstanceNorm2D._forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/InstanceNorm2D.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"54769c29c7c5a88917c5a302ae20a1d82f14ae49e772e573cda33c9e4fb33f5c"}},{"ruleId":"D2","level":"warning","message":{"text":"InstanceNorm2D._forwardGCGPU (cognitive 43): InstanceNorm2D._forwardGCGPU has cognitive complexity 43 (threshold 15). Drivers by points: loops 11 (42 pts), if/else 1 (nesting depth added 31). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (InstanceNorm2D._forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/InstanceNorm2D.swift"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"33108b8df618214b6fc2d8ffb582783c3b8094b3e22c675d4d588c6a166c2691"}},{"ruleId":"D2","level":"warning","message":{"text":"Multiply2D.forwardCPU (cognitive 43): Multiply2D.forwardCPU has cognitive complexity 43 (threshold 15). Drivers by points: loops 7 (28 pts), if/else 2 (13 pts), boolean chains 2 (nesting depth added 32). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3546b3177ec6733d86c262434668da190918fa576721ee58dbc0a7d293d7c66"}},{"ruleId":"D2","level":"warning","message":{"text":"Normalize12D.backwardCPU (cognitive 42): Normalize12D.backwardCPU has cognitive complexity 42 (threshold 15). Drivers by points: loops 6 (26 pts), if/else 5 (15 pts), boolean chains 1 (nesting depth added 30). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9df6d09a0b4d821a9a5b74eb64148b463725e994168e68ade82a506bfc65657"}},{"ruleId":"D2","level":"warning","message":{"text":"Constant12Seq.forwardGCCPU (cognitive 41): Constant12Seq.forwardGCCPU has cognitive complexity 41 (threshold 15). Drivers by points: loops 8 (24 pts), if/else 3 (16 pts), boolean chains 1 (nesting depth added 29). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (Constant12Seq.forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConstantSeq.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9541753128d6662ccd8c0a5adc5a0fed2857a17052362ae711c93041b37d2aa"}},{"ruleId":"D2","level":"warning","message":{"text":"Constant12Seq.forwardGCGPU (cognitive 41): Constant12Seq.forwardGCGPU has cognitive complexity 41 (threshold 15). Drivers by points: loops 8 (24 pts), if/else 3 (16 pts), boolean chains 1 (nesting depth added 29). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (Constant12Seq.forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConstantSeq.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"a117195a4f381801d3d4c746ff821fd76528aae6c3900d3b463b13f78e00c560"}},{"ruleId":"D2","level":"warning","message":{"text":"EmbeddingSeq.forwardGCCPU (cognitive 41): EmbeddingSeq.forwardGCCPU has cognitive complexity 41 (threshold 15). Drivers by points: loops 8 (24 pts), if/else 3 (16 pts), boolean chains 1 (nesting depth added 29). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (EmbeddingSeq.forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a032708cfc45da818e2e22fb1e51826882421730e63947ccac73098e7f9669"}},{"ruleId":"D2","level":"warning","message":{"text":"EmbeddingSeq.forwardGCGPU (cognitive 41): EmbeddingSeq.forwardGCGPU has cognitive complexity 41 (threshold 15). Drivers by points: loops 8 (24 pts), if/else 3 (16 pts), boolean chains 1 (nesting depth added 29). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (EmbeddingSeq.forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8c1c8e170ef64f2b055dd2b91e8f2dfeb86d69ed7345d0175ad3f1f605abeb"}},{"ruleId":"D2","level":"warning","message":{"text":"MetalKernel.get (cognitive 41): MetalKernel.get has cognitive complexity 41 (threshold 15). Drivers by points: if/else 10 (28 pts), loops 4 (13 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":"Sources/GrAIdient/Metal/MetalKernel.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb68a8e55ddf30d4bf7fd306675e6cc77c0aa89df46284c59a6d0718ccb65a4b"}},{"ruleId":"D2","level":"warning","message":{"text":"Pad2D.forwardGCCPU (cognitive 41): Pad2D.forwardGCCPU has cognitive complexity 41 (threshold 15). Drivers by points: loops 8 (29 pts), if/else 3 (9 pts), boolean chains 3 (nesting depth added 27). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Pad2D.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"f416cb9a94cebeec91ab4cf7100721068c7a9b2c00537f7ce6df5d3d9ac80a4e"}},{"ruleId":"D2","level":"warning","message":{"text":"ResizeBilinearPad.forwardGCCPU (cognitive 41): ResizeBilinearPad.forwardGCCPU has cognitive complexity 41 (threshold 15). Drivers by points: loops 8 (29 pts), if/else 3 (9 pts), boolean chains 3 (nesting depth added 27). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e1654ef3338875e440bba4a64e874a6e60d538ecfc89acf4f3c8f006d7f87b"}},{"ruleId":"D2","level":"warning","message":{"text":"Rotate2D.forwardGCCPU (cognitive 41): Rotate2D.forwardGCCPU has cognitive complexity 41 (threshold 15). Drivers by points: loops 8 (29 pts), if/else 3 (9 pts), boolean chains 3 (nesting depth added 27). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae7549aa8b26b0e380583c30c733a7c318af20213e9756a177dee7336f623d7"}},{"ruleId":"D2","level":"warning","message":{"text":"RMSNormalization.forwardGC (cognitive 40): RMSNormalization.forwardGC has cognitive complexity 40 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 5 (17 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":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":2791}}}],"partialFingerprints":{"codehealthFindingId/v1":"a944648bff9067ebd7fcac75cc8b478a81581abc25dcf9b842e5c9cf8d98ca14"}},{"ruleId":"D2","level":"warning","message":{"text":"ResizeBilinearCrop.forwardCPU (cognitive 40): ResizeBilinearCrop.forwardCPU has cognitive complexity 40 (threshold 15). Drivers by points: if/else 13 (21 pts), loops 4 (14 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":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9bccad9e6ad2d9cf8713b63cda0d6d677b642143d10371595b88a2ebbd8eb7f"}},{"ruleId":"D2","level":"warning","message":{"text":"VQ2D.forwardCPU (cognitive 38): VQ2D.forwardCPU has cognitive complexity 38 (threshold 15). Drivers by points: loops 6 (25 pts), if/else 3 (12 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":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b0cd32aec3799ee6ba7cf606994d24e6114b65361088290fdad211bf67ba358"}},{"ruleId":"D2","level":"warning","message":{"text":"FullyConnectedPatch._backwardWeightsCPU (cognitive 38): FullyConnectedPatch._backwardWeightsCPU has cognitive complexity 38 (threshold 15). Drivers by points: loops 7 (26 pts), if/else 4 (11 pts), boolean chains 1 (nesting depth added 26). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7f8fd598eb25b2812cc73341fd2899a74906d887aabf6555530afca661016b"}},{"ruleId":"D2","level":"warning","message":{"text":"FullyConnectedSeq._backwardWeightsCPU (cognitive 38): FullyConnectedSeq._backwardWeightsCPU has cognitive complexity 38 (threshold 15). Drivers by points: loops 7 (26 pts), if/else 4 (11 pts), boolean chains 1 (nesting depth added 26). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e8bd9b1bb64eaf3ab30643bdfc84ea531dc3c04a9d90803d5357df1f23679d"}},{"ruleId":"D2","level":"warning","message":{"text":"FlipHorizontal2D.forwardGCCPU (cognitive 38): FlipHorizontal2D.forwardGCCPU has cognitive complexity 38 (threshold 15). Drivers by points: loops 8 (29 pts), if/else 3 (9 pts) (nesting depth added 27). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (FlipVertical2D.forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Flip2D.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5801726b54bd770315123a7a9c3671847793f01e4ce6220a6f1d0a690b09822"}},{"ruleId":"D2","level":"warning","message":{"text":"FlipVertical2D.forwardGCCPU (cognitive 38): FlipVertical2D.forwardGCCPU has cognitive complexity 38 (threshold 15). Drivers by points: loops 8 (29 pts), if/else 3 (9 pts) (nesting depth added 27). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (FlipHorizontal2D.forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Flip2D.swift"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae20e527df8f90daf20162fa4d12f3b79029b13efcfeea3d5096e5a0191a118"}},{"ruleId":"D2","level":"warning","message":{"text":"VQ2D._backwardCPU (cognitive 37): VQ2D._backwardCPU has cognitive complexity 37 (threshold 15). Drivers by points: loops 5 (21 pts), if/else 5 (15 pts), boolean chains 1 (nesting depth added 26). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c8bb2ac65dbc4cb1689766ab59b2b6cea31ee727e1e567169fdaf2d4a79433"}},{"ruleId":"D2","level":"warning","message":{"text":"LayerOutput2D.checkGroundTruthGPU (cognitive 37): LayerOutput2D.checkGroundTruthGPU has cognitive complexity 37 (threshold 15). Drivers by points: loops 8 (28 pts), boolean chains 4, if/else 4, match/switch 1 (nesting depth added 20). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"40784730204ed5ecb0e3f27284b8b9507041656e35c5e5e7a6639921e97edde7"}},{"ruleId":"D2","level":"warning","message":{"text":"DecorrelateRGB.forwardGCCPU (cognitive 37): DecorrelateRGB.forwardGCCPU has cognitive complexity 37 (threshold 15). Drivers by points: loops 9 (36 pts), if/else 1 (nesting depth added 27). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"30fb8659b4437b0bc825070f5027d9d60c7955c3ec160616bdbe8563fe8c48c9"}},{"ruleId":"D2","level":"warning","message":{"text":"MaxPool2D.backwardCPU (cognitive 36): MaxPool2D.backwardCPU has cognitive complexity 36 (threshold 15). Drivers by points: loops 8 (32 pts), if/else 2 (3 pts), boolean chains 1 (nesting depth added 25). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/MaxPool2D.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a49e90e94905038d000d87ad987621ad6803013556cb1907839896a9a7ea4ab"}},{"ruleId":"D2","level":"warning","message":{"text":"Normalize12D.forwardGCCPU (cognitive 36): Normalize12D.forwardGCCPU has cognitive complexity 36 (threshold 15). Drivers by points: loops 9 (35 pts), if/else 1 (nesting depth added 26). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae6caff52b5debb3d52d6e4c95ca3282441d64a24f75b20f077a3ff86f07240"}},{"ruleId":"D2","level":"warning","message":{"text":"IRDFT2RGB.backwardCPU (cognitive 36): IRDFT2RGB.backwardCPU has cognitive complexity 36 (threshold 15). Drivers by points: loops 6 (27 pts), if/else 3 (8 pts), boolean chains 1 (nesting depth added 26). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"272cbf7d3deb362a8b28693650f117c781d490e699f24e48e787b4a15cad4bee"}},{"ruleId":"D2","level":"warning","message":{"text":"ResizeBilinearCrop.backwardCPU (cognitive 36): ResizeBilinearCrop.backwardCPU has cognitive complexity 36 (threshold 15). Drivers by points: loops 8 (32 pts), if/else 2 (3 pts), boolean chains 1 (nesting depth added 25). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"f477f5c4f73e41090c75a25c8bd33e1a7861f39aeda51284cc56b994cc9640a9"}},{"ruleId":"D2","level":"warning","message":{"text":"ResizeBilinearPad.backwardCPU (cognitive 36): ResizeBilinearPad.backwardCPU has cognitive complexity 36 (threshold 15). Drivers by points: loops 8 (32 pts), if/else 2 (3 pts), boolean chains 1 (nesting depth added 25). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4cfcbe9911213d0a12e7a901f366383396c80217e49a60749f75498951b7e6d"}},{"ruleId":"D2","level":"warning","message":{"text":"Concat1D.forwardGCGPU (cognitive 35): Concat1D.forwardGCGPU has cognitive complexity 35 (threshold 15). Drivers by points: loops 12 (28 pts), if/else 2 (7 pts) (nesting depth added 21). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f8838005a1db55db6d3d8fc9733ac0d18748d1d1c7df7d63edce689d7787587"}},{"ruleId":"D2","level":"warning","message":{"text":"Sum1D.forwardGCGPU (cognitive 35): Sum1D.forwardGCGPU has cognitive complexity 35 (threshold 15). Drivers by points: loops 12 (28 pts), if/else 2 (7 pts) (nesting depth added 21). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Sum1D.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02513bff44b0e1f0dea25f6bbc46d5e47dae66d689771870eed1f3ae3bcf748"}},{"ruleId":"D2","level":"warning","message":{"text":"SelfCorrelate2D.backwardCPU (cognitive 35): SelfCorrelate2D.backwardCPU has cognitive complexity 35 (threshold 15). Drivers by points: loops 6 (26 pts), if/else 3 (8 pts), boolean chains 1 (nesting depth added 25). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"da29d84ee8b2755442221dbc3250051d469503c1bb80c60ce7e4c346953fc453"}},{"ruleId":"D2","level":"warning","message":{"text":"Concat1D.forwardGCCPU (cognitive 34): Concat1D.forwardGCCPU has cognitive complexity 34 (threshold 15). Drivers by points: loops 11 (27 pts), if/else 2 (7 pts) (nesting depth added 21). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b61030de9e0f0468366d2bbe5e0325b3ff89bd78aacd3eb6b742819e985d2ba"}},{"ruleId":"D2","level":"warning","message":{"text":"DotProduct1D.forwardGCCPU (cognitive 34): DotProduct1D.forwardGCCPU has cognitive complexity 34 (threshold 15). Drivers by points: loops 11 (27 pts), if/else 2 (7 pts) (nesting depth added 21). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (DotProduct1D.forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/DotProduct1D.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18a5eff9a302feb43c5a5b193baf83d9c70b161a213a88c6a72ba37c045b339"}},{"ruleId":"D2","level":"warning","message":{"text":"DotProduct1D.forwardGCGPU (cognitive 34): DotProduct1D.forwardGCGPU has cognitive complexity 34 (threshold 15). Drivers by points: loops 11 (27 pts), if/else 2 (7 pts) (nesting depth added 21). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (DotProduct1D.forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/DotProduct1D.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"1346edd4cd832f3562429cdffd54cfd2d1622b93af8daeba0c1290cac667be3e"}},{"ruleId":"D2","level":"warning","message":{"text":"Sum1D.forwardGCCPU (cognitive 34): Sum1D.forwardGCCPU has cognitive complexity 34 (threshold 15). Drivers by points: loops 11 (27 pts), if/else 2 (7 pts) (nesting depth added 21). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Sum1D.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"523b6ff899f1b11498a78906827c7228fb617a714e7a217dccde36e4e9206fa8"}},{"ruleId":"D2","level":"warning","message":{"text":"LayerNormSeq._forwardGCCPU (cognitive 34): LayerNormSeq._forwardGCCPU has cognitive complexity 34 (threshold 15). Drivers by points: loops 10 (33 pts), if/else 1 (nesting depth added 23). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (LayerNormSeq._forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/LayerNormSeq.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e65ceaae0666ef248128b84666230fa5b0d506774b725aac00424a24738b88e"}},{"ruleId":"D2","level":"warning","message":{"text":"LayerNormSeq._forwardGCGPU (cognitive 34): LayerNormSeq._forwardGCGPU has cognitive complexity 34 (threshold 15). Drivers by points: loops 10 (33 pts), if/else 1 (nesting depth added 23). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (LayerNormSeq._forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/LayerNormSeq.swift"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b5d05b4b3992fe9185ce85a5f35f49bcd8dab7a512dcda05945a96c355ce23"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiplySeq.forwardCPU (cognitive 34): MultiplySeq.forwardCPU has cognitive complexity 34 (threshold 15). Drivers by points: loops 6 (21 pts), if/else 2 (11 pts), boolean chains 2 (nesting depth added 24). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/MutiplySeq.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"73183a98727c705c0f780f8c2180c02c4ab92e8f08d33340f5258fb6330f7a2d"}},{"ruleId":"D2","level":"warning","message":{"text":"RMSNormSeq._forwardGCCPU (cognitive 34): RMSNormSeq._forwardGCCPU has cognitive complexity 34 (threshold 15). Drivers by points: loops 10 (33 pts), if/else 1 (nesting depth added 23). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (RMSNormSeq._forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/RMSNormSeq.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d0e0c4ef23f000f3eae7d025b1b6c2d898ed5bf5d24ce4a0bb82f48dfedf34"}},{"ruleId":"D2","level":"warning","message":{"text":"RMSNormSeq._forwardGCGPU (cognitive 34): RMSNormSeq._forwardGCGPU has cognitive complexity 34 (threshold 15). Drivers by points: loops 10 (33 pts), if/else 1 (nesting depth added 23). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (RMSNormSeq._forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/RMSNormSeq.swift"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e0ba16a263c35c94cb1e45ff643532910f4df3ac131b376061e4389a045c08"}},{"ruleId":"D2","level":"warning","message":{"text":"ColorJitterHSV.forwardCPU (cognitive 34): ColorJitterHSV.forwardCPU has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 3 (9 pts), match/switch 1 (5 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ColorJitterHSV.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a729b7ee91317f15adedca0ecd914b5ba8680ebc20328f4c952c0afa530e23"}},{"ruleId":"D2","level":"warning","message":{"text":"Softmax1D.forwardGCCPU (cognitive 33): Softmax1D.forwardGCCPU has cognitive complexity 33 (threshold 15). Drivers by points: loops 7 (26 pts), if/else 2 (7 pts) (nesting depth added 24). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Softmax1D.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f257d1035649947000f5c936b9327b1a8bbb1f0f71ca64ad0675349bc69982"}},{"ruleId":"D2","level":"warning","message":{"text":"SelfCorrelate2D.forwardGCCPU (cognitive 33): SelfCorrelate2D.forwardGCCPU has cognitive complexity 33 (threshold 15). Drivers by points: loops 8 (32 pts), if/else 1 (nesting depth added 24). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"107d6dd707133f42ce45280b8deb1b1f1b57cef53d53a1754d3ca0e0953d9edd"}},{"ruleId":"D2","level":"warning","message":{"text":"QuerySelfSeq.forwardGCCPU (cognitive 33): QuerySelfSeq.forwardGCCPU has cognitive complexity 33 (threshold 15). Drivers by points: loops 8 (32 pts), if/else 1 (nesting depth added 24). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bfb3518569575ad486b761366f334c8fa1a99cfdb0ef1beb810e0ff055d5314"}},{"ruleId":"D2","level":"warning","message":{"text":"LayerInput2D.checkInputCPU (cognitive 33): LayerInput2D.checkInputCPU has cognitive complexity 33 (threshold 15). Drivers by points: loops 8 (28 pts), boolean chains 2, if/else 2, match/switch 1 (nesting depth added 20). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (LayerInput2D.checkInputGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/LayerInput2D.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"4acbcf2792a45e0a2820688701122311ea8a6515291673f8cd8e4c4e22508278"}},{"ruleId":"D2","level":"warning","message":{"text":"LayerInput2D.checkInputGPU (cognitive 33): LayerInput2D.checkInputGPU has cognitive complexity 33 (threshold 15). Drivers by points: loops 8 (28 pts), boolean chains 2, if/else 2, match/switch 1 (nesting depth added 20). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (LayerInput2D.checkInputCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/LayerInput2D.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba9e338252e0013233b26d23abc104baeeacd3af573d33d316ea166f6d74eb0"}},{"ruleId":"D2","level":"warning","message":{"text":"Constant2Seq.forwardGCCPU (cognitive 32): Constant2Seq.forwardGCCPU has cognitive complexity 32 (threshold 15). Drivers by points: loops 7 (18 pts), if/else 3 (14 pts) (nesting depth added 22). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (Constant2Seq.forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConstantSeq.swift"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"691d8f37578363dc33955f35f7a4f85ee9d22f637df77be0fbc33d1abae80b2f"}},{"ruleId":"D2","level":"warning","message":{"text":"Constant2Seq.forwardGCGPU (cognitive 32): Constant2Seq.forwardGCGPU has cognitive complexity 32 (threshold 15). Drivers by points: loops 7 (18 pts), if/else 3 (14 pts) (nesting depth added 22). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (Constant2Seq.forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConstantSeq.swift"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de1cd861883f560884aaf3a429d108213fae35ade14942513a6b1ed03f12266"}},{"ruleId":"D2","level":"warning","message":{"text":"VQ2D._backwardWeightsCPU (cognitive 31): VQ2D._backwardWeightsCPU has cognitive complexity 31 (threshold 15). Drivers by points: loops 6 (22 pts), if/else 3 (8 pts), boolean chains 1 (nesting depth added 21). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f84c7d4bf7d3b823df98d3c6e0da4569d892f0068ca59ae110ae3f54fe794b6"}},{"ruleId":"D2","level":"warning","message":{"text":"SoftmaxSeq.forwardCPU (cognitive 31): SoftmaxSeq.forwardCPU has cognitive complexity 31 (threshold 15). Drivers by points: loops 6 (24 pts), if/else 2 (7 pts) (nesting depth added 23). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"458181e774992f503edc9269cb16e7c8e2fbaf006630b58f34208e2c1159da24"}},{"ruleId":"D2","level":"warning","message":{"text":"Crop2D.backwardCPU (cognitive 31): Crop2D.backwardCPU has cognitive complexity 31 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 4 (9 pts), boolean chains 8 (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":"Sources/GrAIdient/Layer2D/Transform/Crop2D.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5ba8e2620f0ebf24fbf252188d07942b9b2cfd0c8b5422869d8b21c6a8a434"}},{"ruleId":"D2","level":"warning","message":{"text":"ResizeBilinearPad.forwardCPU (cognitive 31): ResizeBilinearPad.forwardCPU has cognitive complexity 31 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 6 (12 pts), boolean chains 5 (nesting depth added 16). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"9652421fc5de1221c21cd18ecfba3a6ef1086317a0b92eb2da622e4a4c514d90"}},{"ruleId":"D2","level":"warning","message":{"text":"Rotate2D.forwardCPU (cognitive 31): Rotate2D.forwardCPU has cognitive complexity 31 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 6 (12 pts), boolean chains 5 (nesting depth added 16). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca9b7b3a0c6a6e445e1f76fca61c86646d29e45194c497efae73c5487b83616"}},{"ruleId":"D2","level":"warning","message":{"text":"SimilarityError2D.lossDerivativeCPU (cognitive 30): SimilarityError2D.lossDerivativeCPU has cognitive complexity 30 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 5 (15 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityError2D.swift"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29244556182e919d601e583d16d6242327bb9a418b3cad6de2a0c4d11007864"}},{"ruleId":"D2","level":"warning","message":{"text":"LayerOutput2D.forwardGCCPU (cognitive 30): LayerOutput2D.forwardGCCPU has cognitive complexity 30 (threshold 15). Drivers by points: loops 8 (29 pts), if/else 1 (nesting depth added 21). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d9d615d011653ebae6f32125ac8742c5a0981b6f66bb82b88ccc3ba45f929d7"}},{"ruleId":"D2","level":"warning","message":{"text":"Crop2D.forwardGCCPU (cognitive 30): Crop2D.forwardGCCPU has cognitive complexity 30 (threshold 15). Drivers by points: loops 8 (29 pts), if/else 1 (nesting depth added 21). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Crop2D.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"420b3a07c95eec45a1e286e0ce9ff0afe73321003bcc36fdcd9b3d938c8f2eb6"}},{"ruleId":"D2","level":"warning","message":{"text":"FlipHorizontal2D.backwardCPU (cognitive 30): FlipHorizontal2D.backwardCPU has cognitive complexity 30 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 4 (14 pts), boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (FlipVertical2D.backwardCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Flip2D.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c19693b2e84310ac97c8feaa64ac1002de685e1f67e54b7f80eaf3c774c7383"}},{"ruleId":"D2","level":"warning","message":{"text":"FlipVertical2D.backwardCPU (cognitive 30): FlipVertical2D.backwardCPU has cognitive complexity 30 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 4 (14 pts), boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (FlipHorizontal2D.backwardCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Flip2D.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d0a89b431b4336fa1cdf73b376ea8546f63f4743d327cc8bca62ed097c736ac"}},{"ruleId":"D2","level":"warning","message":{"text":"LinearScale2D.forwardGCCPU (cognitive 30): LinearScale2D.forwardGCCPU has cognitive complexity 30 (threshold 15). Drivers by points: loops 8 (29 pts), if/else 1 (nesting depth added 21). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"7faf5c06b56b14348ef0b4e6b0a78625ca942d4febff904e1b32a66c3543c67c"}},{"ruleId":"D2","level":"warning","message":{"text":"ResizeBilinearCrop.forwardGCCPU (cognitive 30): ResizeBilinearCrop.forwardGCCPU has cognitive complexity 30 (threshold 15). Drivers by points: loops 8 (29 pts), if/else 1 (nesting depth added 21). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"d883ca4d884b78f447a8f87c0f8f909b09bc5f681790add33fa93dcda6f056fc"}},{"ruleId":"D2","level":"warning","message":{"text":"AdaIN.forwardGCCPU (cognitive 29): AdaIN.forwardGCCPU has cognitive complexity 29 (threshold 15). Drivers by points: loops 11 (23 pts), if/else 2 (6 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. This shape REPEATS in the file: one other method here (AdaIN.forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaIN.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"b652742fbd88fec7179e2195d2df955aaf44db10c93b41be42016c70cf0c49e7"}},{"ruleId":"D2","level":"warning","message":{"text":"AdaIN.forwardGCGPU (cognitive 29): AdaIN.forwardGCGPU has cognitive complexity 29 (threshold 15). Drivers by points: loops 11 (23 pts), if/else 2 (6 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. This shape REPEATS in the file: one other method here (AdaIN.forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaIN.swift"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60548c92c9d3468398e2e0269a4c83081e2fe2f5bcdad3f165a147cf4b40507"}},{"ruleId":"D2","level":"warning","message":{"text":"BCE2D.getLossGC (cognitive 29): BCE2D.getLossGC has cognitive complexity 29 (threshold 15). Drivers by points: loops 8 (28 pts), match/switch 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. This shape REPEATS in the file: one other method here (BCE2D.getLossCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCE2D.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"81dd54ea8a1de9c9e8a8f43a6fdc67b099b2032000ebf6924cdee842b38d01f0"}},{"ruleId":"D2","level":"warning","message":{"text":"BCE2D.getLossCPU (cognitive 29): BCE2D.getLossCPU has cognitive complexity 29 (threshold 15). Drivers by points: loops 8 (28 pts), match/switch 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. This shape REPEATS in the file: one other method here (BCE2D.getLossGC) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCE2D.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"14692b582b98f09a35afb61f50ce73314e565e4e1a2b0c0c7f85307a57ae275f"}},{"ruleId":"D2","level":"warning","message":{"text":"MSE2D.getLossGC (cognitive 29): MSE2D.getLossGC has cognitive complexity 29 (threshold 15). Drivers by points: loops 8 (28 pts), match/switch 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. This shape REPEATS in the file: one other method here (MSE2D.getLossCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/MSE2D.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"17fa15e987deddb76588ce0165109601ea8f9e01f7d640a9c692267c365ef1fa"}},{"ruleId":"D2","level":"warning","message":{"text":"MSE2D.getLossCPU (cognitive 29): MSE2D.getLossCPU has cognitive complexity 29 (threshold 15). Drivers by points: loops 8 (28 pts), match/switch 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. This shape REPEATS in the file: one other method here (MSE2D.getLossGC) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/MSE2D.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"356973707311e92427c359b2751dcb124fc00480860730d21cf3f30156057704"}},{"ruleId":"D2","level":"warning","message":{"text":"SoftmaxSeq.backwardCPU (cognitive 29): SoftmaxSeq.backwardCPU has cognitive complexity 29 (threshold 15). Drivers by points: loops 5 (20 pts), if/else 3 (8 pts), boolean chains 1 (nesting depth added 20). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"e55a2f241bcb824325f459fbfdeb35736fc8953a5225c68c76369ed147487d33"}},{"ruleId":"D2","level":"warning","message":{"text":"VQSeq.forwardCPU (cognitive 29): VQSeq.forwardCPU has cognitive complexity 29 (threshold 15). Drivers by points: loops 5 (18 pts), if/else 3 (10 pts), boolean chains 1 (nesting depth added 20). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/VQSeq.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"18b78ce03c4ab349b2253e698a1e0f95bae791ed913cab987c7274493564fe05"}},{"ruleId":"D2","level":"warning","message":{"text":"VQSeq._backwardCPU (cognitive 29): VQSeq._backwardCPU has cognitive complexity 29 (threshold 15). Drivers by points: loops 4 (15 pts), if/else 5 (13 pts), boolean chains 1 (nesting depth added 19). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/VQSeq.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"92793b7cc4c694036ec61846a0e0db8c5342bcd0c31df4efd3be6ccb5a1031db"}},{"ruleId":"D2","level":"warning","message":{"text":"DecorrelateRGB.backwardCPU (cognitive 29): DecorrelateRGB.backwardCPU has cognitive complexity 29 (threshold 15). Drivers by points: loops 5 (20 pts), if/else 3 (8 pts), boolean chains 1 (nesting depth added 20). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf9a6a4e02dcdc1f121ed79c7ee50cabd427a1759ff375ae8b37d561b387ec48"}},{"ruleId":"D2","level":"warning","message":{"text":"SimilarityBatchError2D.lossDerivativeCPU (cognitive 28): SimilarityBatchError2D.lossDerivativeCPU has cognitive complexity 28 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 4 (13 pts), boolean chains 1 (nesting depth added 19). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f4aa215e92a48e906ca97afc5388ac5d9cf05a05d73238a050c068b80d427d"}},{"ruleId":"D2","level":"warning","message":{"text":"FullyConnectedPatch._forwardCPU (cognitive 28): FullyConnectedPatch._forwardCPU has cognitive complexity 28 (threshold 15). Drivers by points: loops 6 (27 pts), if/else 1 (nesting depth added 21). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93dd9bdbaaf3edc25e6620b297bd168750e0b939b9c73f31765320e5e0fe20b"}},{"ruleId":"D2","level":"warning","message":{"text":"IRDFT2RGB.forwardCPU (cognitive 28): IRDFT2RGB.forwardCPU has cognitive complexity 28 (threshold 15). Drivers by points: loops 6 (27 pts), if/else 1 (nesting depth added 21). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"11bfa096e7e62685c38d56184e3448b41b9cf948a903ceef2549d5e754b88610"}},{"ruleId":"D2","level":"warning","message":{"text":"FullyConnected._backwardWeightsCPU (cognitive 27): FullyConnected._backwardWeightsCPU has cognitive complexity 27 (threshold 15). Drivers by points: loops 5 (16 pts), if/else 4 (11 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":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"348bd94f74c80d29d31b73c572cdc6e90321f449d3456724666a6706d4a02f4f"}},{"ruleId":"D2","level":"warning","message":{"text":"Convolution2D._backwardWeightsGPU (cognitive 27): Convolution2D._backwardWeightsGPU has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 8, ternaries 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":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe4a23e8a081bbed7293da1abdff6fe2c5eb826e3ce372a8cddb51dd162229d"}},{"ruleId":"D2","level":"warning","message":{"text":"LayerCAM2D.forwardCPU (cognitive 27): LayerCAM2D.forwardCPU has cognitive complexity 27 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 3 (13 pts) (nesting depth added 20). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/LayerCAM2D.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5c4073921c50f6467bf0e4fac4559da0d6dc18afc325b118c16506465c1c8c"}},{"ruleId":"D2","level":"warning","message":{"text":"Normalize122D.forwardCPU (cognitive 27): Normalize122D.forwardCPU has cognitive complexity 27 (threshold 15). Drivers by points: loops 7 (26 pts), if/else 1 (nesting depth added 19). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"0099bc91492ead11bf51fd01996b73b80668df2517619aaa63836f5d28c97a38"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectNeurons2D.backwardCPU (cognitive 27): SelectNeurons2D.backwardCPU has cognitive complexity 27 (threshold 15). Drivers by points: loops 6 (23 pts), if/else 2 (3 pts), boolean chains 1 (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":"Sources/GrAIdient/Layer2D/SelectNeurons2D.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"857e6d1b1e7aff09461c26a3e387194df24170caace7eb2977a6a595229b9cf4"}},{"ruleId":"D2","level":"warning","message":{"text":"Concat2D.backwardCPU (cognitive 26): Concat2D.backwardCPU has cognitive complexity 26 (threshold 15). Drivers by points: loops 5 (15 pts), if/else 4 (11 pts) (nesting depth added 17). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Concat2D.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac31169e5890041fb32403aef76dd2667a31d8de699775df540761cba58d66c"}},{"ruleId":"D2","level":"warning","message":{"text":"FullyConnectedSeq._backwardWeightsGPU (cognitive 26): FullyConnectedSeq._backwardWeightsGPU has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 4 (12 pts), boolean chains 1 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"070c46c13a0ee27f33f2a92071c6f014f4ebe3302a7c48110fc3dc58fa9046b8"}},{"ruleId":"D2","level":"warning","message":{"text":"RoPESeq.forwardGCCPU (cognitive 26): RoPESeq.forwardGCCPU has cognitive complexity 26 (threshold 15). Drivers by points: loops 7 (25 pts), if/else 1 (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":"Sources/GrAIdient/LayerSeq/RoPESeq.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ecbbe2676bd4fa8aaf8193b2aa6e5f525126825f92fdcef4198b236a1d31c3"}},{"ruleId":"D2","level":"warning","message":{"text":"ResizeBilinearCrop.forwardGPU (cognitive 26): ResizeBilinearCrop.forwardGPU has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 5 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"440ff49ccc0238553f2a76cd545066c1ad3d2d7ff30d82006f570532ee7e4b5b"}},{"ruleId":"D2","level":"warning","message":{"text":"Multiply2D.backwardCPU (cognitive 25): Multiply2D.backwardCPU has cognitive complexity 25 (threshold 15). Drivers by points: loops 5 (15 pts), if/else 4 (10 pts) (nesting depth added 16). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d79e7bf5853325ff9f44c1f3429692484fbe0d60b95be5208f3dd3b03b39dad"}},{"ruleId":"D2","level":"warning","message":{"text":"Sum2D.backwardCPU (cognitive 25): Sum2D.backwardCPU has cognitive complexity 25 (threshold 15). Drivers by points: loops 5 (15 pts), if/else 4 (10 pts) (nesting depth added 16). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Sum2D.swift"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44286ac6710d6f936668fb582ff8cb1206ddee77e6dd258c25e180de56fad79"}},{"ruleId":"D2","level":"warning","message":{"text":"VQSeq._backwardWeightsCPU (cognitive 25): VQSeq._backwardWeightsCPU has cognitive complexity 25 (threshold 15). Drivers by points: loops 5 (17 pts), if/else 3 (7 pts), boolean chains 1 (nesting depth added 16). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/VQSeq.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"3417c741a3212372ca543c92cd6b15ee12e9c34c6195c5463b3389eb8f015b93"}},{"ruleId":"D2","level":"warning","message":{"text":"Pad2D.forwardCPU (cognitive 25): Pad2D.forwardCPU has cognitive complexity 25 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 3 (8 pts), boolean chains 3 (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":"Sources/GrAIdient/Layer2D/Transform/Pad2D.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"817a90414890f533fd81b6f406ece55028d96492b2686d0fbf0ebf27eabcc21b"}},{"ruleId":"D2","level":"warning","message":{"text":"Dropout1D.forwardCPU (cognitive 24): Dropout1D.forwardCPU has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (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":"Sources/GrAIdient/Layer1D/Dropout1D.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"2429abb0c4ff86fe0d52cdf8d06176e03052d2d4284db7ded687d6dc14597dc1"}},{"ruleId":"D2","level":"warning","message":{"text":"FullyConnectedPatch._backwardWeightsGPU (cognitive 24): FullyConnectedPatch._backwardWeightsGPU has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 3 (10 pts), boolean chains 1 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c38eb55235cdb2e49fe6d119a55b61434bde500e8d6250e3d3a8d0e762444d"}},{"ruleId":"D2","level":"warning","message":{"text":"Constant1D.forwardGCCPU (cognitive 23): Constant1D.forwardGCCPU has cognitive complexity 23 (threshold 15). Drivers by points: if/else 3 (12 pts), loops 5 (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. This shape REPEATS in the file: one other method here (Constant1D.forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c6eb8f5cdbeef014fe952b2ef1bfcad2ddedc9649124a7a6fdba54c40f6f8a"}},{"ruleId":"D2","level":"warning","message":{"text":"Constant1D.forwardGCGPU (cognitive 23): Constant1D.forwardGCGPU has cognitive complexity 23 (threshold 15). Drivers by points: if/else 3 (12 pts), loops 5 (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. This shape REPEATS in the file: one other method here (Constant1D.forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f04ad35091e103ed68014e01d9540b1f55669c8d169910933c34e892e48dc5e"}},{"ruleId":"D2","level":"warning","message":{"text":"Softmax1D.forwardCPU (cognitive 23): Softmax1D.forwardCPU has cognitive complexity 23 (threshold 15). Drivers by points: loops 5 (17 pts), if/else 2 (6 pts) (nesting depth added 16). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Softmax1D.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"c549b836bf8ac8703607230698cf0e7a7c84f4f7880a2fec34352a2d42ad5600"}},{"ruleId":"D2","level":"warning","message":{"text":"Activation2D._forwardGC (cognitive 23): Activation2D._forwardGC has cognitive complexity 23 (threshold 15). Drivers by points: loops 6 (22 pts), if/else 1 (nesting depth added 16). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Activation2D.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d98c4d44825e90ea20d59ab205a45e5eeb0c4ca36f01c8e8fa4eafac7adbcdd"}},{"ruleId":"D2","level":"warning","message":{"text":"Activation2D.backwardCPU (cognitive 23): Activation2D.backwardCPU has cognitive complexity 23 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 3 (8 pts), boolean chains 1 (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":"Sources/GrAIdient/Layer2D/Activation2D.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"26795793bfc73cf98767b1d5389e5a21135f3f18226867aa7978289c25543370"}},{"ruleId":"D2","level":"warning","message":{"text":"AvgPool2D.forwardGCCPU (cognitive 23): AvgPool2D.forwardGCCPU has cognitive complexity 23 (threshold 15). Drivers by points: loops 6 (22 pts), if/else 1 (nesting depth added 16). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AvgPool2D.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"705beecf50193336df21c9c16c47f5e54dc6cb7fe592c8caed55b43bc430b565"}},{"ruleId":"D2","level":"warning","message":{"text":"AvgPool2D.backwardCPU (cognitive 23): AvgPool2D.backwardCPU has cognitive complexity 23 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 3 (8 pts), boolean chains 1 (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":"Sources/GrAIdient/Layer2D/AvgPool2D.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f36cb4b7c8b02d7749857a39a50b4d76020b9524d66cb99b8c7c55a5b3461d"}},{"ruleId":"D2","level":"warning","message":{"text":"BN2D.backwardCPU (cognitive 23): BN2D.backwardCPU has cognitive complexity 23 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 3 (8 pts), boolean chains 1 (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":"Sources/GrAIdient/Layer2D/BN2D.swift"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a20df816f2e2dbe4583a60e8d781e96146d352032e9f41c4be696e5303e9cb"}},{"ruleId":"D2","level":"warning","message":{"text":"Input2D.backwardCPU (cognitive 23): Input2D.backwardCPU has cognitive complexity 23 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 3 (8 pts), boolean chains 1 (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":"Sources/GrAIdient/Layer2D/Input2D.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"16873a2858871ea7c86aeb015e835b0bd5819fcb835061f9fb0979f03c35f5bf"}},{"ruleId":"D2","level":"warning","message":{"text":"InstanceNorm2D.backwardCPU (cognitive 23): InstanceNorm2D.backwardCPU has cognitive complexity 23 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 3 (8 pts), boolean chains 1 (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":"Sources/GrAIdient/Layer2D/InstanceNorm2D.swift"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"505c89a9a7b77a6c56c137d4e9370020cb59b886e88a4aac2329dd360d22d822"}},{"ruleId":"D2","level":"warning","message":{"text":"RoPESeq.backwardCPU (cognitive 23): RoPESeq.backwardCPU has cognitive complexity 23 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 3 (8 pts), boolean chains 1 (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":"Sources/GrAIdient/LayerSeq/RoPESeq.swift"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd4c70ca461405418d63909d1684aedbe74d10fd22be94b94f715a775174242"}},{"ruleId":"D2","level":"warning","message":{"text":"LayerOutput2D.backwardCPU (cognitive 23): LayerOutput2D.backwardCPU has cognitive complexity 23 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 3 (8 pts), boolean chains 1 (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":"Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"499bbcce3ba405c0a76904c60687116d484a049685e37cd0b7980798456f3ecd"}},{"ruleId":"D2","level":"warning","message":{"text":"LinearScale2D.backwardCPU (cognitive 23): LinearScale2D.backwardCPU has cognitive complexity 23 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 3 (8 pts), boolean chains 1 (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":"Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef42c186e6ed188e87e3a86e16dce23d188c653b7967886373db7f9ebdcb7bf"}},{"ruleId":"D2","level":"warning","message":{"text":"Pad2D.backwardCPU (cognitive 23): Pad2D.backwardCPU has cognitive complexity 23 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 3 (8 pts), boolean chains 1 (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":"Sources/GrAIdient/Layer2D/Transform/Pad2D.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff80376f7d7f55d6da900afc1ff5c3ad2c82e5222296412e992fe42e326e36e"}},{"ruleId":"D2","level":"warning","message":{"text":"Softmax1D.backwardCPU (cognitive 22): Softmax1D.backwardCPU has cognitive complexity 22 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 3 (7 pts), boolean chains 1 (nesting depth added 14). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Softmax1D.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"454be0ec41c01c47f20f264c2d67dd093d526b02c8d5d46908df2918c57d1c3e"}},{"ruleId":"D2","level":"warning","message":{"text":"FullyConnectedPatch._backwardCPU (cognitive 22): FullyConnectedPatch._backwardCPU has cognitive complexity 22 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 3 (7 pts), boolean chains 1 (nesting depth added 14). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6726d7a7c2388366556d9a06d75748e2a34aeea954c09585208712df7d0057a"}},{"ruleId":"D2","level":"warning","message":{"text":"FullyConnectedSeq._backwardCPU (cognitive 22): FullyConnectedSeq._backwardCPU has cognitive complexity 22 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 3 (7 pts), boolean chains 1 (nesting depth added 14). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a2236aae14a92516d87040c7b75d227f96fa0f286d228cd47d07d21861bea68"}},{"ruleId":"D2","level":"warning","message":{"text":"FlipHorizontal2D.forwardCPU (cognitive 22): FlipHorizontal2D.forwardCPU has cognitive complexity 22 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 3 (8 pts) (nesting depth added 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (FlipVertical2D.forwardCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Flip2D.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5126da664bcf28ee4d0bd6b63429eb9f15e948b97a60eeb2560a8ec39c77d3"}},{"ruleId":"D2","level":"warning","message":{"text":"FlipVertical2D.forwardCPU (cognitive 22): FlipVertical2D.forwardCPU has cognitive complexity 22 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 3 (8 pts) (nesting depth added 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (FlipHorizontal2D.forwardCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Flip2D.swift"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec7720bb6ce10ffebcefdf824e0eb3d28c75ba0f4913194e98b505d7c5a163c3"}},{"ruleId":"D2","level":"warning","message":{"text":"BCE1D.lossDerivativeCPU (cognitive 21): BCE1D.lossDerivativeCPU has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/BCE1D.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"f639f0eb3a3b6e37d74ee223a920cd8057b4e6ddb478d0619eea48e4dbf50279"}},{"ruleId":"D2","level":"warning","message":{"text":"Dropout1D.forwardGCCPU (cognitive 21): Dropout1D.forwardGCCPU has cognitive complexity 21 (threshold 15). Drivers by points: loops 4 (11 pts), if/else 4 (8 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. This shape REPEATS in the file: one other method here (Dropout1D.forwardGCGPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Dropout1D.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf9b5c5034de033af399b5bc9ac9cb93e4901ae1b7a8e757e17e3a16269bfe1a"}},{"ruleId":"D2","level":"warning","message":{"text":"Dropout1D.forwardGCGPU (cognitive 21): Dropout1D.forwardGCGPU has cognitive complexity 21 (threshold 15). Drivers by points: loops 4 (11 pts), if/else 4 (8 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. This shape REPEATS in the file: one other method here (Dropout1D.forwardGCCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Dropout1D.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89003b2a9c14886c99728d3508ce3c586cef0f3277df0add5f2972803a6a19a"}},{"ruleId":"D2","level":"warning","message":{"text":"Multiply2D.forwardGPU (cognitive 21): Multiply2D.forwardGPU has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (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":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe27ecb4c771be2a789050b25212bf6f58eca181133574836da6ddb4f60b1b16"}},{"ruleId":"D2","level":"warning","message":{"text":"SelfCorrelate2D.forwardCPU (cognitive 21): SelfCorrelate2D.forwardCPU has cognitive complexity 21 (threshold 15). Drivers by points: loops 5 (20 pts), if/else 1 (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":"Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"342b4790d8c2165d4beb9b6f2aab0bdeed9a3ed55109a6fa4a80aa49c8cafa60"}},{"ruleId":"D2","level":"warning","message":{"text":"VQ2D.getLossCPU (cognitive 21): VQ2D.getLossCPU has cognitive complexity 21 (threshold 15). Drivers by points: loops 4 (15 pts), if/else 2 (6 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":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"656db0cc25ec9086d5afe209538d75ff5c0aa0c0e77f45bbae7d415fc8f23d28"}},{"ruleId":"D2","level":"warning","message":{"text":"Concat1Seq.backwardCPU (cognitive 21): Concat1Seq.backwardCPU has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (11 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. This shape REPEATS in the file: one other method here (Concat2Seq.backwardCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f364b555a3760e40f1784f75b92bca5f7c3f70964c50f1caeb4e2338bc0eee"}},{"ruleId":"D2","level":"warning","message":{"text":"Concat2Seq.backwardCPU (cognitive 21): Concat2Seq.backwardCPU has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (11 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. This shape REPEATS in the file: one other method here (Concat1Seq.backwardCPU) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63edbe7800b766de20fb40973ef1518dd11ac8cad9bc80aa3fd70fd85f03de2"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiplySeq.forwardGPU (cognitive 21): MultiplySeq.forwardGPU has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (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":"Sources/GrAIdient/LayerSeq/MutiplySeq.swift"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af3d64f44eea51200ceb2172a837c0824112fcc777ebdc9b2ccad8adb3261bb"}},{"ruleId":"D2","level":"warning","message":{"text":"QuerySelfSeq.forwardCPU (cognitive 21): QuerySelfSeq.forwardCPU has cognitive complexity 21 (threshold 15). Drivers by points: loops 5 (20 pts), if/else 1 (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":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"7924800ade7eb6dc8fef959e51b1f72e30f5934b75fef5f6278b3f7afcb1719b"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectSeq.backwardCPU (cognitive 21): SelectSeq.backwardCPU has cognitive complexity 21 (threshold 15). Drivers by points: loops 5 (17 pts), if/else 2 (3 pts), boolean chains 1 (nesting depth added 13). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/SelectSeq.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce701caa55d9681ffa08b2e2e60eb7ace15151671a93e25592e17f15010c2e0"}},{"ruleId":"D2","level":"warning","message":{"text":"InstanceNormalization.forwardGC (cognitive 21): InstanceNormalization.forwardGC has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c1575e55f846448516cf20a9fe7d96bbd13823c87ed2cea501bc1e3b7ed6e77"}},{"ruleId":"D2","level":"warning","message":{"text":"Model.synchronizeWeights (cognitive 21): Model.synchronizeWeights has cognitive complexity 21 (threshold 15). Drivers by points: loops 7 (15 pts), if/else 2 (6 pts) (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Model/Model.swift"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f340bbd44568526a62b616ef30b0be093ff1d543b53fa597faf0a1c87c24c1"}},{"ruleId":"D2","level":"warning","message":{"text":"DecorrelateRGB.forwardCPU (cognitive 21): DecorrelateRGB.forwardCPU has cognitive complexity 21 (threshold 15). Drivers by points: loops 5 (20 pts), if/else 1 (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":"Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"7afbd371c2da8abd4bbb7d7f2d330983dc6cdcdd5130082e90d943a07b8cf656"}},{"ruleId":"D2","level":"warning","message":{"text":"BCESigmoid1D.lossDerivativeCPU (cognitive 20): BCESigmoid1D.lossDerivativeCPU has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/BCESigmoid1D.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"070482d7ad851dafa64937b2dadc9914864ba6c2287e822fd999e91bbdf40aec"}},{"ruleId":"D2","level":"warning","message":{"text":"Dropout1D.backwardCPU (cognitive 20): Dropout1D.backwardCPU has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (5 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Dropout1D.swift"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e206a3dd1843c10384e4eb9cf0d1bde05882511fd39f086ede1e278e20195c"}},{"ruleId":"D2","level":"warning","message":{"text":"Normalize12D.forwardCPU (cognitive 20): Normalize12D.forwardCPU has cognitive complexity 20 (threshold 15). Drivers by points: loops 5 (19 pts), if/else 1 (nesting depth added 14). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73e3e1f8fd11eafff64c77f8698a991c75bfc086a567a26a04d0ade23a61d4b"}},{"ruleId":"D2","level":"warning","message":{"text":"ActivationSeq._forwardGC (cognitive 20): ActivationSeq._forwardGC has cognitive complexity 20 (threshold 15). Drivers by points: loops 6 (19 pts), if/else 1 (nesting depth added 13). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ActivationSeq.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"673292165129728ba7c223e6c75192e45c1a0655644c07c22d6080a6c39cd09a"}},{"ruleId":"D2","level":"warning","message":{"text":"LayerCAMSeq.forwardCPU (cognitive 20): LayerCAMSeq.forwardCPU has cognitive complexity 20 (threshold 15). Drivers by points: if/else 3 (11 pts), loops 3 (9 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/LayerCAMSeq.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c8bf0fee2118367291a4248eb476fecebb2a392bf566ad836182b7971ca182e"}},{"ruleId":"D2","level":"warning","message":{"text":"OptimizerAlgorithm.clipGradientCPU (cognitive 20): OptimizerAlgorithm.clipGradientCPU has cognitive complexity 20 (threshold 15). Drivers by points: loops 3 (11 pts), if/else 3 (8 pts), boolean chains 1 (nesting depth added 13). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Optimizer/OptimizerAlgorithm.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"99aba2e4126c2b8b79e40e96c9961158d11d58d818977a16d5ba25f25d79d125"}},{"ruleId":"D2","level":"warning","message":{"text":"DotProduct1D.backwardCPU (cognitive 19): DotProduct1D.backwardCPU has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/DotProduct1D.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a0862a0a03317786286da83f583061daa9c7dfbf4dbabc300ff681c5d4acab"}},{"ruleId":"D2","level":"warning","message":{"text":"SimilarityError2D.backwardCPU (cognitive 19): SimilarityError2D.backwardCPU has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 4 (9 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":"Sources/GrAIdient/Layer2D/SimilarityError2D.swift"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd195dda8e7bc2d5c21cc0ec6bdd9b98725571d98a6be13a6f93f93721be30a"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiplySeq.backwardCPU (cognitive 19): MultiplySeq.backwardCPU has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 4 (9 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":"Sources/GrAIdient/LayerSeq/MutiplySeq.swift"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb24fdca36f766c199b5d03c1c4eb3398ee284312f1a84da6f0fa382f652431"}},{"ruleId":"D2","level":"warning","message":{"text":"SumSeq.backwardCPU (cognitive 19): SumSeq.backwardCPU has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 4 (9 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":"Sources/GrAIdient/LayerSeq/SumSeq.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"c472a7fc513796328afd870182f33329a9cb22ce63fa075991f416a0ab9abad5"}},{"ruleId":"D2","level":"warning","message":{"text":"Constant2D.backwardCPU (cognitive 18): Constant2D.backwardCPU has cognitive complexity 18 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 2 (4 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":"Sources/GrAIdient/Layer2D/Constant2D.swift"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c2d6e3433d9ec873b1b799d427e380419eca809aeb1614eaf5cafcff86f51c"}},{"ruleId":"D2","level":"warning","message":{"text":"Dropout1D.forwardGPU (cognitive 17): Dropout1D.forwardGPU has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (7 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Dropout1D.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"a05680bc3ab735665a21a6f82abe9962cedbbcfa4d74790e8efa7963bf6fde20"}},{"ruleId":"D2","level":"warning","message":{"text":"ActivationSeq.backwardCPU (cognitive 17): ActivationSeq.backwardCPU has cognitive complexity 17 (threshold 15). Drivers by points: loops 3 (9 pts), if/else 3 (7 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":"Sources/GrAIdient/LayerSeq/ActivationSeq.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e7a5dd46deade5d17cb2920f111c11f8467c296e4d1c24425caf6c5e7bc2b1"}},{"ruleId":"D2","level":"warning","message":{"text":"AvgPoolSeq.forwardGCCPU (cognitive 17): AvgPoolSeq.forwardGCCPU has cognitive complexity 17 (threshold 15). Drivers by points: loops 5 (16 pts), if/else 1 (nesting depth added 11). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"72fa30a20ae9912cf377e957d21b5e5f7988a283ff2f63dba9d61b1667306441"}},{"ruleId":"D2","level":"warning","message":{"text":"AvgPoolSeq.backwardCPU (cognitive 17): AvgPoolSeq.backwardCPU has cognitive complexity 17 (threshold 15). Drivers by points: loops 3 (9 pts), if/else 3 (7 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":"Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"f403345f002e0af033b1ffd9dd3866e41141187b680d2e98800ab88b84344f76"}},{"ruleId":"D2","level":"warning","message":{"text":"LayerNormSeq.backwardCPU (cognitive 17): LayerNormSeq.backwardCPU has cognitive complexity 17 (threshold 15). Drivers by points: loops 3 (9 pts), if/else 3 (7 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":"Sources/GrAIdient/LayerSeq/LayerNormSeq.swift"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"fafd33f4fff5411c1b08eac18e68629192f5c88fb5332d05cb072f4d0a2ec299"}},{"ruleId":"D2","level":"warning","message":{"text":"RMSNormSeq.backwardCPU (cognitive 17): RMSNormSeq.backwardCPU has cognitive complexity 17 (threshold 15). Drivers by points: loops 3 (9 pts), if/else 3 (7 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":"Sources/GrAIdient/LayerSeq/RMSNormSeq.swift"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f46f8c59f6c82d4015c6f581d889150d0fd216ff25e26f61361a50acb98be1b"}},{"ruleId":"D2","level":"warning","message":{"text":"Crop2D.forwardCPU (cognitive 17): Crop2D.forwardCPU has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 2 (3 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":"Sources/GrAIdient/Layer2D/Transform/Crop2D.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"72822e1e635e83e5f04bf73ad67986cf5abfb9974eeb5deb1584ab9d3219fef8"}},{"ruleId":"D2","level":"warning","message":{"text":"FullyConnected._backwardCPU (cognitive 16): FullyConnected._backwardCPU has cognitive complexity 16 (threshold 15). Drivers by points: loops 3 (9 pts), if/else 3 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c12c8c268cb93139b6d0adeccc49ab766ff0eee2a9afdbb084309aaad67dc9"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectNeurons1D.backwardCPU (cognitive 16): SelectNeurons1D.backwardCPU has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (12 pts), if/else 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/SelectNeurons1D.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"6031bb1e991d18df82269882fdd9df4ed361a7afca94d115ad57dbfa54bd44a9"}},{"ruleId":"D2","level":"warning","message":{"text":"Input2D.forwardCPU (cognitive 16): Input2D.forwardCPU has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (14 pts), boolean chains 1, if/else 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":"Sources/GrAIdient/Layer2D/Input2D.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"13dcd29d5b124d03cc752d815dfb1cc78f0fa3ef383f137e9aa57d0fb06abddd"}},{"ruleId":"D2","level":"warning","message":{"text":"VQ2D.lossDerivativeCPU (cognitive 16): VQ2D.lossDerivativeCPU has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 2 (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b476b68bbdb7b2dfe69a44ea589be51222d9ca927023b421e5baacaa5c6218"}},{"ruleId":"D2","level":"warning","message":{"text":"EmbeddingSeq._backwardWeightsCPU (cognitive 16): EmbeddingSeq._backwardWeightsCPU has cognitive complexity 16 (threshold 15). Drivers by points: loops 5 (11 pts), if/else 2 (4 pts), boolean chains 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":"Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1b6bf609df810f6e5b1ba3584a4e8157e8e5e40149c3789de1fd3b15563379"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchNormalization.forwardGC (cognitive 16): BatchNormalization.forwardGC has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 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":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce5b4fe0ff1a9e14e6dd704125dcb16e71e750f3f1227d64d26db2bcd83b5db"}},{"ruleId":"D2","level":"warning","message":{"text":"LayerMerge1D._getMergedGraph (cognitive 16): LayerMerge1D._getMergedGraph has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 4 (5 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a08494f8d1090bd1dc7ff29661effbd8642e04916c701fe18715e335ef1dd8"}},{"ruleId":"D2","level":"warning","message":{"text":"LayerMerge2D._getMergedGraph (cognitive 16): LayerMerge2D._getMergedGraph has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 4 (5 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/LayerMerge2D.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e594859738d21dc25d898c279a5299ad1b371db0ee6ea1135f3b5af344781fa"}},{"ruleId":"D2","level":"warning","message":{"text":"LayerMergeSeq._getMergedGraph (cognitive 16): LayerMergeSeq._getMergedGraph has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 4 (5 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/Base/LayerMergeSeq.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada7d0f4d0f32762d75d550e2a55eaad974449ba76a46119ef935d284f0220c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Layer/LayerNormalization.swift: FileTooLong \u2014 1579 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1079 over it, 3.16\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc71995104f1fe9ff3d935a8dae41b7309cac74bfbcd45e6848d7e19f83ee631"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Convolution2D: ClassTooLong \u2014 991 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 591 over it, 2.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":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"72db9db46cdc2f324dc2d99a26bb484d62e1fd547d2f56f659a504819ddd0835"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: LayerSeq/ValueSeq.swift: FileTooLong \u2014 1129 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 629 over it, 2.26\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"535f415cb8253e51f1cd04c31533194f6ae9cf52d1f3ff46bd39bc7ce130dce1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: LayerSeq/QuerySeq.swift: FileTooLong \u2014 1128 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 628 over it, 2.26\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91203029d310d3fe426e7863cbd6c06e6ca77bf87a1429b3048c78454f3e933"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Layer2D/Convolution2D.swift: FileTooLong \u2014 993 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: Convolution2D (26-1915). The bar is 500 significant lines; this is 493 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":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ae843c1421f85bb8c22d03c68fd5e90ab51f93590b9e8035376b000bb0c6e7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FullyConnectedPatch: ClassTooLong \u2014 716 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 316 over it, 1.79\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea79ee75040ab3dc390ab813297766d9044a3e2b3e9cb6b9f1a68a6782f6b168"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FullyConnectedSeq: ClassTooLong \u2014 624 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 224 over it, 1.56\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"5067d092252334e6e95c74194b58988705b0eea8bd21369b56100384e73f3515"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FullyConnected: ClassTooLong \u2014 615 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 215 over it, 1.54\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ffe13a6e0b75f60380094125d22eb3fb457a280d4f897167db49b5425999508"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Deconvolution2D._forwardGCGPU: MethodTooLong \u2014 _forwardGCGPU runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"Sources/GrAIdient/Layer2D/Deconvolution2D.swift"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"720d4b7b0a30050683c389904f1d835bd24e061931831f26ef8b98e64322f5be"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: QueryCausalSeq: ClassTooLong \u2014 591 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. 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":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"f361606b722ba7fb59411112dda1fca51a102a873e4568c2c790d8be7c19b767"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: LayerSeq/FullyConnectedPatch.swift: FileTooLong \u2014 717 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: FullyConnectedPatch (16-1398). The bar is 500 significant lines; this is 217 over it, 1.43\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed7f97edff3972ab59de28025aae0ca81e400551243c50cfd14ca5f83434a31"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Convolution2D._forwardGCGPU: MethodTooLong \u2014 _forwardGCGPU runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1038}}}],"partialFingerprints":{"codehealthFindingId/v1":"30dd7e06839fa1315607a2250926883d555af4e828b6699c5ac39fd9881d1f24"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: LayerSeq/FullyConnectedSeq.swift: FileTooLong \u2014 625 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: FullyConnectedSeq (11-1282). The bar is 500 significant lines; this is 125 over it, 1.25\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"228c4785ef285a13199178bece82453fd5ec141ebf3609ac8ef0f9126d7b1f3c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ValueCausalSeq: ClassTooLong \u2014 497 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 97 over it, 1.24\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":1161}}}],"partialFingerprints":{"codehealthFindingId/v1":"067bae74d2b4edf4bfc94b3dd4bb124dc431e81041ddcf11b736dc2d57e36628"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Layer2D/VQ2D.swift: FileTooLong \u2014 618 significant lines (blank, comment-only and punctuation-only lines excluded), about 66% of them inside a single declaration: VQ2D (35-921). The bar is 500 significant lines; this is 118 over it, 1.24\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3458a2ebbc75e66d84f97f3044f5110126fd7564f902bb1d84bea52f28296fbb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Layer1D/FullyConnected.swift: FileTooLong \u2014 616 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: FullyConnected (16-1320). The bar is 500 significant lines; this is 116 over it, 1.23\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b227a36af41857f1c5527e813638763b2c49ad2d48c98bebb90d644b176afc15"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Convolution2D._backwardWeightsGPU: MethodTooLong \u2014 _backwardWeightsGPU runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"7017c853e1c0f147a20d9fc6a7d11df524caa977ff6913af374c8481bb2edd51"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Deconvolution2D._forwardGCCPU: MethodTooLong \u2014 _forwardGCCPU runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Deconvolution2D.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4827a1ed33fa926258a77a5b9a65de16fe5a8d43157d6bd7eb93d08fcddcd8a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: LayerSeq/VQSeq.swift: FileTooLong \u2014 591 significant lines (blank, comment-only and punctuation-only lines excluded), about 66% of them inside a single declaration: VQSeq (12-841). The bar is 500 significant lines; this is 91 over it, 1.18\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/VQSeq.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c699b5d11cff4358614689c666e95b6042cb019715e92a520e11314a80930e22"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Deconvolution2D: ClassTooLong \u2014 469 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 69 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Deconvolution2D.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac473f4c4c302acd250981614baf1290c93d7f466e29c59a57e2a598972858ce"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AdaptiveAvgPool2D: ClassTooLong \u2014 441 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. 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":"Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c28c7f9ebee95819eea27207d969372d180516c6f9af32795a2f7cb1903d60e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Convolution2D._forwardGCCPU: MethodTooLong \u2014 _forwardGCCPU runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a86127482f18af8eb2187e5f0be5df5202ee6f2297cb797155a5791dd1029f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: GrAITestsUtils/Trainer.swift: FileTooLong \u2014 525 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 25 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":"Sources/GrAITestsUtils/Trainer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70f33477b6f5a1fe19f7f597d8ce2e7bd147d275aee75e4f99746271010a2c5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FullyConnectedPatch._forwardGCGPU: MethodTooLong \u2014 _forwardGCGPU runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14b99a3b0865553566cca404076fec5db2e08e94d9eab4f040f5995d4b781b5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Convolution2D: 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":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c196d063b5671747fe3cc510dc3f41b60af67972ec392d53b864f54415dd219"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VQ2D: ClassTooLong \u2014 407 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 7 over it, 1.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fedc1292964069afe7b4dda309644524630be8e872d118750801fd215fd1c91"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 14 shared lines): Sources/GrAIdient/Layer2D/Normalize2D.swift:276-306 | Sources/GrAIdient/Layer2D/Normalize2D.swift:745-782 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:368-401 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:286-317 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:298-329 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:273-302 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:258-289 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:291-322 | Sources/GrAIdient/Layer2D/VQ2D.swift:643-679 \u2014 These 9 members are variants of one another: a block of 14 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c9903d3fa3802d4b53c75643deccf84797a5d39ef47836487ecd4142f261be"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 5 shared lines): Sources/GrAIdient/Layer1D/FullyConnected.swift:1066-1186 | Sources/GrAIdient/Layer2D/Constant2D.swift:516-580 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1582-1756 | Sources/GrAIdient/Layer2D/VQ2D.swift:681-782 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:948-1015 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:657-754 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1128-1264 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1018-1148 | Sources/GrAIdient/LayerSeq/VQSeq.swift:604-705 \u2014 These 9 members are variants of one another: a block of 5 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e154d4ecf006c151118b5287ff400db02a5615ff14cf6aec19cbc586472767"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 37 shared lines): Sources/GrAIdient/LayerSeq/ValueSeq.swift:132-215 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:222-317 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:694-782 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:789-890 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1400-1489 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1496-1599 \u2014 These 6 members are variants of one another: a block of 37 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ed4a07a4bcaa8d86bbfcf60dca3c201b4a76fa41c6f018e11be9989310de1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 18 shared lines): Sources/GrAIdient/Layer2D/Normalize2D.swift:179-204 | Sources/GrAIdient/Layer2D/Normalize2D.swift:590-621 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:216-243 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:192-217 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:194-221 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:222-251 \u2014 These 6 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 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"2938e92afa105f9904fc65469dc5d05d8293670bd798cb6d4452e1ce553af038"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 14 shared lines): Sources/GrAIdient/Layer2D/Normalize2D.swift:179-204 | Sources/GrAIdient/Layer2D/Normalize2D.swift:536-583 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:216-243 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:192-217 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:194-221 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:222-251 \u2014 These 6 members are variants of one another: a block of 14 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f98e8e738333ca9b24d770b986e5cb8372a75eab10c882b5944ca768c996d16"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 28 shared lines): Sources/GrAIdient/LayerSeq/QuerySeq.swift:473-550 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1989-2073 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:473-549 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1059-1153 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1981-2064 \u2014 These 5 members are variants of one another: a block of 28 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd795f06f35c0736ab7a19c0b3eaeb1fe291574eb8efb502fc1293ecec39988"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 19 shared lines): Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:294-318 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:366-391 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:449-473 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:583-611 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:667-696 \u2014 These 5 members are variants of one another: a block of 19 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc17248c1b659c14a1914dd2dce476253068c2c7ccaac3a038f870bde04ba7ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 14 shared lines): Sources/GrAIdient/Layer1D/Concat1D.swift:344-395 | Sources/GrAIdient/Layer2D/Concat2D.swift:387-440 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:464-519 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:706-761 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:806-859 \u2014 These 5 members are variants of one another: a block of 14 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f5c93841cb5e5a6192316e04cf3cf501c8940aa7dccff0f0328ef9ccabc058"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 50 shared lines): Sources/GrAIdient/Layer2D/Convolution2D.swift:842-1024 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1038-1261 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:268-471 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:473-720 \u2014 These 4 members are variants of one another: a block of 50 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a5a87571b2d8913b754b253bf66f3f623e8c472cc98fb133f007425e872bc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 40 shared lines): Sources/GrAIdient/Layer2D/Multiply2D.swift:169-246 | Sources/GrAIdient/Layer2D/Multiply2D.swift:253-340 | Sources/GrAIdient/Layer2D/Sum2D.swift:91-168 | Sources/GrAIdient/Layer2D/Sum2D.swift:175-262 \u2014 These 4 members are variants of one another: a block of 40 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55766aaabb87170ae3d438f2fa2dd3b45171b9a13025a1b436946bc687fba48"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 35 shared lines): Sources/GrAIdient/LayerSeq/QuerySeq.swift:128-212 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:219-315 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1350-1466 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1473-1605 \u2014 These 4 members are variants of one another: a block of 35 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1a2c546381453af5d86eb6137fdabad219eab9c59c32345cbeb7f35d5afd57"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 33 shared lines): Sources/GrAIdient/LayerSeq/MutiplySeq.swift:168-231 | Sources/GrAIdient/LayerSeq/MutiplySeq.swift:238-311 | Sources/GrAIdient/LayerSeq/SumSeq.swift:90-153 | Sources/GrAIdient/LayerSeq/SumSeq.swift:160-233 \u2014 These 4 members are variants of one another: a block of 33 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/MutiplySeq.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"b419e44adf17cd42de98591bbea1b4d4c6cac7e44083f386e065ca0e9dfb19e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 21 shared lines): Sources/GrAIdient/Layer1D/Concat1D.swift:344-395 | Sources/GrAIdient/Layer2D/Concat2D.swift:387-440 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:379-437 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:806-859 \u2014 These 4 members are variants of one another: a block of 21 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b61a24b8f778e2ae3f380ab32e209225985ec17a27d1eed21ad62ebd1aed6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 21 shared lines): Sources/GrAIdient/Layer2D/Constant2D.swift:516-580 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:948-1015 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1128-1264 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1018-1148 \u2014 These 4 members are variants of one another: a block of 21 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Constant2D.swift"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1da27ada05b0bbf478d1fcf315d5b872ab315846ec496ace2a5b63d57384c68"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 20 shared lines): Sources/GrAIdient/Layer1D/LinearError1D.swift:203-235 | Sources/GrAIdient/Layer2D/BCE2D.swift:274-311 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:317-354 | Sources/GrAIdient/Layer2D/MSE2D.swift:270-307 \u2014 These 4 members are variants of one another: a block of 20 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/LinearError1D.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf087f7431d9b61fe3656128a5207cefaa425978e81fb12a46029811a64f472"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 18 shared lines): Sources/GrAIdient/LayerSeq/QuerySeq.swift:473-550 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:924-997 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1989-2073 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1981-2064 \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":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"b63d330154507bcf64ce02734301e6d31d413e309302e1416045cac77e9e60b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 12 shared lines): Sources/GrAIdient/Layer2D/Normalize2D.swift:590-621 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:216-243 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:194-221 | Sources/GrAIdient/Layer2D/VQ2D.swift:510-539 \u2014 These 4 members are variants of one another: a block of 12 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"1159d35c28fe952fd40dbf36a3234e37eec5af7e9de0e6c2f4ba13ace4e4b9ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 26 shared lines): Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:270-302 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:204-237 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:118-151 \u2014 These 3 members are variants of one another: a block of 26 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada0b92986db67492c512a8724806438a5771fd539e73c4a73622ca7f2bb0c8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (71 shared lines): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:527-674 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:687-852 \u2014 These two members are variants of one another: 71 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"c982e509a6f2d5fe60507a29d1830aebc248d34315eb02c269315d9a074f10a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (66 shared lines): Sources/GrAIdient/Layer1D/DotProduct1D.swift:120-193 | Sources/GrAIdient/Layer1D/DotProduct1D.swift:200-276 \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":"Sources/GrAIdient/Layer1D/DotProduct1D.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6d05a80ff894c3111ff960b028907190d1db8cbec622da75493d14ff7ca3bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (46 shared lines): Sources/GrAIdient/LayerSeq/ValueSeq.swift:395-466 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:974-1052 \u2014 These two members are variants of one another: 46 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3c2d1d51cc4944a21a9d0aface1205a06e6739215d5dfba504b12cb8326faa"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (28 shared lines): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1903-1941 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1944-1982 \u2014 These two members are variants of one another: 28 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1903}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdba4beaf2773c89b9e852ed66d4bdd8b935b8f67f2d6cd74848536a659e422d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:920-964 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1614-1653 \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":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b617daa30cb08e9bf39f5446dd606491096b0f9721a47cec74737843acf78ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:363-449 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:456-527 \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":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82a7ab9dc35c3532ddbfa81ba293ade4c73ae6aac2435c05f8897aa4fa7df7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:174-193 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:228-248 \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":"Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e831b72745104595db8d9fb65a8b2f0919d5fdd2c0232e6647a84f163314139"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Sources/GrAIdient/Core/Optimizer/OptimizerAlgorithm.swift:219-250 | Sources/GrAIdient/Core/Optimizer/OptimizerAlgorithm.swift:439-475 \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":"Sources/GrAIdient/Core/Optimizer/OptimizerAlgorithm.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"44527e3576240b4aa720a29c219f3786e87e9e61f57f0076f7378f2e2ca1c3c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (33 members, 50\u002B identical tokens): Sources/GrAIdient/Layer2D/Activation2D.swift:140-156 | Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:216-237 | Sources/GrAIdient/Layer2D/AvgPool2D.swift:54-66 | Sources/GrAIdient/Layer2D/BCE2D.swift:25-39 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:28-42 | Sources/GrAIdient/Layer2D/BN2D.swift:239-272 | Sources/GrAIdient/Layer2D/Convolution2D.swift:537-588 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:133-184 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:164-197 | Sources/GrAIdient/Layer2D/LayerCAM2D.swift:87-102 | Sources/GrAIdient/Layer2D/MSE2D.swift:23-37 | Sources/GrAIdient/Layer2D/MaxPool2D.swift:155-172 | Sources/GrAIdient/Layer2D/Normalize2D.swift:59-74 | Sources/GrAIdient/Layer2D/Normalize2D.swift:381-396 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:132-149 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:165-184 | Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift:57-72 | Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:56-72 | Sources/GrAIdient/Layer2D/Transform/ColorJitterHSV.swift:160-178 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:167-197 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:100-116 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:107-123 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:364-380 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:68-83 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:94-111 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:103-120 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinear.swift:64-81 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:256-299 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:227-262 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:172-207 | Sources/GrAIdient/Layer2D/VQ2D.swift:212-245 | Sources/GrAIdient/Layer2D/VQ2D.swift:1074-1108 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:260-297 \u2014 These 33 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 33 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 33 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Activation2D.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"accaf2d144b54d3a8e39edc24074c892d7469030f0db7a99edd117076dcc78d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (17 members, 50\u002B identical tokens): Sources/GrAIdient/Layer1D/Concat1D.swift:47-63 | Sources/GrAIdient/Layer1D/DotProduct1D.swift:93-113 | Sources/GrAIdient/Layer1D/Sum1D.swift:64-80 | Sources/GrAIdient/Layer2D/AdaIN.swift:137-170 | Sources/GrAIdient/Layer2D/Concat2D.swift:57-73 | Sources/GrAIdient/Layer2D/Multiply2D.swift:79-95 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:121-141 | Sources/GrAIdient/Layer2D/Sum2D.swift:68-84 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:59-75 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:491-507 | Sources/GrAIdient/LayerSeq/MutiplySeq.swift:78-94 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:102-121 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1163-1202 | Sources/GrAIdient/LayerSeq/SumSeq.swift:67-83 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:106-125 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:666-687 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1289-1314 \u2014 These 17 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 17 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 17 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"418c90e3cd1c91b5e10cc2018591afe9483d8a84aaa7ac706b733ad80b7875ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (14 members, 50\u002B identical tokens): Sources/GrAIdient/Layer1D/Activation1D.swift:302-336 | Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:342-377 | Sources/GrAIdient/Layer1D/Input1D.swift:395-427 | Sources/GrAIdient/Layer1D/Sum1D.swift:327-372 | Sources/GrAIdient/Layer2D/Activation2D.swift:315-349 | Sources/GrAIdient/Layer2D/BN2D.swift:655-690 | Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:402-437 | Sources/GrAIdient/Layer2D/Input2D.swift:501-533 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:579-614 | Sources/GrAIdient/Layer2D/Sum2D.swift:378-423 | Sources/GrAIdient/LayerSeq/ActivationSeq.swift:312-346 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:574-609 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:588-623 | Sources/GrAIdient/LayerSeq/SumSeq.swift:339-384 \u2014 These 14 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 14 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Activation1D.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"2126552ac6f09541167b9af40fa1bdaab383866661f43fab3b41a06319925963"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (13 members, 50\u002B identical tokens): Sources/GrAIdient/Layer1D/Activation1D.swift:244-267 | Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:288-309 | Sources/GrAIdient/Layer1D/Input1D.swift:342-363 | Sources/GrAIdient/Layer2D/Activation2D.swift:255-278 | Sources/GrAIdient/Layer2D/BN2D.swift:593-617 | Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:344-365 | Sources/GrAIdient/Layer2D/Input2D.swift:444-465 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:517-541 | Sources/GrAIdient/LayerSeq/ActivationSeq.swift:253-276 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:513-537 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1327-1343 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:527-551 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1377-1393 \u2014 These 13 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 13 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Activation1D.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"8600ab0f1f83e2ab82dcc116530448be5e01f5b4dcd23e2d46bdd44141059dd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (13 members, 50\u002B identical tokens): Sources/GrAIdient/LayerSeq/ActivationSeq.swift:137-153 | Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift:54-66 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:238-274 | Sources/GrAIdient/LayerSeq/LayerCAMSeq.swift:86-101 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:163-196 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:671-690 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:174-208 | Sources/GrAIdient/LayerSeq/RoPESeq.swift:134-151 | Sources/GrAIdient/LayerSeq/SelectSeq.swift:86-102 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:98-114 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:447-467 | Sources/GrAIdient/LayerSeq/VQSeq.swift:202-235 | Sources/GrAIdient/LayerSeq/VQSeq.swift:994-1028 \u2014 These 13 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 13 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ActivationSeq.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef1a9dad000c8c3f4bb613c3eba6c6a0c8a8b1c968f26510c8036eb2f94d1577"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (11 members, 50\u002B identical tokens): Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:368-395 | Sources/GrAIdient/Layer2D/Concat2D.swift:337-380 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1394-1442 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:766-810 | Sources/GrAIdient/Layer2D/Input2D.swift:468-494 | Sources/GrAIdient/Layer2D/Normalize2D.swift:207-269 | Sources/GrAIdient/Layer2D/Normalize2D.swift:624-688 | Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift:206-247 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:246-279 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:257-291 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:468-502 \u2014 These 11 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 11 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ac443472592bf24b5d932a7dfb6dcda337994caa409de863b8207c2b233944"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): Sources/GrAIdient/Layer2D/BCE2D.swift:101-156 | Sources/GrAIdient/Layer2D/BCE2D.swift:172-226 | Sources/GrAIdient/Layer2D/BCE2D.swift:332-434 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:104-179 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:195-269 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:375-469 | Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:140-211 | Sources/GrAIdient/Layer2D/MSE2D.swift:99-154 | Sources/GrAIdient/Layer2D/MSE2D.swift:170-222 | Sources/GrAIdient/Layer2D/MSE2D.swift:328-404 \u2014 These 10 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 10 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCE2D.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0553952d6c2614555a191917760dd3b7ab36160f53d04349d670b581009e064"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): Sources/GrAIdient/Layer1D/Activation1D.swift:133-149 | Sources/GrAIdient/Layer1D/BCE1D.swift:25-39 | Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:28-42 | Sources/GrAIdient/Layer1D/Dropout1D.swift:92-108 | Sources/GrAIdient/Layer1D/LinearError1D.swift:23-37 | Sources/GrAIdient/Layer1D/MSE1D.swift:23-37 | Sources/GrAIdient/Layer1D/SelectNeurons1D.swift:105-122 | Sources/GrAIdient/Layer1D/Softmax1D.swift:96-112 \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":"Sources/GrAIdient/Layer1D/Activation1D.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe85c0c67cbc14beb45e9768b6bf86f1e11c299f55d1adea8df0decdfe6c7c46"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2582-2615 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2656-2683 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:3087-3124 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:3157-3188 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:3191-3222 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:3225-3248 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":2582}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2667ff3e74c91a5fea4058df33a0751a9d97fc8cd408847fd150fd732b3d5fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Sources/GrAIdient/Layer1D/SelectNeurons1D.swift:299-344 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:670-726 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:595-659 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:448-493 | Sources/GrAIdient/LayerSeq/SelectSeq.swift:238-283 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1059-1153 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/SelectNeurons1D.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"302a477d508f3e7d991f8171db2007fab50a2fe670ceadcb662eb7866063f311"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:306-369 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:386-495 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:604-663 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:269-346 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:363-449 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:530-588 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"520642875ba86096554ec36b5b38b128ca4df9747b7cb39152337d230e7577f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Sources/GrAIdient/LayerSeq/QuerySeq.swift:34-55 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:589-618 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1064-1107 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:32-59 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:584-615 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1197-1233 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcff69f09b94ad68f7231a3bd37b908d01f27c282d29a0220bb8070c255f6d65"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/GrAIdient/Layer1D/BCE1D.swift:52-78 | Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:55-81 | Sources/GrAIdient/Layer1D/LinearError1D.swift:50-76 | Sources/GrAIdient/Layer1D/MSE1D.swift:50-76 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/BCE1D.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8c0e2901271a18f41231f7abb61f36799a4eb20ca4076f299c2b213ede9e78"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/GrAIdient/Layer1D/Constant1D.swift:129-145 | Sources/GrAIdient/Layer2D/Constant2D.swift:136-152 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:130-146 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:615-631 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1b982bd1702f51dd10e5423879ac20786e04b0ed7d58feeca2acd8ff4058dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/GrAIdient/Layer1D/FullyConnected.swift:296-307 | Sources/GrAIdient/Layer2D/Convolution2D.swift:475-488 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:200-212 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:180-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":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc0557b6bc03117f072ff1c0aca7c5f0b08cdfc142983395df27a6717439dc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/GrAIdient/Layer1D/FullyConnected.swift:564-595 | Sources/GrAIdient/Layer2D/Convolution2D.swift:768-801 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:455-487 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:430-461 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c031d356b860797be9545825a1b2e318feae646cf2cf36d313cd97dcb657a87"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/GrAIdient/Layer1D/FullyConnected.swift:1295-1319 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1891-1914 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1373-1397 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1257-1281 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b7bc4bb2798ea3bb2917f74b3fffd51d79af1992941db782e0f886385ba37d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/GrAIdient/Layer2D/Activation2D.swift:281-308 | Sources/GrAIdient/Layer2D/BN2D.swift:620-648 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:544-572 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:224-251 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Activation2D.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6d984c3b506ba5ada6c5da966864ec7ffd2dd47ccfd91f28ae2147a3a8d1d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/GrAIdient/Layer2D/AdaIN.swift:111-123 | Sources/GrAIdient/Layer2D/BN2D.swift:213-225 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:138-150 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:137-149 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaIN.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"48939d42531e22d804c5b63c83db205053083988a44c653bd2d31e4fd31c83a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/GrAIdient/Layer2D/AdaIN.swift:711-721 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:642-652 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:681-691 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:719-729 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaIN.swift"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0711f719cfcb505c703005c3964497f5def48ad84dd0688319307ded6486b18"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/GrAIdient/Layer2D/Constant2D.swift:166-197 | Sources/GrAIdient/Layer2D/Constant2D.swift:213-246 | Sources/GrAIdient/Layer2D/Input2D.swift:198-222 | Sources/GrAIdient/Layer2D/Input2D.swift:238-263 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Constant2D.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"adbebe868fe15c8a269263732c0300c063b4c545cc811f7c6aae2808b38730e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/GrAIdient/Layer2D/VQ2D.swift:457-503 | Sources/GrAIdient/Layer2D/VQ2D.swift:1182-1256 | Sources/GrAIdient/LayerSeq/VQSeq.swift:386-431 | Sources/GrAIdient/LayerSeq/VQSeq.swift:1102-1173 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"c017d75614c8fb25b0b042d478224befbca1e671b3eeb71d40e23e78eeb23f9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/GrAIdient/LayerSeq/ConstantSeq.swift:275-313 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:320-360 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:465-504 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:511-553 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConstantSeq.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ae207d49b63819b6d12a5472a8be6f74323162354a8ca6e34f9e9dedc4a1d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:260-297 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:309-344 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:238-274 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:286-320 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e119e2a561a6a113c06b8ae856e15326a5271b4bea74a00dd9c2cb1e182ed75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (106 corresponding lines): Sources/GrAIdient/Layer2D/AdaIN.swift:247-352 | Sources/GrAIdient/Layer2D/AdaIN.swift:359-474 \u2014 These two members are one piece of code written twice and then edited apart: 106 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaIN.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7058eb51b3bcaa5e1f940ffa7665c50a201398d105d0b2d7e0bc5e8439c066"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (79 corresponding lines): Sources/GrAIdient/LayerSeq/QuerySeq.swift:1714-1792 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1708-1786 \u2014 These two members are one piece of code written twice and then edited apart: 79 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1714}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad40e83030677cdf474348c81e7d0e2ef6ea5b6a7ce6eadc30751cf9bc7b3b3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 99\u002B corresponding lines): Sources/GrAIdient/Layer1D/FullyConnected.swift:634-732 | Sources/GrAIdient/Layer1D/FullyConnected.swift:745-856 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:501-614 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:627-753 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 99 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or 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":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a28cd8a7c334848347804dfdd410e3c9a2614562bdc03ec9f890e7bad9fc1a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (78 corresponding lines): Sources/GrAIdient/Layer2D/SimilarityError2D.swift:171-248 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:255-342 \u2014 These two members are one piece of code written twice and then edited apart: 78 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityError2D.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22f53b8cf8b2837dd2140828ca817b4440919f5686230d5ad19b36849cb0e5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): Sources/GrAIdient/Layer2D/Convolution2D.swift:1326-1382 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1521-1580 \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":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4fa944032916677f193110abf17ac25f6feada1685f05fc379edc1965fa932"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (85 corresponding lines): Sources/GrAIdient/LayerSeq/QuerySeq.swift:1895-1982 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1890-1974 \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":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1895}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32557fb2df72578fe379ac4294ec5e59ee66a9f7de27c47a65d03269cb2d98b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (65 corresponding lines): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:445-509 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1231-1308 \u2014 These two members are one piece of code written twice and then edited apart: 65 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4bc3185edf785f359a0b3ae787f12105a4af87f9340f4c27620d4547c55f6f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (71 corresponding lines): Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:549-626 | Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:745-815 \u2014 These two members are one piece of code written twice and then edited apart: 71 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f3eae57b2ef5ec7c5b22e789615d34788f8f87d358231002e50b3664a91467c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 75\u002B corresponding lines): Sources/GrAIdient/Layer1D/Concat1D.swift:145-221 | Sources/GrAIdient/Layer2D/Concat2D.swift:80-160 | Sources/GrAIdient/Layer2D/Concat2D.swift:167-257 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:82-156 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:163-246 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:514-588 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:595-678 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 75 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"2256d3b32d918a32613bd5a76a0cf47fbbf4434e3c789f9491920e6e11a15a92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 61\u002B corresponding lines): Sources/GrAIdient/Layer1D/Concat1D.swift:70-138 | Sources/GrAIdient/Layer1D/Sum1D.swift:87-147 | Sources/GrAIdient/Layer1D/Sum1D.swift:154-223 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 61 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or 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":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"46dd0d56fff4ec170a9a4983c10cce33c9bb41ca265c68dd7c238fa495d7d076"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (65 corresponding lines): Sources/GrAIdient/Layer2D/Multiply2D.swift:393-457 | Sources/GrAIdient/LayerSeq/MutiplySeq.swift:358-422 \u2014 These two members are one piece of code written twice and then edited apart: 65 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1c99b70911d61535757520e013754f8b4e5614d87baca2caa34e9ec8aa1899"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:214-267 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:284-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":"Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51cab32dcc5a1021d81141f7a8ceb33c4332a028f3bef45d3226aa41e068297"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (62 corresponding lines): Sources/GrAIdient/Layer2D/Convolution2D.swift:1444-1505 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:812-878 \u2014 These two members are one piece of code written twice and then edited apart: 62 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1444}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4ecf15f139685a4616c24208d21903d91eb27e6a1701b5d3cb87fb4e9db990"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 37\u002B corresponding lines): Sources/GrAIdient/LayerSeq/QuerySeq.swift:1665-1711 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1856-1892 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1659-1705 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1850-1887 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 37 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1665}}}],"partialFingerprints":{"codehealthFindingId/v1":"573db3234759673e4e01ec0a290f9e0224d7b62da67d6a061b4d355d26941bcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 42\u002B corresponding lines): Sources/GrAIdient/Layer2D/BCE2D.swift:492-533 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:527-568 | Sources/GrAIdient/Layer2D/MSE2D.swift:462-503 \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":"Sources/GrAIdient/Layer2D/BCE2D.swift"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"a94a6a4dccb170a8122ff8dc634e3b2deee843d30a6aa53871be03b80bc0c802"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): Sources/GrAIdient/Layer2D/VQ2D.swift:1322-1363 | Sources/GrAIdient/LayerSeq/VQSeq.swift:1239-1280 \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":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb15d0a9712ef3075771f2c93408132d44e4796c644175adada1657c9b645544"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Sources/GrAIdient/LayerSeq/ValueSeq.swift:358-392 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:933-971 \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":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d73ced5c1f806b7c32184e529cfd64e8feee11e1c771121eb5f7d8a0caa2e99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): Sources/GrAIdient/Layer2D/MaxPool2D.swift:355-392 | Sources/GrAIdient/Layer2D/MaxPool2D.swift:445-486 \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":"Sources/GrAIdient/Layer2D/MaxPool2D.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f8f03a89e235f144bf8d6db53b06eb9277746d8cea2d770a0fa316f7cd983a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): Sources/GrAIdient/Layer2D/BN2D.swift:510-558 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:434-482 \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":"Sources/GrAIdient/Layer2D/BN2D.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"81875d737eb6df88c17927cd862f80234414d9d6065c789301c4cd3f1c85c8f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:806-853 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:962-1016 \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":"Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"980f0f8f320083660a03cb746c76b680ab87ad4fdfa918847e1dd186eb6695d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): Sources/GrAIdient/Layer2D/VQ2D.swift:548-591 | Sources/GrAIdient/LayerSeq/VQSeq.swift:476-516 \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":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf0a8f517f4646a07e3ca50f5d0fb9361488ede0a8aed8b06a214aafc5ebccbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:434-479 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:448-493 \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":"Sources/GrAIdient/LayerSeq/LayerNormSeq.swift"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ae5fa16b7fe940590b087f3a33f0b796dda7e71e24642a9ea816ed163060f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): Sources/GrAIdient/Layer2D/BN2D.swift:452-491 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:376-415 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BN2D.swift"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d38f69b0791dc6fec7e322188b04cab48bd52a0fe7f56b82334124cb52264d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Sources/GrAIdient/LayerSeq/RoPESeq.swift:239-289 | Sources/GrAIdient/LayerSeq/RoPESeq.swift:306-344 \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":"Sources/GrAIdient/LayerSeq/RoPESeq.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"219d26c63cda352f70147b1396fdacb4a0bee3915d8ea0704d5a6ed7cbbb341f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 52\u002B corresponding lines): Sources/GrAITestsUtils/Trainer.swift:314-365 | Sources/GrAITestsUtils/Trainer.swift:457-512 | Sources/GrAITestsUtils/Trainer.swift:602-655 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 52 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or 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":"Sources/GrAITestsUtils/Trainer.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"120eeb77287d6edba49ed9dd52e5dad5cb7b7275750d687b96e3a3c29576aa25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): Sources/GrAIdient/Layer2D/Base/LayerInput2D.swift:55-106 | Sources/GrAIdient/Layer2D/Base/LayerInput2D.swift:121-185 \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":"Sources/GrAIdient/Layer2D/Base/LayerInput2D.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53e6abff944467a62724f5212fe814f447b976a6ac9ea23c1417582c7af601d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:917-951 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:799-839 \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":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"d998d61ec934797cf00e54146edf7e670c0d65e83771e386ee5e4c33a96ff92e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 40\u002B corresponding lines): Sources/GrAIdient/Layer1D/BCE1D.swift:368-407 | Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:387-426 | Sources/GrAIdient/Layer1D/MSE1D.swift:351-390 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 40 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/BCE1D.swift"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8829b2094052d2b300d9be0c75d62e5a5fa5ea1b3bea32a738a8e3ae25d473"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:375-415 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:389-429 \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":"Sources/GrAIdient/LayerSeq/LayerNormSeq.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe12bdac618ae630b1a20f63abb911d85094ee82466e7ae6dd67bae1a3350e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): Sources/GrAIdient/Layer1D/Dropout1D.swift:162-201 | Sources/GrAIdient/Layer1D/Dropout1D.swift:208-247 \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":"Sources/GrAIdient/Layer1D/Dropout1D.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31ec28f4b771a99539a8520764ef2d422f3ed3ed617a0032c312bb7f451fc20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Sources/GrAIdient/Layer1D/Softmax1D.swift:258-296 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:273-314 \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":"Sources/GrAIdient/Layer1D/Softmax1D.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"457bc004ea07b4d763c13744fbe26ee08f30519ebb29b64aa6a29b8a0488c289"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:90-136 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:153-185 \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":"Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"d657e6e99ac715e29d5aa2221cb664b54e72436d7c576cd0598e541eddfd1ee2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 36\u002B corresponding lines): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1089-1126 | Sources/GrAIdient/LayerSeq/RoPESeq.swift:437-472 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:321-356 | Sources/GrAIdient/LayerSeq/VQSeq.swift:566-602 \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":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"f425921739737b741b6e9617ccbd5e8f705424665062b59bc9cf6fc7c664a748"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1050-1080 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1832-1862 \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":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1050}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af1831adf78f5bf014c206d119d8f349f4840fcecb58ab9b4215691b63be274"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2270-2318 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2910-2955 \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":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":2270}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54ef1d489bbda9e8fab1c79511ace4f2812afaab44665a7c9605d41e152aa28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 48\u002B corresponding lines): Sources/GrAIdient/Layer2D/Normalize2D.swift:691-738 | Sources/GrAIdient/Layer2D/VQ2D.swift:1263-1315 | Sources/GrAIdient/LayerSeq/VQSeq.swift:1180-1232 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 48 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or 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":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"f293db6a08f9b6e4db667b09ff8efe7edf6774a0778f6a61882a45a33ca31fa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2473-2514 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2618-2653 \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":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":2473}}}],"partialFingerprints":{"codehealthFindingId/v1":"a422cc14383c7efcf80fdaa54499cfed7e963c9d15b9bc9a7a8089e5ac742f0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 42\u002B corresponding lines): Sources/GrAIdient/Layer1D/Softmax1D.swift:119-169 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:121-175 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:192-233 \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":"Sources/GrAIdient/Layer1D/Softmax1D.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"80097f6410e3e90a199d0abc01ebda83f616cb6f55a5a595bd243d073d115d48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1011-1074 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:898-947 \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":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d4b15735694f72ba669689190208273148076993d8b3432bc0273aed205366"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:95-137 | Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:150-191 \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":"Sources/GrAIdient/Layer1D/BCESigmoid1D.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"772531b7de0e2276db37ebf1359b0be36ddad95b5422dd0716f84b1ea09de9d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:853-883 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1013-1047 \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":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fff47766ed96aba04fa15aeb40545c10f78cd697f69ac6b35e9028b944e33a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1765-1795 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1798-1829 \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":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1765}}}],"partialFingerprints":{"codehealthFindingId/v1":"db46dface469260bd89a6962f46b32cde81fc397474bfe52ca680fe0db32a664"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 43\u002B corresponding lines): Sources/GrAIdient/Layer2D/Normalize2D.swift:81-126 | Sources/GrAIdient/Layer2D/Normalize2D.swift:438-483 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:130-172 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:387-429 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 43 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"529b8ba90384c93ea62312d40db903fee1cc75b9c1428340223217265ed10fad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): Sources/GrAITestsUtils/FlowChecking.swift:19-72 | Sources/GrAITestsUtils/GradientChecking.swift:20-76 \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":"Sources/GrAITestsUtils/FlowChecking.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c68b8ee3502e1d2b425c90a075d26267f988a5f1a4b108eb4ed88dd7394259b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 35\u002B corresponding lines): Sources/GrAIdient/Layer1D/BCE1D.swift:209-243 | Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:232-266 | Sources/GrAIdient/Layer1D/MSE1D.swift:205-239 \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":"Sources/GrAIdient/Layer1D/BCE1D.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"4181f72274185af7e708ebe33328087a2da75e32e61699dbe3e6db90e2e34a49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Sources/GrAIdient/Layer2D/Multiply2D.swift:347-386 | Sources/GrAIdient/LayerSeq/MutiplySeq.swift:318-351 \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":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"c843c16e9bb16ac71dac494e9f260560b05d926f684eb29407873980a901e9c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 38\u002B corresponding lines): Sources/GrAIdient/Layer1D/Concat1D.swift:256-294 | Sources/GrAIdient/Layer2D/Concat2D.swift:294-334 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:375-412 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:283-327 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:715-754 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"11cffe8d1838457cb7f6871c48938d93e7b0c399888e4cbd1146d59510d8333f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Sources/GrAIdient/Layer1D/Dropout1D.swift:307-355 | Sources/GrAIdient/Layer1D/Dropout1D.swift:404-438 \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":"Sources/GrAIdient/Layer1D/Dropout1D.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b8326a8beec38fec9ad6d816f6f33a916891ffb33bcdc91264e9ac42e916fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): Sources/GrAIdient/Layer2D/Convolution2D.swift:1275-1312 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:722-764 \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":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1275}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69be6ac29583aafe6be60daa85f369788d15983c32bfe86f25072abe61d1fdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1700-1729 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1732-1762 \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":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1700}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5feb09921c78f63666cdc7f153751c2b645d8a8e7958907c935c47567b9c2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift:79-120 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:697-741 \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":"Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8af808073b4454ca7b1dd1f3d1b1ff55054004cf4e9756e5905148dc6c77e2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 31\u002B corresponding lines): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:886-917 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:967-997 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1656-1697 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1865-1900 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e5b531dace65385888471099dfc69b7eab5c4e29e5f0b9e03f29e278d7ed1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 35\u002B corresponding lines): Sources/GrAIdient/Layer1D/Sum1D.swift:252-286 | Sources/GrAIdient/Layer2D/Sum2D.swift:297-331 | Sources/GrAIdient/LayerSeq/SumSeq.swift:263-297 \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":"Sources/GrAIdient/Layer1D/Sum1D.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b50edbc0fa3ca7b8bd16b9e4309ce32a65b09b6d8a02e97dfff6e94e505d79f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 44\u002B corresponding lines): Sources/GrAIdient/Layer1D/BCE1D.swift:261-317 | Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:284-336 | Sources/GrAIdient/Layer1D/MSE1D.swift:257-300 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 44 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/BCE1D.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e236f2ca1867af491f3ac5a65ad850f6be793f85501463edd85558bbb677dd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Sources/GrAIdient/Layer2D/VQ2D.swift:789-819 | Sources/GrAIdient/LayerSeq/VQSeq.swift:712-740 \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":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc8485202043902c5fd77b55ebe40a7d20e28a5148aa31b93bd941b462bd673"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Sources/GrAIdient/Layer2D/Multiply2D.swift:511-545 | Sources/GrAIdient/LayerSeq/MutiplySeq.swift:470-504 \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":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea878d71dc4bc54cab8f64c725f0b4ca4ae03e190b6e610f7d513497f7964f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 30\u002B corresponding lines): Sources/GrAIdient/Layer1D/FullyConnected.swift:1027-1064 | Sources/GrAIdient/Layer1D/LinearError1D.swift:289-318 | Sources/GrAIdient/Layer1D/Softmax1D.swift:303-333 | Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:325-356 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd85eb9bc33fbdaef96fde31e7a9f13d058f9bfbeb317b4dc8fb2ecfea19bec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Sources/GrAIdient/Layer2D/VQ2D.swift:593-630 | Sources/GrAIdient/LayerSeq/VQSeq.swift:518-553 \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":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0fea0e35c76f46a63f8108466b9c9e8bfea3a381aac2b762b7a72cad210642"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Sources/GrAIdient/LayerSeq/ConstantSeq.swift:386-411 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:889-914 \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":"Sources/GrAIdient/LayerSeq/ConstantSeq.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a711ae3c41911ee1ee0d5715e53c92a7540ea7bd99e8042f7b6db578b00acf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 33\u002B corresponding lines): Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:243-275 | Sources/GrAIdient/Layer2D/VQ2D.swift:826-858 | Sources/GrAIdient/LayerSeq/VQSeq.swift:747-779 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 33 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"251e7b0536bc1f67026d5911db7c584a2baddd68d8d2b0b434b41a143fe03c92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 30\u002B corresponding lines): Sources/GrAIdient/Layer2D/AvgPool2D.swift:158-187 | Sources/GrAIdient/Layer2D/AvgPool2D.swift:229-262 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:256-287 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:330-365 | Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift:173-203 | Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift:254-289 \u2014 These 6 members are one piece of code written 6 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AvgPool2D.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e34156c9ffa45904e17d850b030afe33a25bac0393cca5c9f606904e109ca1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 34\u002B corresponding lines): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1318-1351 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2226-2267 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2868-2907 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ef665e2f17cd858e4e9bd61ea3886676bb8831e48a8dd8be5e140a5aaba9f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): Sources/GrAIdient/Layer2D/SimilarityError2D.swift:415-457 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:648-696 \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":"Sources/GrAIdient/Layer2D/SimilarityError2D.swift"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0c4a999bae1abd87c6e73de0922b265d5d8a2861d122270f472f22866246638"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:189-218 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:436-465 \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":"Sources/GrAIdient/Layer2D/Transform/Flip2D.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"c440e2b2463a676d7b8eae2074d4f9ba243e4bf1fb3ed41a33580847acf8aa9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 28\u002B corresponding lines): Sources/GrAIdient/LayerSeq/QuerySeq.swift:322-349 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1612-1643 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:897-926 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1606-1637 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"377cccb8245e85b723051e44eb22f8acfe894540254abfa224c31006d9b365dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 26\u002B corresponding lines): Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift:152-177 | Sources/GrAIdient/LayerSeq/LayerCAMSeq.swift:168-196 | Sources/GrAIdient/LayerSeq/SelectSeq.swift:173-200 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:240-270 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91451d12fbfd062944a330dce814c4d017514a92a4cefd20db47ba6eee25b88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): Sources/GrAIdient/Layer2D/Convolution2D.swift:600-639 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:196-235 \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":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96b6e4531895e9cc2320d350fd2666d316ece00e9a7f2daa63b7ba5f09fa957"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 41\u002B corresponding lines): Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:54-98 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:110-150 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:77-120 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 41 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6953df275757347df7a4ca72899e0c4437459176b844474173024a03e128011"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 25\u002B corresponding lines): Sources/GrAIdient/Layer1D/DotProduct1D.swift:313-340 | Sources/GrAIdient/Layer1D/FullyConnected.swift:901-925 | Sources/GrAIdient/Layer1D/SelectNeurons1D.swift:238-265 | Sources/GrAIdient/Layer2D/LayerCAM2D.swift:172-200 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 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":"Sources/GrAIdient/Layer1D/DotProduct1D.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f524a30e839f2b5cf3edc5b8b46f5781b100cec95d7d709a3be7cdb26a7939c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Sources/GrAIdient/Utils/Image.swift:188-216 | Sources/GrAIdient/Utils/Image.swift:229-258 \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":"Sources/GrAIdient/Utils/Image.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbaa7da84e92daf7f482704b3a694de92b858c30ddf31fecd402764ae30d382d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:333-359 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:544-576 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:626-660 \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":"Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"7adc5f99e37dabcbd430a6e39cb268e193ed5bdd61c11d0763a334d79bf150d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 41\u002B corresponding lines): Sources/GrAIdient/Layer1D/Concat1D.swift:297-337 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:330-372 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:757-799 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 41 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e14744132fe485e1296dc25233f2a05303ee5617054992e8465bc0265b70fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 31\u002B corresponding lines): Sources/GrAIdient/Layer1D/BCE1D.swift:92-124 | Sources/GrAIdient/Layer1D/LinearError1D.swift:90-121 | Sources/GrAIdient/Layer1D/LinearError1D.swift:134-164 | Sources/GrAIdient/Layer1D/MSE1D.swift:90-121 | Sources/GrAIdient/Layer1D/MSE1D.swift:134-164 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 31 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/BCE1D.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9efc5a9ffacf37c22caa4c6ee800315234c7855e1e46734488bbf5a824a8876"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): Sources/GrAIdient/Layer1D/FullyConnected.swift:354-396 | Sources/GrAIdient/Layer1D/FullyConnected.swift:408-448 \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":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df3facf017efd9590761b02c08e860d84f0639e9927fd45b902419e8595fb5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): Sources/GrAIdient/LayerSeq/ActivationSeq.swift:279-305 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:540-567 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:554-581 \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":"Sources/GrAIdient/LayerSeq/ActivationSeq.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc5f436f9951c77b98c2434ef724e07dcdaf925ada10b5c2cd45367dd65bd76f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/GrAIdient/Core/Function/Normalization.swift:249-268 | Sources/GrAIdient/Core/Function/Normalization.swift:281-309 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Function/Normalization.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e756d3a7392b948dc3b98448a0647ec26a6ed7d7d16d8ebbedcc2249c344775"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 36\u002B corresponding lines): Sources/GrAIdient/Layer1D/Constant1D.swift:333-368 | Sources/GrAIdient/Layer2D/Constant2D.swift:351-388 | Sources/GrAIdient/Layer2D/Constant2D.swift:395-434 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:780-817 \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":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f704dbc117fd7b42275dae8f74323f8ac60f397491894ea795610b632301bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:321-350 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:362-395 \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":"Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"148b8d813e1bb2b64303005f5799cd9dc5af06ab0fd9be48f39e0eb33380dea7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Sources/GrAIdient/Layer2D/AvgPool2D.swift:190-222 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:254-284 \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":"Sources/GrAIdient/Layer2D/AvgPool2D.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f7d1e81ac46c18b74d094c6536506462ddf9e853cb0aa6b877cf66d788946a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:161-189 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:132-160 \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":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a3a192b19bcc20d31827f57b3a05a88d12b2d8929335df47d5f6e551847ebe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Sources/GrAIdient/LayerSeq/QuerySeq.swift:1255-1293 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1337-1367 \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":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1255}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1d4c626405dcfbfb2ffbde02932813141f22b2f59c744f5016742c56b5ae79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 30\u002B corresponding lines): Sources/GrAIdient/Layer2D/LayerCAM2D.swift:129-165 | Sources/GrAIdient/Layer2D/Normalize2D.swift:143-172 | Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift:137-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 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":"Sources/GrAIdient/Layer2D/LayerCAM2D.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4c9101d32a60e8bb4abd78d9eed201b2c1dfef88b1d9b71221fb09983d38e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 32\u002B corresponding lines): Sources/GrAIdient/Layer1D/Sum1D.swift:289-320 | Sources/GrAIdient/Layer2D/Sum2D.swift:334-371 | Sources/GrAIdient/LayerSeq/MutiplySeq.swift:425-463 | Sources/GrAIdient/LayerSeq/SumSeq.swift:300-332 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Sum1D.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c3124bb37ea58045406e2579202b4833215662f9e28328f7052bc0b3f2a69b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Sources/GrAIdient/Layer2D/AvgPool2D.swift:73-108 | Sources/GrAIdient/Layer2D/AvgPool2D.swift:125-151 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AvgPool2D.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"b642725a1c2211f0221aab5c528f3ca559843f8028b907db7f93b9f3809b6ff0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 33\u002B corresponding lines): Sources/GrAIdient/Layer2D/BN2D.swift:284-316 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:209-241 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:208-240 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:220-253 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 33 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BN2D.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6c155d756cdc60680050905168a804c15faf2b05fb98092236ae2e62f16747"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Sources/GrAIdient/Core/Layer/LayerUpdate.swift:436-469 | Sources/GrAIdient/Core/Layer/LayerUpdate.swift:504-537 \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":"Sources/GrAIdient/Core/Layer/LayerUpdate.swift"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f93fc9cfcdf8ea33e008c4f0ef8157f1527729668ed24163a392e4fed9f8fa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/GrAIdient/Layer1D/Constant1D.swift:393-413 | Sources/GrAIdient/Layer1D/Softmax1D.swift:230-255 \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":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"541e7ffd83c2ce47f7366e50d1ef53187375fc22640b4fb0960ac69a89b2c5a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 22\u002B corresponding lines): Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:185-206 | Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:213-234 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:547-568 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:575-596 \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":"Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97e4588ee377a4948f6cb22cf1ec0945aee62d36d205b9d4930c355625f1f23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Sources/GrAIdient/Layer2D/Transform/FTFrequences2D.swift:229-250 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1296-1317 \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":"Sources/GrAIdient/Layer2D/Transform/FTFrequences2D.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"e731217a6234d3d3bfa6008d56315c064097c64d39b9cbd9a69c34c369142549"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Sources/GrAIdient/Layer1D/FullyConnected.swift:936-965 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:864-896 \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":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"3026be7af1cd0ca2760bfe6b896e13456a9aa03e33a5f4ceed59e84e22615fe5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 22\u002B corresponding lines): Sources/GrAIdient/Layer1D/Activation1D.swift:178-201 | Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:230-251 | Sources/GrAIdient/Layer1D/SelectNeurons1D.swift:173-197 | Sources/GrAIdient/LayerSeq/ActivationSeq.swift:182-209 | Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift:73-104 | Sources/GrAIdient/LayerSeq/SelectSeq.swift:109-133 \u2014 These 6 members are one piece of code written 6 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Activation1D.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"38da02996d0058d36aed715b024c2454714da1184919720b1df30cc2ae28cd10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Sources/GrAIdient/Layer1D/SelectNeurons1D.swift:268-292 | Sources/GrAIdient/LayerSeq/SelectSeq.swift:203-231 \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":"Sources/GrAIdient/Layer1D/SelectNeurons1D.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"94dfa5f143b40a263d950b62bb3db1c513179ac039594af23e4dfe69e7eb2325"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Sources/GrAIdient/LayerSeq/ConcatSeq.swift:253-276 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:685-708 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c07a1dde3612a8066daaf87ace27856607485b003ac64589cb6da8abd2ddad9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:766-793 | Sources/GrAIdient/LayerSeq/LayerCAMSeq.swift:128-161 \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":"Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a7ec71ef4dfcbd09e4d6cf33897bb9f1e43e78802c712b77fdd298c8faaa32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/GrAIdient/Core/Function/Activation.swift:931-945 | Sources/GrAIdient/Core/Function/Activation.swift:953-969 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Function/Activation.swift"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb14129bf9e06e3145c694824f8a07965816f08fdefba939d76c0a543689099d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 30\u002B corresponding lines): Sources/GrAIdient/Layer1D/Constant1D.swift:159-188 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:160-190 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:645-675 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:194-231 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f03f52fd813c5542b6d8efbd17b1bb8c3a0f9f627400151da041fd765951bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 21\u002B corresponding lines): Sources/GrAIdient/Layer1D/FullyConnected.swift:320-340 | Sources/GrAIdient/Layer2D/Convolution2D.swift:501-523 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:225-246 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:204-224 \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":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f38f4c4def414d238374b8edf374118a2a16e13e3f7b5491931dd337a1c077"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:312-335 | Sources/GrAIdient/Layer1D/Input1D.swift:366-388 \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":"Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"31890e1ed713114fe039cb327b13a280bc7a8e50e390aae3fd123c778f3f7e48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 19\u002B corresponding lines): Sources/GrAIdient/Layer2D/Activation2D.swift:228-248 | Sources/GrAIdient/Layer2D/BN2D.swift:565-586 | Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:319-337 | Sources/GrAIdient/Layer2D/Input2D.swift:419-437 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:489-510 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:254-279 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:168-187 \u2014 These 7 members are one piece of code written 7 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Activation2D.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"8733b8cb368e92770e8330dd83feba11a34f841158a2b464c4a4c85521059d23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:199-214 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:170-186 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa559e06dfaf24681566618f16d63c1dd3d6f3a5d9ae805c87f66a4a6bf4bae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Sources/GrAIdient/Layer1D/Concat1D.swift:228-249 | Sources/GrAIdient/Layer2D/Concat2D.swift:264-287 \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":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc582f93cc9732b322f242c7d6d44dd895c1bcf374ad7374fa057e7755e1de79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/GrAIdient/Layer2D/VQ2D.swift:179-198 | Sources/GrAIdient/LayerSeq/VQSeq.swift:168-188 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd05c74e8beb7b9f27fefff3c5e43b4edeb62088f2efdd7aa154eda8e3ca1349"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:227-242 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:199-213 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"244a4c7ee0bf85d63a8645f7d2ce924e791db3d434dffd46400c95233f1c1f31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): Sources/GrAIdient/LayerSeq/ActivationSeq.swift:227-246 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:486-506 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:500-520 \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":"Sources/GrAIdient/LayerSeq/ActivationSeq.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"addd7042bd000daaebdc08e89febc769cc5fed9263b9001957d877411164277c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/GrAIdient/LayerSeq/QuerySeq.swift:1117-1125 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1243-1251 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"3737a830ae3e99325a5ca18d69b429e03d37beb3d448cf74fe91a0fd8246f433"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 40\u002B corresponding lines): Sources/GrAIdient/Metal/MetalBuffer.swift:31-70 | Sources/GrAIdient/Metal/MetalBuffer.swift:102-146 | Sources/GrAIdient/Metal/MetalBuffer.swift:218-258 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 40 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Metal/MetalBuffer.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b253f0a20720b69ddc4a324b9b8608dbb4854a1429f9ee90c62fb943de6ca38d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/GrAIdient/Layer2D/Base/Layer2D.swift:278-295 | Sources/GrAIdient/Layer2D/Base/Layer2D.swift:328-350 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/Layer2D.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf27ff44085b5b1f49a3d3f840292cff5a65ef78e27f2ea0ebf77cb0ac4e86cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/GrAIdient/Layer2D/VQ2D.swift:155-166 | Sources/GrAIdient/LayerSeq/VQSeq.swift:143-155 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b0be36f568f1bd26010ba1b80670e77f00797ae43e7b5ac032e575782c1078"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/GrAIdient/Layer2D/AdaIN.swift:548-561 | Sources/GrAIdient/Layer2D/AdaIN.swift:607-619 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaIN.swift"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"1034ba3c26e02eca98f99b3c81311d4a822c346abf73eb82f4cb2aa7bc1482fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:42-68 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:80-105 \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":"Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ecd7030f77d435b232edd7ecf1b653efa712a25b82cfa01c3f8fb9b0e898f34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/GrAIdient/Layer1D/Sum1D.swift:230-245 | Sources/GrAIdient/LayerSeq/SumSeq.swift:240-256 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Sum1D.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d898674d0ea2781da862bc8edb59c983b80b25ec87994f9815368f8d8229aaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/GrAIdient/Layer2D/Concat2D.swift:23-42 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:50-73 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Concat2D.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd031a973d569958c318f9dba0161952a4d48cc5fd6b85424467ce8e02ffb5d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/GrAIdient/Utils/Serialization.swift:168-182 | Sources/GrAIdient/Utils/Serialization.swift:234-250 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Utils/Serialization.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4b31e3bb0a84f7e4fc1aeeaff9e2cd6d58266188ede9270490e51470bbb073"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Sources/GrAIdient/Core/Function/Normalization.swift:46-56 | Sources/GrAIdient/Core/Function/Normalization.swift:93-111 | Sources/GrAIdient/Core/Function/Normalization.swift:125-143 \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":"Sources/GrAIdient/Core/Function/Normalization.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"419a5bedeefa0ee5efe4b3de75bc5c7d4ca92b9881e04b8ac18ae4fd5c7f8075"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): Sources/GrAIdient/Core/Function/Activation.swift:408-425 | Sources/GrAIdient/Utils/Buffer.swift:122-139 | Sources/GrAIdient/Utils/Buffer.swift:150-167 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 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":"Sources/GrAIdient/Core/Function/Activation.swift"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"23edb28b261f4cfe8e553cc362f6e18d712ef8f945179e957956d8729932179d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Sources/GrAIdient/Core/Optimizer/OptimizerAlgorithm.swift:291-316 | Sources/GrAIdient/Core/Optimizer/OptimizerAlgorithm.swift:357-381 \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":"Sources/GrAIdient/Core/Optimizer/OptimizerAlgorithm.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf460480b10b902bc1a50a3a456c4ee1a49c121ee9ec7295b9f2e06a6fe8fd28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Sources/GrAIdient/Core/Function/Activation.swift:128-143 | Sources/GrAIdient/Core/Function/Activation.swift:150-166 | Sources/GrAIdient/Core/Function/Activation.swift:173-188 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 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":"Sources/GrAIdient/Core/Function/Activation.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa898884c87424fdf29fea243e9873e98bb70bdba3a6b30a7f50765617d1d81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/GrAIdient/LayerSeq/QuerySeq.swift:628-636 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:625-632 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d65294040dd1aadf20a681acc591f445a65c936deaefafdd4ea82f6c95d024c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Sources/GrAITestsUtils/Trainer.swift:275-301 | Sources/GrAITestsUtils/Trainer.swift:418-444 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAITestsUtils/Trainer.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4143b83b962a5e64091025bb09e467c7c954d337ece855561b2433385e91300"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Sources/GrAIdient/LayerSeq/ConcatSeq.swift:23-44 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:455-476 \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":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0152b3df4670c5989335fbfa8c18529992aee2aadee0f76988a003de393449d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:232-249 | Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift:121-145 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SelectNeurons2D.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"893510922ef93a47e1377bf13b98adcbcf6f0ae653319cba81f800484b7d4623"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Sources/GrAIdient/Core/Model/Model.swift:809-822 | Sources/GrAIdient/Core/Model/Model.swift:836-858 | Sources/GrAIdient/Core/Model/Model.swift:871-891 \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":"Sources/GrAIdient/Core/Model/Model.swift"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"a28d926c00b5ea1fc98eda27d94377a18247d6e1ba96cf514c7df8e6f072091a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/GrAIdient/Core/Model/Model.swift:125-141 | Sources/GrAIdient/Core/Model/Model.swift:203-225 \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":"Sources/GrAIdient/Core/Model/Model.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"4943dcb4a0c925938f61e41bc75566e1ecb2c42c143ea8533d7158f952174b90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/GrAIdient/Layer1D/Softmax1D.swift:32-49 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:33-51 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Softmax1D.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57a30ca961750fcefd7442e63eeebfd78eb00c7be682b1e27ac23d6b2ab4fa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/GrAIdient/Layer2D/BN2D.swift:717-733 | Sources/GrAIdient/Layer2D/BN2D.swift:743-756 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BN2D.swift"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"059cf61b501a2fb6bb9e0a3e7b652a41afa0780e682c4998c4ddfda7fc49c618"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Sources/GrAIdient/Layer2D/Convolution2D.swift:207-229 | Sources/GrAIdient/Layer2D/Convolution2D.swift: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":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c04cdf57672b9e3627810f4c5f66ce5887d5baaa2186dcc82e420416e2ed85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/GrAIdient/Core/Model/Model.swift:1013-1031 | Sources/GrAIdient/Core/Model/Model.swift:1042-1058 \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":"Sources/GrAIdient/Core/Model/Model.swift"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7d29f116b1aee96480170e8e8e8441145a25cc3d7e5128bc56da30b058d2fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/GrAIdient/Layer2D/Multiply2D.swift:146-162 | Sources/GrAIdient/LayerSeq/MutiplySeq.swift:145-161 \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":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"43a0035e06fec354b50a260d673245a548016bb4653bff323656e30fa5b52511"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Sources/GrAIdient/Utils/Buffer.swift:21-46 | Sources/GrAIdient/Utils/Buffer.swift:58-85 \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":"Sources/GrAIdient/Utils/Buffer.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5646661a0231669d9f9213b3dce8b71171abe06d28404aa5141b03c0d4aa11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/GrAIdient/Core/Function/Normalization.swift:67-79 | Sources/GrAIdient/Core/Function/Normalization.swift:156-173 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Function/Normalization.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b5a550d3874b4152ea8ee5174afda8a309e3e9cade5a8ea9d40b7c57aa4727"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 14\u002B corresponding lines): Sources/GrAIdient/Layer1D/Activation1D.swift:219-237 | Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:268-281 | Sources/GrAIdient/Layer1D/Input1D.swift:319-335 | Sources/GrAIdient/Layer1D/SelectNeurons1D.swift:214-231 | Sources/GrAIdient/LayerSeq/SelectSeq.swift:150-166 \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":"Sources/GrAIdient/Layer1D/Activation1D.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"1980196f1c42a048f33aaee3ae85498e2c008687f320b940cb458060760b6abc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/GrAIdient/Layer2D/Multiply2D.swift:124-139 | Sources/GrAIdient/LayerSeq/MutiplySeq.swift:123-138 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"661bbdbc1f41ff074e186a784e3257127da665570e0e1be92903994b17439d0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 18\u002B corresponding lines): Sources/GrAIdient/Layer2D/Transform/ColorJitterHSV.swift:83-109 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:40-61 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:30-51 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:24-41 \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":"Sources/GrAIdient/Layer2D/Transform/ColorJitterHSV.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a90d52df2ece56c11b3b5af1801725cf891f0a94736de996e007cbbf72b5653"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/GrAIdient/LayerSeq/Base/LayerSeq.swift:187-198 | Sources/GrAIdient/LayerSeq/Base/LayerSeq.swift:214-230 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/Base/LayerSeq.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b319e11437d629a780522eea68c003c512810229b72e6e0ff0b9d109433731"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 19\u002B corresponding lines): Sources/GrAIdient/Layer2D/BN2D.swift:325-343 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:250-268 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:249-267 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:262-281 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 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":"Sources/GrAIdient/Layer2D/BN2D.swift"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03a119ea24cd1dadbb1b4e4f47ef778331187e7bb44f2c6220ae8e53f37f911"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/GrAIdient/Layer2D/Transform/FTFrequences2D.swift:69-82 | Sources/GrAIdient/Layer2D/Transform/FTFrequences2D.swift:98-118 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/FTFrequences2D.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"be5019df8798d2e2d4de59af5d7fbf0b9896346367014e45e3d6950a189f3ab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/GrAIdient/Layer2D/VQ2D.swift:1032-1041 | Sources/GrAIdient/LayerSeq/VQSeq.swift:952-961 \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":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e6d5be60a7056d759db2b2af085382b974d90bbd8c60d66947875c58e0d21f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): Sources/GrAIdient/Layer1D/Constant1D.swift:416-439 | Sources/GrAIdient/Layer2D/Constant2D.swift:484-509 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:917-941 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff12e101073906ae97a58f7b2cb5b212fd0acea255f1d17063dd6452846da41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/GrAIdient/LayerSeq/QuerySeq.swift:649-657 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:645-652 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5801eeac29b7d645c3d373a3e58f2f545dcf17bafb1112e1841f68f37a593f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): Sources/GrAIdient/Layer2D/BN2D.swift:764-780 | Sources/GrAIdient/Layer2D/BN2D.swift:789-802 | Sources/GrAIdient/Layer2D/BN2D.swift:810-826 | Sources/GrAIdient/Layer2D/BN2D.swift:835-848 \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":"Sources/GrAIdient/Layer2D/BN2D.swift"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5db42bc6874d8866de1caa8508e8fb0e3f5a7fd367e991e03dd51c2ea5d99bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Sources/GrAIdient/Layer2D/VQ2D.swift:282-298 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:268-284 | Sources/GrAIdient/LayerSeq/VQSeq.swift:272-288 \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":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"e81cd63127412143126808b0d157e86b0e6dd09c8ac6e354a2f4b8aada742cbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/GrAIdient/Layer2D/Base/LayerInput2D.swift:200-217 | Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:225-242 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/LayerInput2D.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"57891286d5f37d760cbeeec4298491ecabbdc42b98e9b5b44a8c37d3dab8be32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): Sources/GrAIdient/Layer2D/Input2D.swift:25-37 | Sources/GrAIdient/Layer2D/Input2D.swift:38-48 | Sources/GrAIdient/Layer2D/Input2D.swift:54-66 | Sources/GrAIdient/Layer2D/Input2D.swift:67-77 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Input2D.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f5adc588df90915d2ff18ad5e7c0ad9091904338767b0dae3696b6b8dc675a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Sources/GrAIdient/Layer1D/Activation1D.swift:66-80 | Sources/GrAIdient/Layer2D/Activation2D.swift:69-87 | Sources/GrAIdient/LayerSeq/ActivationSeq.swift:67-84 \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":"Sources/GrAIdient/Layer1D/Activation1D.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"8777e2248af4b607f0a089c709ffe2fb5420e6f4548288d339b4d60348a90f37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift:44-58 | Sources/GrAIdient/Layer2D/Base/LayerMerge2D.swift:100-116 | Sources/GrAIdient/LayerSeq/Base/LayerMergeSeq.swift:45-61 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 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":"Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae97ae9fa3bbd73d1ac7e5b58a92ae7a2610bd001d7c74963d0b7b3ad073bff3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/GrAIdient/Layer2D/VQ2D.swift:1012-1022 | Sources/GrAIdient/LayerSeq/VQSeq.swift:932-942 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"32351185016902ecfd457cabbc14ce727577bb6cdb1debbfdad18c92912a208a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 11\u002B corresponding lines): Sources/GrAIdient/Core/State/Weights.swift:219-229 | Sources/GrAIdient/Core/State/Weights.swift:258-268 | Sources/GrAIdient/Core/State/Weights.swift:297-307 | Sources/GrAIdient/Core/State/Weights.swift:336-346 | Sources/GrAIdient/Core/State/Weights.swift:375-385 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/State/Weights.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dba3ce0661e77585bf67862ebf94d89d4970f1a5d96a1f23cd6898788725d0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/GrAIdient/Layer1D/Input1D.swift:14-24 | Sources/GrAIdient/Layer1D/Input1D.swift:39-49 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Input1D.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a11f7bd6c28fe38f404034b0ff787423ea1f93578ce040a404d1125546fedcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Sources/GrAIdient/LayerSeq/QuerySeq.swift:1138-1149 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:424-433 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1264-1275 \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":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"35697a9a500a1a2b1310baac140694d5fde67d96101bbcf78d66a0b6a887f0b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/GrAIdient/Layer1D/Base/Layer1D.swift:214-228 | Sources/GrAIdient/Layer2D/Base/Layer2D.swift:304-319 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/Layer1D.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b4ba30d81e890c8f5d2d90007a681b88d7299d0817d93dcbff1e181ca0e7e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/GrAIdient/Layer1D/Base/Layer1D.swift:194-205 | Sources/GrAIdient/Layer1D/Base/Layer1D.swift:237-253 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/Layer1D.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"529ef53f7739348eb3beb038b292068ded1fa4d72aa2ad09a9ca958f90c05daa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:165-180 | Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:187-202 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c51af794abb399ce08bab4e7b580a6d2b2ae3d9bc97c90754555b63513f6596"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 20\u002B corresponding lines): Sources/GrAIdient/Layer2D/Convolution2D.swift:648-670 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:244-266 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:353-373 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:329-348 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"094c3212dab6c86cc56b212491afa27cc1567920bb62613220c8914829034634"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:45-60 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:31-47 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:33-50 \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":"Sources/GrAIdient/Layer2D/Transform/Flip2D.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"275c7ef9050086033be993f0e0f280659cae2252b3678a8921fbe16a4e4a71ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/GrAIdient/Layer2D/VQ2D.swift:861-880 | Sources/GrAIdient/LayerSeq/VQSeq.swift:782-800 \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":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d72531f2e7d8c88b858fe2b81c1022de119e360eeb0ca856b849b48759d2d1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Sources/GrAIdient/LayerSeq/QuerySeq.swift:1820-1853 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1814-1847 \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":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1820}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f19cf4fe95eccd76e14c5deede927ae7bd75e9c5a743d4b3e75e99fcd11680"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 11\u002B corresponding lines): Sources/GrAIdient/Core/State/Weights.swift:200-210 | Sources/GrAIdient/Core/State/Weights.swift:239-249 | Sources/GrAIdient/Core/State/Weights.swift:278-288 | Sources/GrAIdient/Core/State/Weights.swift:317-327 | Sources/GrAIdient/Core/State/Weights.swift:356-366 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/State/Weights.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c17d87882da8b67947dbb244187539fbbe28b08648c63d5f925b6f4bb71c4b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): Sources/GrAIdient/Layer2D/BN2D.swift:396-414 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:319-337 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:333-351 \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":"Sources/GrAIdient/Layer2D/BN2D.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"e492c3248336f456b3048c9c078b15a3793d4fee00d9390e25ba0ec16ee5d437"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/GrAIdient/Layer2D/Input2D.swift:343-357 | Sources/GrAIdient/Layer2D/Input2D.swift:372-386 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Input2D.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b224c2173864a9b740697584be140a097268c61f2932e64b5eca47b8602efd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): Sources/GrAIdient/Core/Layer/LayerUpdate.swift:282-293 | Sources/GrAIdient/Core/Layer/LayerUpdate.swift:347-358 | Sources/GrAIdient/Core/Layer/LayerUpdate.swift:412-424 | Sources/GrAIdient/Core/Layer/LayerUpdate.swift:480-492 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerUpdate.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"d97601ee4b5a672421b65ce9b915994276738faee2deda259d988dacd3932873"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): Sources/GrAIdient/Core/Optimizer/OptimizerAlgorithm.swift:189-208 | Sources/GrAIdient/Core/Optimizer/OptimizerAlgorithm.swift:260-281 | Sources/GrAIdient/Core/Optimizer/OptimizerAlgorithm.swift:326-347 \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":"Sources/GrAIdient/Core/Optimizer/OptimizerAlgorithm.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e5799427f524cf9abe415eb89f9ff81c002ee0a80026ef7d175d099a8f1461e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/GrAIdient/Core/Optimizer/OptimizerVariable.swift:226-236 | Sources/GrAIdient/Core/Optimizer/OptimizerVariable.swift: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":"Sources/GrAIdient/Core/Optimizer/OptimizerVariable.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"d336a77f431701708bfd6ec70792d8c4e1f68e0458fb80184230f37c052234d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/GrAIdient/Layer1D/Base/Layer1D.swift:116-130 | Sources/GrAIdient/LayerSeq/Base/LayerSeq.swift:126-140 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/Layer1D.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"4474b959ab43920f2eeb39a819f0058717db415b8d6953b64e5082c73019c3bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/GrAIdient/Utils/Serialization.swift:195-201 | Sources/GrAIdient/Utils/Serialization.swift:263-269 \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":"Sources/GrAIdient/Utils/Serialization.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9cb520bbc4dd0abb9ab6febb02c1652f47054850591b66779a47eb89214fda"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 19\u002B corresponding lines): Sources/GrAIdient/Layer1D/FullyConnected.swift:603-621 | Sources/GrAIdient/Layer2D/Convolution2D.swift:809-828 | Sources/GrAIdient/Layer2D/VQ2D.swift:349-368 | Sources/GrAIdient/LayerSeq/VQSeq.swift:339-358 \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":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"c862568248c43f1db47661b71eef2bec209eb758abf16cb33f0c902a4ea1d990"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): Sources/GrAIdient/Layer2D/VQ2D.swift:305-323 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:291-309 | Sources/GrAIdient/LayerSeq/VQSeq.swift:295-313 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 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":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"4370fa8c911c62dfe87ca2c44b604e0157d98922855aeed16dd17603d14fdadb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:153-162 | Sources/GrAIdient/Core/Model/Model.swift:88-101 \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":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4770d1718733bde4d690e8a6d494c6c16ba8178a25e43633a8927cf4b58280"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:155-167 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:206-221 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"d463d727db0096911664edf2a565f77a8ed46e21163cf62dd5047a237858fab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/GrAIdient/Layer1D/LinearError1D.swift:177-191 | Sources/GrAIdient/Layer1D/MSE1D.swift:177-192 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/LinearError1D.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be1d572fd6b13d0e23570c942d5b1fdd34f901eb7c51f7e4e64e1318db2b2af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2770-2788 | Sources/GrAIdient/Layer2D/Constant2D.swift:281-300 \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":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":2770}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7bf08e72c9aea8c8087c2071ea1cb0e007673e40420ef7be7385939c9ee63b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/GrAIdient/Layer2D/Base/Layer2D.swift:261-271 | Sources/GrAIdient/Layer1D/Base/Layer1D.swift:178-187 \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":"Sources/GrAIdient/Layer2D/Base/Layer2D.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda3afd248c72c0563ebc3a750a6b6b1693782ef3790bbe6df968e0b642b3f83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 12\u002B corresponding lines): Sources/GrAIdient/Core/Function/Activation.swift:195-207 | Sources/GrAIdient/Core/Function/Activation.swift:214-227 | Sources/GrAIdient/Core/Function/Activation.swift:234-246 | Sources/GrAIdient/Core/Function/Activation.swift:253-264 | Sources/GrAIdient/Core/Function/Activation.swift:271-283 | Sources/GrAIdient/Core/Function/Activation.swift:290-301 \u2014 These 6 members are one piece of code written 6 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Function/Activation.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"81cbd474529e07a37d9f8f92e20d932d4b4c9c6aa85aec0025793aee78303598"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:102-116 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:97-107 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/RMSNormSeq.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f4d4fded4e4b1f6f11a1979fbc6e9af6947ac0581a1f457c8d38f03f9e205f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/GrAIdient/Layer2D/Base/Layer2D.swift:149-156 | Sources/GrAIdient/LayerSeq/Base/LayerSeq.swift:90-96 \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":"Sources/GrAIdient/Layer2D/Base/Layer2D.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"4494976000fb703353143515d25ff3ca661fa2ce51343f7f734bcaa1764645dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): Sources/GrAIdient/Layer2D/BN2D.swift:371-389 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:295-312 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:309-326 \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":"Sources/GrAIdient/Layer2D/BN2D.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"987a6fb28564984ab3d518064e84bd2c14266683c5811257c7681152e78b0d53"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Sources/GrAIdient/Layer1D/Base/Layer1D.swift:156-171 | Sources/GrAIdient/Layer2D/Base/Layer2D.swift:237-254 | Sources/GrAIdient/LayerSeq/Base/LayerSeq.swift:167-184 \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":"Sources/GrAIdient/Layer1D/Base/Layer1D.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ca1b626560efcc93c3ab05b0c244a05e55cf31ddada57148d4c45d5ca2915e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Sources/GrAIdient/Layer1D/Constant1D.swift:375-386 | Sources/GrAIdient/Layer2D/Constant2D.swift:441-452 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:870-882 \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":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e7eeb2578f5fcb7d6251c69f7ff1cf4ca73224a19fe6824968b8fefa4a2d32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Sources/GrAIdient/Layer2D/Base/LayerMerge2D.swift:32-58 | Sources/GrAIdient/Layer2D/Base/LayerMerge2D.swift:61-83 \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":"Sources/GrAIdient/Layer2D/Base/LayerMerge2D.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"e99ab15f570604915d13f35fe16f7277d0805971d474fb9036145e783ffed87a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/GrAIdient/Layer2D/MaxPool2D.swift:116-122 | Sources/GrAIdient/Layer1D/DotProduct1D.swift:56-61 \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":"Sources/GrAIdient/Layer2D/MaxPool2D.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15baa36d774e7a1a0bda27b426f4e9bb996e373f16a3105e2bb8a518574961f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/GrAIdient/Layer2D/Constant2D.swift:307-325 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:252-268 \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":"Sources/GrAIdient/Layer2D/Constant2D.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3be79cc7d94f002e5fa222b01b2e518e3bba16ee1d90711f40319b79517ebf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/GrAIdient/LayerSeq/Base/LayerSeq.swift:71-77 | Sources/GrAIdient/Layer1D/Base/Layer1D.swift:63-68 \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":"Sources/GrAIdient/LayerSeq/Base/LayerSeq.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"573a37f49c0853241d815e79a0892c368ea18c083125bd4952972fc1f20b6a3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/GrAIdient/Layer1D/Activation1D.swift:46-55 | Sources/GrAIdient/LayerSeq/ActivationSeq.swift:46-56 \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":"Sources/GrAIdient/Layer1D/Activation1D.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"49128d657eeb0c07168fa11990e7e9dd395efd38334e305b5a1b4fbeb0c3a5a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Sources/GrAIdient/Layer1D/Base/Layer1D.swift:137-149 | Sources/GrAIdient/Layer2D/Base/Layer2D.swift:216-230 | Sources/GrAIdient/LayerSeq/Base/LayerSeq.swift:147-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 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":"Sources/GrAIdient/Layer1D/Base/Layer1D.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"d718e19c9ee8df0918b0bb3a666047b9c6a0fb25e8193b9c2e56b6033c03b151"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/GrAIdient/Layer2D/MaxPool2D.swift:135-141 | Sources/GrAIdient/Layer1D/DotProduct1D.swift:74-79 \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":"Sources/GrAIdient/Layer2D/MaxPool2D.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd2d8cc69343a3f5d322202d1cb27b68757c2e86e75554efc4ad7de11560ad8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 8\u002B corresponding lines): Sources/GrAIdient/Layer2D/Activation2D.swift:46-56 | Sources/GrAIdient/Layer2D/BN2D.swift:143-154 | Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:38-45 | Sources/GrAIdient/Layer2D/Input2D.swift:155-163 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:97-108 | Sources/GrAIdient/Layer2D/Normalize2D.swift:25-32 \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":"Sources/GrAIdient/Layer2D/Activation2D.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a3f27373e632583dd32d1c6be2a7f61f626c50ed7f8674faf8f31ebb7d94f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:211-223 | Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:143-157 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:150-164 \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":"Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f13efe298cb664286c67180b91f8f3b5b33ed0d8865deea05a03869cffd3bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/GrAIdient/Layer2D/Base/Layer2D.swift:112-119 | Sources/GrAIdient/LayerSeq/Base/LayerSeq.swift:53-61 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/Layer2D.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"867f53ba908b7262d589af14f6fd75bdacca00931bb959f0cddbea0e9ba8852a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/GrAIdient/Layer1D/Input1D.swift:241-253 | Sources/GrAIdient/Layer2D/Input2D.swift:311-323 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Input1D.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2967c61479a8821929c0e8af15a3ea2d95d3b07d31dbd287f7423caed954cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:116-123 | Sources/GrAIdient/Layer2D/Normalize2D.swift:347-354 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a090cfda824efe679c47582bd6d74a7d9052fc0e925382ae80f0942aec86776"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/GrAIdient/Layer1D/Input1D.swift:222-233 | Sources/GrAIdient/Layer2D/Input2D.swift:292-303 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Input1D.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"e011d2f2fb99596537756ac79c8dfabefae980f56966cdb1c139e2d945ddc0dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): Sources/GrAIdient/Layer2D/Constant2D.swift:96-106 | Sources/GrAIdient/Layer2D/Input2D.swift:137-146 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:94-100 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:120-130 \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":"Sources/GrAIdient/Layer2D/Constant2D.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"706443b679acb5ca5da069df7627aac34f808d1bb1593fa6089e26fdc8c81d0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/GrAIdient/Layer2D/VQ2D.swift:330-341 | Sources/GrAIdient/LayerSeq/VQSeq.swift:320-331 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b926db637e9de642f6b285201b92f124639d162421cfb6bdf1ec49a51cebe7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/GrAIdient/LayerSeq/SelectSeq.swift:31-39 | Sources/GrAIdient/LayerSeq/VQSeq.swift:124-133 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/SelectSeq.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1988670fb51cc9547fb0d06c7abccf768cfb821129bfc2838b9b5d901acc56d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/GrAIdient/Layer1D/Input1D.swift:147-158 | Sources/GrAIdient/Layer2D/Input2D.swift:173-184 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Input1D.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"9528b6e0968e9c167befbd8af665cf2b264893818981d90d5c0dba82db677fd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/GrAIdient/Layer1D/Input1D.swift:270-276 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:407-417 \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":"Sources/GrAIdient/Layer1D/Input1D.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"0462f4ea99e244b2f0ac1149e8392209a4eb523d9d9014ff36d26dc9f0cd3206"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/GrAIdient/Layer1D/Input1D.swift:288-294 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:429-439 \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":"Sources/GrAIdient/Layer1D/Input1D.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"a403009ef527cc92b9ababcd2c9a0ce74a6691142908ae6207c031bc96ae6246"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/GrAIdient/Core/Function/Activation.swift:95-99 | Sources/GrAIdient/Core/Layer/Layer.swift:172-177 \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":"Sources/GrAIdient/Core/Function/Activation.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"146889345d07659865b5e5c2461a6b9e7215dd6ba9a77032072cb47608326042"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Sources/GrAIdient/Layer1D/Constant1D.swift:94-99 | Sources/GrAIdient/Layer1D/Input1D.swift:116-122 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:579-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 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":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"44bd6bd7b21785695db94dc09cf45b5f85fd5deb324e9c2e9f50a71e86cc9159"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/GrAIdient/Layer1D/Input1D.swift:131-137 | Sources/GrAIdient/Layer2D/AvgPool2D.swift:22-27 \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":"Sources/GrAIdient/Layer1D/Input1D.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"8878f05a87f9536ef49d7f8fceaf703b9e824fcff3335f2ab84e8a7a0891f501"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (61 lines \u00D7 2): Sources/GrAIdient/Metal/Reduce.swift:39-99 | Sources/GrAIdient/Metal/Reduce.swift:111-171 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Metal/Reduce.swift:39\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Metal/Reduce.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"3410f10eaa42411457c94be613e4cc3acc305c1e3cb8d21808c8aeaec993da4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 3): Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift:133-187 | Sources/GrAIdient/Layer2D/Base/LayerMerge2D.swift:191-245 | Sources/GrAIdient/LayerSeq/Base/LayerMergeSeq.swift:136-190 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Base/LayerMerge2D.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 129 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8966548dc2901693a47686d47fd1f2b591333d6f8770f6f6cd9dd4a890c732"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51\u201352 lines \u00D7 2): Sources/GrAITestsUtils/FlowChecking.swift:21-72 | Sources/GrAITestsUtils/GradientChecking.swift:26-76 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAITestsUtils/GradientChecking.swift:26\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAITestsUtils/FlowChecking.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"8487936541d53aca81147b74aeeb343439eb7a60dd83ed5511568fba0f906072"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 2): Sources/GrAIdient/Layer2D/AdaIN.swift:262-311 | Sources/GrAIdient/Layer2D/AdaIN.swift:380-429 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/AdaIN.swift:262\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaIN.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ea6437a89ec57c7b1877598a754b15b1b8055626bc7be7c0001a4b065e645e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 3): Sources/GrAIdient/Layer1D/FullyConnected.swift:1220-1260 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1298-1338 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1182-1222 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 473 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa7f4f7a364706c3419c818b97b981446d1a27a1fb82b15f95143c455a6ffc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): Sources/GrAIdient/Layer2D/Convolution2D.swift:548-588 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:144-184 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 499 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:548\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4bc3a868618568ee3fa9db4f1538aa08a2b7e53fcdc75309f04ec773179ae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:417-457 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:530-570 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:414\u0060 calls \u0060Double\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:528\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef458eb6465b1c6246143b7b9230610775e7fc9d3f713e474cc318c5a2affd45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:1371-1409 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1497-1535 \u2014 both copies are in the same file, so extract the block 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, \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:1537\u0060 calls \u0060download\u0060 and \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:1411\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f8fc3bbbe38694a24eecc3dd1a3447d4d078a603b2c187c2471246d3ae8d1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 3): Sources/GrAIdient/Layer2D/BCE2D.swift:274-311 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:317-354 | Sources/GrAIdient/Layer2D/MSE2D.swift:270-307 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/BCE2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/BCESigmoid2D.swift\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCE2D.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b34fc2d40e30b5a85166aa21e40b172866ab2316fff2f15309a1d7df5e73ecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): Sources/GrAIdient/Layer2D/Concat2D.swift:84-121 | Sources/GrAIdient/Layer2D/Concat2D.swift:177-214 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Concat2D.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa9b0729e7d399b81a75b158ab0fd316dfdad4ef8baf0e932909d1f7f794ea6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): Sources/GrAIdient/Layer2D/SimilarityError2D.swift:175-212 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:265-302 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityError2D.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2e5c8914f0e1754dab972383299f93f989f3b05d8e80f481b5ccdc93f6e256"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:1714-1750 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1708-1744 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:1714\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1714}}}],"partialFingerprints":{"codehealthFindingId/v1":"675d7441f0463a045c0661f15ca76a3b8f169f7d6077ba6ae2417059d0e94eee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 3): Sources/GrAIdient/Layer1D/FullyConnected.swift:522-557 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:413-448 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:388-423 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 473 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19521ee030926cf62c14be60076e3029131f507351bde30f658bc0d8386ab27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): Sources/GrAIdient/Layer1D/DotProduct1D.swift:122-156 | Sources/GrAIdient/Layer1D/DotProduct1D.swift:202-236 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift:238\u0060 calls \u0060download\u0060 and \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift:158\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/DotProduct1D.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"987d8f3bcbce69f77e96785585d27be4c546d6fae1d136a7ef30a8e18aaa5780"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201335 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:279-308 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1557-1591 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:279\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"60000b7bacd34a7e670a2ebde82e45fff676c727f59461199ef1a124de258a4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201334 lines \u00D7 2): Sources/GrAIdient/Layer2D/VQ2D.swift:470-500 | Sources/GrAIdient/Layer2D/VQ2D.swift:1215-1248 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"abca5aaeeeae3e441d7db5c3899113482adeec0c672e4033e5491c8414bf6987"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 3): Sources/GrAIdient/Layer1D/FullyConnected.swift:564-595 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:455-487 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:430-461 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 473 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8ae59a5942046c710bc549f0dbf159936ee36bb03a705cfe0a01661727da5c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201333 lines \u00D7 2): Sources/GrAIdient/LayerSeq/VQSeq.swift:398-428 | Sources/GrAIdient/LayerSeq/VQSeq.swift:1133-1165 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/VQSeq.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"190957a5dc5032fc4da3b115fe1e51b4eda6119b4a8f7ba2de0e776d502b094b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): Sources/GrAIdient/Layer1D/Concat1D.swift:74-105 | Sources/GrAIdient/Layer1D/Concat1D.swift:155-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 \u0060Sources/GrAIdient/Layer1D/Concat1D.swift:74\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"134c552f4a439bcca7be436a3b97582f6a37e85d434c2a38ac210d1f0b90b73d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): Sources/GrAIdient/Layer2D/Convolution2D.swift:1163-1194 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:610-641 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 499 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:1163\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"34fc15113220ed4d53c54fd99d8034474c25247af6cb4a2b9996d3aa9aba8248"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ConcatSeq.swift:86-128 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:173-215 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ConcatSeq.swift: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":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac76904b6238e57e35bfefb00e228a88ed1d4fd808edd0bac71578d99c9647f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ConcatSeq.swift:518-560 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:605-647 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ConcatSeq.swift:518\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfff09a5b023ec1ed13ad45239192c69cabbc4f460a39db2e56572c01d2ce1ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 3): Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift:220-250 | Sources/GrAIdient/Layer2D/Base/LayerMerge2D.swift:278-308 | Sources/GrAIdient/LayerSeq/Base/LayerMergeSeq.swift:223-253 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Base/LayerMerge2D.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 129 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd46213e763a16d6be5e12951988afcf5c4fc3bb81f0735c810d04d3eac7125f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): Sources/GrAIdient/Layer1D/Dropout1D.swift:171-201 | Sources/GrAIdient/Layer1D/Dropout1D.swift:217-247 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Dropout1D.swift:171\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Dropout1D.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b15bc881b0f5abb6f0bfa6aafb1dead5b42dfe19c8917cae6971ab0408bf018"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): Sources/GrAIdient/Layer2D/Convolution2D.swift:609-639 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:205-235 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 499 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:609\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"21981323a8e1553e0d10ba31b3108b41626d28d1949b6ae9ff813096e9d258ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 3): Sources/GrAIdient/Layer2D/BCE2D.swift:55-84 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:58-87 | Sources/GrAIdient/Layer2D/MSE2D.swift:53-82 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/BCE2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/BCESigmoid2D.swift\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCE2D.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"316743f94bdef97ab7282f7ff54acb1676106d960ba37bb52a9c841208d6f5e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2128-2156 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2809-2838 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2128\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":2128}}}],"partialFingerprints":{"codehealthFindingId/v1":"6861f02c0869cc5a3649642b9d5ea7cae864f5a1497ec903a1bf82ed38c73f09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): Sources/GrAIdient/Layer2D/BN2D.swift:529-558 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:453-482 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/BN2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/InstanceNorm2D.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 320 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/BN2D.swift:529\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BN2D.swift"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23dad505a36a36c82354ed08cd6e59496663039f75b699b38c08096aeee4519"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): Sources/GrAIdient/Layer2D/Convolution2D.swift:946-975 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:383-412 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 499 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:946\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3a1003fd21b4539aa6094628185c1f5a15bfa2f32d4ded8aa2c86b5fdc62cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 11): Sources/GrAIdient/Layer1D/Activation1D.swift:308-336 | Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:349-377 | Sources/GrAIdient/Layer1D/Input1D.swift:399-427 | Sources/GrAIdient/Layer2D/Activation2D.swift:321-349 | Sources/GrAIdient/Layer2D/BN2D.swift:662-690 | Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:409-437 | Sources/GrAIdient/Layer2D/Input2D.swift:505-533 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:586-614 | Sources/GrAIdient/LayerSeq/ActivationSeq.swift:318-346 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:581-609 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:595-623 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Activation1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Activation1D.swift:308\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer1D/Activation1D.swift:304\u0060 calls \u0060backwardGPU\u0060 and \u0060Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:343\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Activation1D.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2c4bfa2a158c64964301c4b460280c9499cbb2141259f085aaf09a6e3b3998"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): Sources/GrAIdient/Layer1D/FullyConnected.swift:368-396 | Sources/GrAIdient/Layer1D/FullyConnected.swift:420-448 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:368\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e5fec8e6476275e0102a775019e0a7454295dac3bbe9bf782c3428367d1026"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): Sources/GrAIdient/Layer2D/BCE2D.swift:360-388 | Sources/GrAIdient/Layer2D/BCE2D.swift:402-430 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/BCE2D.swift:360\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCE2D.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"c110fa7024d402338a79ec4c17f5cc1f2d64ad67c473459141d593e71fbf42be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): Sources/GrAIdient/Layer2D/Convolution2D.swift:1478-1505 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:850-878 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 499 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:1478\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1478}}}],"partialFingerprints":{"codehealthFindingId/v1":"330642f7357170bc7353f074bf5ee4179feef107eed18be5caf23b6c73d4fdff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): Sources/GrAITestsUtils/Trainer.swift:866-893 | Sources/GrAITestsUtils/Trainer.swift:971-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAITestsUtils/Trainer.swift:866\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAITestsUtils/Trainer.swift"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c51efd3ed6cf8d74e0a5d14a939e33d47ef8c6f1a18b54154ae3572a2c60454"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): Sources/GrAIdient/Layer2D/Multiply2D.swift:420-447 | Sources/GrAIdient/LayerSeq/MutiplySeq.swift:385-412 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Multiply2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/MutiplySeq.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Multiply2D.swift:420\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d68b0fed4ba0a7d71d0a7fbb70748dea64d2cd17fffc2811837a0fe63b034d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1047-1074 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:920-947 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 760 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1047\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eec6b7f026b68aa1b5d4cdfe3593ca6f565d42c820249f3e04242f444f6c4f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 4): Sources/GrAIdient/Layer1D/BCE1D.swift:52-78 | Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:55-81 | Sources/GrAIdient/Layer1D/LinearError1D.swift:50-76 | Sources/GrAIdient/Layer1D/MSE1D.swift:50-76 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/BCE1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/BCESigmoid1D.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 218 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/BCE1D.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41d6fb5829645c4eed938e165528748c71dda26b48965e2084760f85066032a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1769-1795 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1803-1829 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1769\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1769}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bbd8f128f6a0bfad36d056263544e29d649892ba98721b7c5d8632ce21aec97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): Sources/GrAIdient/Layer1D/Constant1D.swift:481-507 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:989-1015 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Constant1D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 267 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Constant1D.swift:481\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift:988\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer1D/Constant1D.swift:480\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a56d4506963615e243ffa1c4244b25c8174215a56a123aa656e42336513ef78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 2): Sources/GrAIdient/Layer2D/Convolution2D.swift:1038-1064 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:475-499 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 499 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:1038\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1038}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4fc503e141352ebe31738f591081896fd8f372613e14dde23d32b4e54a86011"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:453-479 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:467-493 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/LayerNormSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/RMSNormSeq.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/LayerNormSeq.swift: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":"Sources/GrAIdient/LayerSeq/LayerNormSeq.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f27330397c9465ae902dbf86df8169b65196364e5278f69830b45222ca89a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:1411-1437 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1540-1566 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:1411\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:1537\u0060 calls \u0060download\u0060 and \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:1409\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1411}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b679354b5d8e47af78acbff44547a3580c283115da3c02c184a2a774faac8e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): Sources/GrAIdient/Layer2D/VQ2D.swift:690-715 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:663-688 | Sources/GrAIdient/LayerSeq/VQSeq.swift:613-638 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 97 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/VQ2D.swift: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:687\u0060 calls \u0060UInt32\u0060, \u0060Float\u0060 and \u0060Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:662\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"e55da80654135074bb25dba36ca680cc3aee4675daa7720e45b07cb0d1ac10f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1704-1729 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1737-1762 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1704\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1704}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c8ff0966f0b98777f8716714fb334e6fc046684516e77bb517a2268c9f5c34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): Sources/GrAIdient/Layer2D/VQ2D.swift:883-908 | Sources/GrAIdient/LayerSeq/VQSeq.swift:803-828 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 378 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4f568f5df32fe86d70d0ce8748e8acd159ee30484cb765f687b7b1f1aeaecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 4): Sources/GrAIdient/Layer1D/FullyConnected.swift:1295-1319 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1891-1914 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1373-1397 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1257-1281 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ccfd60623d60fae712cad8158b9f3b9b23cfd578b37fb78417ca736014b928a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): Sources/GrAIdient/Layer2D/BCE2D.swift:332-356 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:375-399 | Sources/GrAIdient/Layer2D/MSE2D.swift:328-352 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/BCE2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/BCESigmoid2D.swift\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/BCE2D.swift:332\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCE2D.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"511ea3d758641370f6f133abc4ad2222b8a1160bf7c90b020c6929a5e3429c23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Sources/GrAIdient/Layer1D/Sum1D.swift:91-115 | Sources/GrAIdient/Layer1D/Sum1D.swift:164-188 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Sum1D.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef61e912e1a5797e2d737b82356b9c9abe7c7a776bb0b4de39f901a01b04a66c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:403-427 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:441-465 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/BCESigmoid2D.swift: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCESigmoid2D.swift"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"141298da8aa9202f6dad318aaff16d41f6cfa536122d14bdea92fb6ba4bc24d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): Sources/GrAIdient/Layer2D/Convolution2D.swift:1131-1153 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:575-599 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 499 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:1131\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc2c0ca65ca644185837f7d5a044e561d3ee5657cd79dfb3a76fde49d940e15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:369-393 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:462-486 \u2014 both copies are in the same file, so extract the block 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, \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:395\u0060 calls \u0060Double\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:488\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa83d142df3e0026f1618452934902ed948ba6eab38a496f9f28517974ccd316"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Sources/GrAIdient/Layer2D/VQ2D.swift:727-751 | Sources/GrAIdient/LayerSeq/VQSeq.swift:650-674 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 378 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:727\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab63682aecdf498bdf8c977db89fb7921da299cf0aec72fab70f9430e76bbcdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201325 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:184-205 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1428-1452 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:184\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e7165b4543f1e305b94f8c5f4ca978ab3845426bf97fad0bf31c07158e1ee83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 6): Sources/GrAIdient/Layer2D/AdaIN.swift:251-274 | Sources/GrAIdient/Layer2D/AdaIN.swift:369-392 | Sources/GrAIdient/Layer2D/Multiply2D.swift:173-196 | Sources/GrAIdient/Layer2D/Multiply2D.swift:263-286 | Sources/GrAIdient/Layer2D/Sum2D.swift:95-118 | Sources/GrAIdient/Layer2D/Sum2D.swift:185-208 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Multiply2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Sum2D.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/AdaIN.swift:251\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaIN.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"239e3a1167f76b9c408236a3b1bc72037279f9b157da27441d0f9e278eb5dfc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): Sources/GrAIdient/Layer1D/BCE1D.swift:261-284 | Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:284-307 | Sources/GrAIdient/Layer1D/MSE1D.swift:257-280 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/BCE1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/BCESigmoid1D.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 218 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/BCE1D.swift:261\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/BCE1D.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cdf705e0b4ee6f92d8f3bb04e7d0d46c7a79ecf094a786dea16b50fee2ce1bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): Sources/GrAIdient/Layer2D/Activation2D.swift:285-308 | Sources/GrAIdient/Layer2D/BN2D.swift:625-648 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:549-572 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Activation2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/BN2D.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Activation2D.swift:285\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Activation2D.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b1ffdfab3ef2fe4e7ddf42264f46f5a2aa058ef9abf673d17bcaf94a1a6d02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:349-372 | Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:482-505 | Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:696-719 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:349\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:374\u0060 calls \u0060get\u0060 and \u0060Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:721\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"d933cceb88acb933c31e6e09421ca66306aa8a4d5806fbcb55539662e36d01a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): Sources/GrAIdient/Layer2D/BN2D.swift:293-316 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:218-241 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:217-240 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/BN2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/InstanceNorm2D.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 320 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/BN2D.swift:293\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BN2D.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ced9ea03f547001eba2115dd60285e28ddb0b9942f10982a2da10b01315ff9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Sources/GrAIdient/Layer1D/Constant1D.swift:530-553 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:1038-1061 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Constant1D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 267 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e5b89c5d501650df31ef5392a5dfc096a1c681481d9b7c53aa4bd44dec748a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:373-394 | Sources/GrAIdient/Layer2D/Input2D.swift:470-493 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Input2D.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d4f5129fe4f3b2f46e43b0e04e15aa0cfe590cf4087a8458560fa587e16169"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Sources/GrAIdient/Layer2D/SimilarityError2D.swift:478-501 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:718-741 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/SimilarityError2D.swift: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/SimilarityError2D.swift:715\u0060 calls \u0060Float\u0060, \u0060UInt32\u0060 and \u0060Sources/GrAIdient/Layer2D/SimilarityError2D.swift:476\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityError2D.swift"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"9815e8b0bfb5d402ba7457ab3f93ba6e4b2ce16104ca03cab52d23daaf3d89ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Sources/GrAIdient/Layer2D/VQ2D.swift:1085-1108 | Sources/GrAIdient/LayerSeq/VQSeq.swift:1005-1028 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 378 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:1085\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d3ab2c3f5ff941bc2438b96ab80bd9b9a61c2a3d1715452163960bed78a59e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:273-296 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:250-273 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 760 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:273\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it 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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"10bf4ea24a667c06bb1283bbd895bdd4c5b77f9e7df8bcc7acd6813a6b77b593"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:320-343 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:296-319 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 760 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:320\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it 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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e994d417a6302fa1211c731d946b1abf0233c4467ce83276d201d62a9088e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:392-415 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:395-417 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:392\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:418\u0060 calls \u0060get\u0060 and \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:415\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0949b7ad356546c0a2615afa7c4c14cbea70a3aba9477890bc553051eba100"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:1759-1782 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1753-1776 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:1759\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1759}}}],"partialFingerprints":{"codehealthFindingId/v1":"3608e627e8eb795a684d5f58ba0e7cb6683155bd56230312299564ff57ee456b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 6): Sources/GrAIdient/Layer2D/BCE2D.swift:104-124 | Sources/GrAIdient/Layer2D/BCE2D.swift:174-194 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:107-127 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:197-217 | Sources/GrAIdient/Layer2D/MSE2D.swift:102-124 | Sources/GrAIdient/Layer2D/MSE2D.swift:172-192 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/BCE2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/BCESigmoid2D.swift\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/BCE2D.swift:104\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCE2D.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c30a50aa77dcb1250d349a356bc81d4262ac6a13085679cec2161a9c3305ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:275-297 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:322-344 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:252-274 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:298-320 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 760 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:275\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"82945dae69ebd422ab008a390c197bda4e745c04e2e0f0af180629e1384eda05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): Sources/GrAIdient/Layer1D/Sum1D.swift:342-364 | Sources/GrAIdient/Layer2D/Sum2D.swift:393-415 | Sources/GrAIdient/LayerSeq/SumSeq.swift:354-376 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Sum1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Sum2D.swift\u0060 as WHOLE FILES: this scan already matched 4 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 \u0060Sources/GrAIdient/Layer1D/Sum1D.swift:342\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Sum1D.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"411ce1f0d308ea6e506bf248248c036e7caf2ab8d4079229619e9ad340483162"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:281-303 | Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:421-443 | Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:653-675 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:281\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb824591b051b6422e132c000bc0b9301cb2cc3534911a5bf5471edb1f68bc23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): Sources/GrAIdient/Layer2D/BN2D.swift:250-272 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:175-197 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:174-196 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/BN2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/InstanceNorm2D.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 320 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/BN2D.swift:250\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BN2D.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba0a7c84967437e70c0aef9e0e0c8c6b4280fb75c3aacfbfb74e926f5311c0da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 3): Sources/GrAIdient/Layer2D/VQ2D.swift:727-748 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:699-721 | Sources/GrAIdient/LayerSeq/VQSeq.swift:650-671 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 97 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:727\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9d5a0eeeb1d5cb45165552ec3b72723450dbd428c67136988b2596e656ec6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): Sources/GrAIdient/LayerSeq/ActivationSeq.swift:283-305 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:545-567 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:559-581 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/ActivationSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/LayerNormSeq.swift\u0060 as WHOLE FILES: this scan already matched 8 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 \u0060Sources/GrAIdient/LayerSeq/ActivationSeq.swift:283\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ActivationSeq.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"e781be97aa8ffc8ad36fc694018acea604a450f7efdeef8f20d5ee96d35af874"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:58-80 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:83-105 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 252 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"869da20efc1fdf95ad52a05a7789600f0e3ebdd8545ca6b2822af09fd8098c35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Sources/GrAIdient/Layer2D/VQ2D.swift:223-245 | Sources/GrAIdient/LayerSeq/VQSeq.swift:213-235 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 378 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:223\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fceb84334766fad8ce5c29250f4bbc81418a7af04d57e71c9dffaa77ae8fd97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:187-208 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:231-253 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:187\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/RMSNormSeq.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba2c0302a910bb6260728a047918e3cd844aa3b7b79d45e24c392bea98d5159"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ValueSeq.swift:511-533 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1113-1135 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:511\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee2f6f980502e6d39b114ee7abee8bb5df86e2200df6d1b7765962517557f01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ValueSeq.swift:1447-1469 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1549-1571 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:1447\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:1546\u0060 calls \u0060download\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:1445\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":1447}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc02f2ce003dfcdce1689e4639a07b675c02e0d54cf270cd5f2c4d6a7664e7e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:404-425 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1207-1228 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2079-2100 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"da293032d906c33f3fa008840a81030bfd6810b65dcb5c4681498c13128b2144"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): Sources/GrAIdient/Layer1D/FullyConnected.swift:1267-1288 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1345-1366 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1229-1250 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 473 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa83fea0a0550f0f48e7a2b95b9bc565162140ba019dd06bfdd3e230acdc8f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): Sources/GrAIdient/Layer2D/BCE2D.swift:492-513 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:527-548 | Sources/GrAIdient/Layer2D/MSE2D.swift:462-483 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/BCE2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/BCESigmoid2D.swift\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/BCE2D.swift: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCE2D.swift"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac09f98e4704ee457d6c0526ba2180fed4b39aecbc4739c0f29ea564b3c469de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sources/GrAITestsUtils/Trainer.swift:344-365 | Sources/GrAITestsUtils/Trainer.swift:634-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAITestsUtils/Trainer.swift:344\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAITestsUtils/Trainer.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6cd465baaeb6380248d6e87eaf7ba46f61f768a0d4f6f72258fce512ef3dd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): Sources/GrAIdient/Layer2D/Convolution2D.swift:842-863 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:270-289 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 499 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:842\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"2681a590e3fa8ccc7ffd51e250bdd96b9121a25e030dda12910726de30132265"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): Sources/GrAIdient/Layer2D/Normalize2D.swift:246-267 | Sources/GrAIdient/Layer2D/Normalize2D.swift:666-686 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:246\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d1b9ffcf6a72ed7c4f4156d427709afcd08aaabddd6b7e5488d41cae12d3b81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sources/GrAIdient/Layer2D/SimilarityError2D.swift:421-442 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:650-671 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/SimilarityError2D.swift:421\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityError2D.swift"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52e195622e7391f04ebf87181a53f06b0b67e9ec273c57ab38af7b140b7c908"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ConstantSeq.swift:386-407 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:889-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 \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift:386\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConstantSeq.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"61cc5770ceb3f73f2a3fb0238818d12aa0bc2100f6e8ed9085dba21eeb79ff58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:394-415 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:408-429 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/LayerNormSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/RMSNormSeq.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:394\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/LayerNormSeq.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"652bdbca0a67688d0755468870019bc6f1cffb3c08fb11847805b6f229a166c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:148-169 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:240-261 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:263\u0060 calls \u0060download\u0060 and \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:171\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"a681ba881ca95fa2770566ee2e0b77657d084af7d6f5ee6f196aab0eec41c191"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:171-192 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:266-287 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:263\u0060 calls \u0060download\u0060 and \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:169\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b22d7be82f7ece75899a776b8ad2ce69535ad5703ffa4bebcc8a3c3ac25c8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ValueSeq.swift:1421-1442 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1520-1541 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:1421\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":1421}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce9e68e1de4695ea31df3983d836250cc450727a41c2dc9c4809e2809d81bd5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): Sources/GrAIdient/LayerSeq/MutiplySeq.swift:174-194 | Sources/GrAIdient/LayerSeq/MutiplySeq.swift:250-270 | Sources/GrAIdient/LayerSeq/SumSeq.swift:96-116 | Sources/GrAIdient/LayerSeq/SumSeq.swift:172-192 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/MutiplySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/SumSeq.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 153 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/MutiplySeq.swift:174\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/MutiplySeq.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e7d35e568f95c3e7a3242755cd3cff67c7f6d82d093d376612a1751900a6bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): Sources/GrAIdient/Layer1D/BCE1D.swift:368-388 | Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:387-407 | Sources/GrAIdient/Layer1D/MSE1D.swift:351-371 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/BCE1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/BCESigmoid1D.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 218 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/BCE1D.swift:368\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/BCE1D.swift"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8d66e3684fec51ebb559127fa1c6c9493d825f3ee2a5f50c3de70b86d118e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201339 lines \u00D7 3): Sources/GrAIdient/Layer1D/FullyConnected.swift:1123-1160 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1199-1237 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1084-1122 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 473 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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, \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1239\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:1162\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"4095479b61ecfb4ee71b9624b91a53d98fcabbbd506e507dc4d4bed995e15a04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerUpdate.swift:317-337 | Sources/GrAIdient/Core/Layer/LayerUpdate.swift:449-469 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerUpdate.swift:317\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerUpdate.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ad85ad7f9a9cb7de851e4ef3dbfc8c358742d39f7b0e4e92168089b92c9275"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerUpdate.swift:305-325 | Sources/GrAIdient/Core/Layer/LayerUpdate.swift:370-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 \u0060Sources/GrAIdient/Core/Layer/LayerUpdate.swift:305\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerUpdate.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"340a876c2e09f6622fdd8179c29e7d75bc47263c252b9bab994cd4bdded5da5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerUpdate.swift:381-401 | Sources/GrAIdient/Core/Layer/LayerUpdate.swift:517-537 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerUpdate.swift:381\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerUpdate.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"873ec80762e003e293c588d62d80d869409b7278c540240b42422d04ae60e576"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:317-335 | Sources/GrAIdient/Layer1D/Input1D.swift:368-388 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/Input1D.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"e55514937f78892abdb2b28011a16de641c5b9d6579f1b4bb100d556a5e1bf3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): Sources/GrAIdient/Layer2D/AdaIN.swift:332-352 | Sources/GrAIdient/Layer2D/AdaIN.swift:455-474 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/AdaIN.swift:332\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaIN.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c171a40b4eae7d74869bae73b621123bb16d55a8a06faadb8385b915337b8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:159-179 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:249-269 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:159\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCESigmoid2D.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8a1cbe4b3ec7e2803bb3e42ee7902771626a99e14af823b2cb5253012b6d91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sources/GrAIdient/Layer2D/BN2D.swift:471-491 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:395-415 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/BN2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/InstanceNorm2D.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 320 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/BN2D.swift:471\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BN2D.swift"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7df656cb2f65bf2b8c6c6c672255a8bd627c0c869e9f1dded8c5c8f0976a48f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): Sources/GrAIdient/Layer2D/Convolution2D.swift:917-936 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:352-372 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 499 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:917\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"560f720d62ec056e8396d1bc9de6ae5a89e70e0d227d751dcae5a1d0e7d46347"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:392-412 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:508-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, \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:414\u0060 calls \u0060Double\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:530\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d75efa212738119e0399993e5ff73477c1de24983460d666deb8bc9c7b3e914"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:549-569 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:875-895 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:549\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e584620d6341f0d4f1c4927f60e4e8cddbbe576778698c6a176bfadaf74863d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1176-1196 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1063-1083 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 760 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1176\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"b827ace9cf3741cd8650f6107608b29a77256c6266a552862f49fd099793cbe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 8): Sources/GrAIdient/Layer1D/BCE1D.swift:95-114 | Sources/GrAIdient/Layer1D/BCE1D.swift:139-158 | Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:98-117 | Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:152-171 | Sources/GrAIdient/Layer1D/LinearError1D.swift:93-112 | Sources/GrAIdient/Layer1D/LinearError1D.swift:136-155 | Sources/GrAIdient/Layer1D/MSE1D.swift:93-112 | Sources/GrAIdient/Layer1D/MSE1D.swift:136-155 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/BCE1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/BCESigmoid1D.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 218 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/BCE1D.swift:95\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/BCE1D.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7da0a5609d5b7503e34238c817d27c20b000d6a149f7ba16e8a325ff246688"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 4): Sources/GrAIdient/LayerSeq/ValueSeq.swift:175-193 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:269-287 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:739-758 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:841-860 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:175\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:266\u0060 calls \u0060download\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:173\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a8bb450117cedc55fb33ede54e18302c824d7572dcbbd92fe95ceeebd32e25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): Sources/GrAIdient/Layer1D/BCE1D.swift:209-228 | Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:232-251 | Sources/GrAIdient/Layer1D/MSE1D.swift:205-224 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/BCE1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/BCESigmoid1D.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 218 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/BCE1D.swift: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":"Sources/GrAIdient/Layer1D/BCE1D.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"1094a7f5f66f5bef5593aac820f8a9c2a0ddd6b043a73b6b156beaa39c962685"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): Sources/GrAIdient/Layer1D/FullyConnected.swift:168-187 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:75-94 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:67-86 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 473 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c8f53efb63b9dd3b6ac85d0fd24b358080bbb46ecfe1f8466389dfe82e9936"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): Sources/GrAIdient/Layer1D/FullyConnected.swift:1167-1186 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1245-1264 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1129-1148 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 473 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:1167\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"3130168c6f84bb295c883b2a6e97c331d0ab46e4cc0a97db01b42f01d5a410d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): Sources/GrAIdient/Layer2D/Constant2D.swift:409-428 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1164-1183 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:611-630 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Constant2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\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 \u0060Sources/GrAIdient/Layer2D/Constant2D.swift:409\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Constant2D.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"864d978ba48a1c1d4190aa86b8565a561323c9917f46e91381f2672e27e80b0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): Sources/GrAIdient/Layer2D/Deconvolution2D.swift:554-573 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:632-651 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:683-702 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift:554\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Deconvolution2D.swift"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6b02917cd20f70029a3e8f892ee0e151544342feacab90b543c19056c11da9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/GrAITestsUtils/Trainer.swift:808-827 | Sources/GrAITestsUtils/Trainer.swift:928-947 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAITestsUtils/Trainer.swift"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"4807528b01d212b59452c18f5212e35e6de9a96833c85d880b7798e661d1e5ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1320-1339 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1356-1375 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1320\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21fd0c3eeb7bd7e587aef6e8b521179f8d231cd6d588e014bb417c414c6ba15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/GrAIdient/Layer1D/Constant1D.swift:223-242 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:710-729 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Constant1D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 267 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"3397f6e21abd9fe77fa14df69cede633f0afe66dea84c7d0ad9daf7bf5401c9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/GrAIdient/Layer2D/Convolution2D.swift:893-912 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:324-343 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 499 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:893\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca5789b4ddb49f1b682d41ca5fe3c1fc2cb465a7cefa7b32fb9b17c5778b2472"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/GrAIdient/Layer2D/Multiply2D.swift:526-545 | Sources/GrAIdient/LayerSeq/MutiplySeq.swift:485-504 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Multiply2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/MutiplySeq.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Multiply2D.swift:526\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b99b59c0b1535b06554b3a368337c42bf0c6d2c0977209d1f160e9e90a93f26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/GrAIdient/Layer2D/SimilarityError2D.swift:215-234 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:306-325 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/SimilarityError2D.swift:215\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityError2D.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db3270a192a2c11af92086d0e53cc48ee71dcb235569b76a744b9b04aec9cf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:604-623 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:530-549 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 252 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:604\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f4128b85e268dcb3fd36bfe6135d147611f19dd3971bd87f177813bf986d246"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/GrAIdient/Layer2D/VQ2D.swift:836-855 | Sources/GrAIdient/LayerSeq/VQSeq.swift:757-776 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 378 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4eb058cf55cc85bd984f479c293b54caac7fc0c068573487a55a54c62611b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ConstantSeq.swift:839-857 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:713-732 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift:839\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConstantSeq.swift"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab462fc5b5e78da0de051d898ac64b7a9e35f607e6bdb126b839517ec8b9903"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:495-514 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:469-488 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 760 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a51341a43a098a3d141f815880de3df91a3aa47febdbd3513ae18372306848"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 5): Sources/GrAIdient/LayerSeq/ActivationSeq.swift:189-207 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:383-401 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:442-460 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:397-415 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:456-474 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/ActivationSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/LayerNormSeq.swift\u0060 as WHOLE FILES: this scan already matched 8 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:462\u0060 calls \u0060download\u0060 and \u0060Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:404\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ActivationSeq.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"4622dd833ced4b60e821c003da8d336f7dcea27843c42d05d251d373c8b80b64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:783-801 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1576-1594 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2435-2453 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:775\u0060 calls \u0060initStats\u0060 and \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1568\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f21631a4e3699ebcc3dd6f8073eaeb66fa09701cf642ee7b755856a26b9e9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 3): Sources/GrAIdient/LayerSeq/ValueSeq.swift:450-466 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1034-1052 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1958-1974 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:450\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"78188d8b11a8b8b5649395375a21fb79aeab934aa1d3485b428913f746ed6545"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/GrAITestsUtils/Trainer.swift:254-272 | Sources/GrAITestsUtils/Trainer.swift:397-415 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAITestsUtils/Trainer.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f2147b293eb5eab750cae594619d5f6a8aebaa0d4d4ba3e967ade2bcb83696"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:119-137 | Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:173-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 \u0060Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:119\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/BCESigmoid1D.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc17e9262694c2dd88fdcc503434db0ce529603850a2979ff15dfc2184061d34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/GrAIdient/Layer1D/Constant1D.swift:304-322 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:795-813 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Constant1D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 267 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Constant1D.swift:304\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc57b947f8cf1175afecbb87656b083dd9c96dff811a5a47e438163254dd432"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/GrAIdient/Layer1D/Constant1D.swift:346-364 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:841-859 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Constant1D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 267 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Constant1D.swift: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":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10407e706f5e153d74e1a054f2f896d5ab277acc389893b4a4d720e9c497966"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): Sources/GrAIdient/Layer1D/FullyConnected.swift:797-814 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:688-706 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 483 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:797\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18cf6331dd9cd2ed7fc118558e838a58e2482f1cbcbd718af1a2966ab91646c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/GrAIdient/Layer2D/AdaIN.swift:222-240 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:320-338 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/AdaIN.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/InstanceNorm2D.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaIN.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"57bd66d8ba1a2e5dd5cf5f51a914a669c00f3a4c9cc9bf66bdf4c469d4810719"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/GrAIdient/Layer2D/Multiply2D.swift:34-52 | Sources/GrAIdient/Layer2D/Sum2D.swift:23-41 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Multiply2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Sum2D.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac854b2f2b20a60186bc5902293b6918d8f20716c2ffa80bc11e13c9e3ade9cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:309-327 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:414-430 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:309\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"375e6033cceba0c88e0386e4753ed49ebd2d43d11f128692c93c6e505f1e36fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/GrAIdient/LayerSeq/MutiplySeq.swift:33-51 | Sources/GrAIdient/LayerSeq/SumSeq.swift:22-40 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/MutiplySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/SumSeq.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 153 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/MutiplySeq.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92cc3920d5325299fd9f783ade2c993528e62aa4afbe2b26cb15cbf0ceee114"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:405-423 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:436-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:405\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c37f10ef5a1189714ac860d704104ab970f55157431fcfd480d427bc6c77e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:1448-1466 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1587-1605 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:1448\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1448}}}],"partialFingerprints":{"codehealthFindingId/v1":"a00baf91dbc43de853eb7a9d1bba6f0f8262906fc8cfa33d8e688b77e2421ae0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ValueSeq.swift:189-207 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1463-1481 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"7631921a9137f9d48279d0f6fb260cc5b072f614d47d28cc8aa22be16d78af1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): Sources/GrAIdient/Layer2D/Convolution2D.swift:844-861 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1040-1057 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:270-287 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:475-492 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 499 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:844\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be023976c9576d877bfb2e0cb9db2176483f7bb775d7afc274dcd79c087e975"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:926-943 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1620-1637 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1664-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b85399e80db8c8af79e6eecf9bfa88c9bab3322e36b5795baf0c0dcab51db2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): Sources/GrAIdient/Layer1D/Sum1D.swift:260-277 | Sources/GrAIdient/Layer2D/Sum2D.swift:305-322 | Sources/GrAIdient/LayerSeq/SumSeq.swift:271-288 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Sum1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Sum2D.swift\u0060 as WHOLE FILES: this scan already matched 4 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 \u0060Sources/GrAIdient/Layer1D/Sum1D.swift:260\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Sum1D.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"597a83c08724a74447ee193fecdd5394afce442c71a5c752252213404a1d56b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): Sources/GrAIdient/Layer2D/BCE2D.swift:242-259 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:285-302 | Sources/GrAIdient/Layer2D/MSE2D.swift:238-255 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/BCE2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/BCESigmoid2D.swift\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCE2D.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65ea5dedbe70c2d6cae7bab06f6048801d77c76eb7115493a524ffadc94774d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): Sources/GrAIdient/Layer2D/BCE2D.swift:455-472 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:490-507 | Sources/GrAIdient/Layer2D/MSE2D.swift:425-442 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/BCE2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/BCESigmoid2D.swift\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCE2D.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"8106fdcc97f58a90e422fb7467fed5f0d1bf93e77940734fdf9b85abba67c1fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/GrAIdient/Layer1D/Constant1D.swift:345-362 | Sources/GrAIdient/Layer1D/FullyConnected.swift:820-837 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Constant1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Constant1D.swift: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":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"958e78951688452fd9a2f120faebef6651fccf7384ebf37a63307c7af3706c28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/GrAIdient/Layer1D/DotProduct1D.swift:159-176 | Sources/GrAIdient/Layer1D/DotProduct1D.swift:242-259 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift:159\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift:238\u0060 calls \u0060download\u0060 and \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift:156\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/DotProduct1D.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc737ba059cd1787270c992bfd0ec533ad0308d6876cf2d0f2208483112b3970"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:130-147 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:220-237 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:130\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCESigmoid2D.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f9f2708a46f32cae089adabeca0ca8fdcfd5f39f35f008eab36387acfdec3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Sources/GrAIdient/Layer2D/Input2D.swift:199-216 | Sources/GrAIdient/Layer2D/Input2D.swift:241-257 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Input2D.swift:199\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Input2D.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fff940ab4a673387b264391a90f979c928678e939f5b024102d1e73100f4b07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/GrAIdient/Layer2D/Multiply2D.swift:401-418 | Sources/GrAIdient/LayerSeq/MutiplySeq.swift:366-383 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Multiply2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/MutiplySeq.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Multiply2D.swift: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":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"8762287d7c44fa5d9f9112d3d74cae34ef35861ce8f57ed2022f5dba05c4bd10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:189-206 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:436-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 \u0060Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:189\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Flip2D.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"6207144af1609709c2b58275cd1b8241edc5e73f9fa37827ba45bb09c027f09f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:488-505 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:620-637 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"4502cd17c3756654fb38c8975d17ea9769872b09e62de439e3f022516d59d1a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:636-653 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:581-599 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 760 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:636\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d01e0f97eb0c8a35e6599f99b73a289bc5245e02c24fce0bd5d0398d997a29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:641-658 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:814-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 \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:641\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ada3ad930269c41247909b546d1547f0536ca95ef991e4e1fa6d164eb722fb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:809-826 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:717-735 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 760 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:809\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96e45523d0c8b2b92761d3b79add4fe9bcad4178837f4d61a4c6e8a056c1a14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/GrAIdient/LayerSeq/RoPESeq.swift:312-329 | Sources/GrAIdient/LayerSeq/RoPESeq.swift:389-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 \u0060Sources/GrAIdient/LayerSeq/RoPESeq.swift:312\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/RoPESeq.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21f4ac8d996806a5d836d23468a648e5bd64fcd832f54317bc41ea3c441d7a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 10): Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:276-291 | Sources/GrAIdient/Layer2D/Normalize2D.swift:87-103 | Sources/GrAIdient/Layer2D/Normalize2D.swift:444-460 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:210-225 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:129-144 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:136-151 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:393-408 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:96-111 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:124-139 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:133-148 \u2014 there are 10 copies across 8 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 10 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:276\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f97ea2abb4152d4b05f2d798c2a78b19115a55101bff4b9fdabea14ee9a1954"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 5): Sources/GrAIdient/LayerSeq/QuerySeq.swift:592-607 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1066-1082 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:33-48 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:586-601 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1199-1214 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:592\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3c4f799bb6b5334e530c873ad233bcb2787e490d6d6be3236fa34d0d2ca846"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): Sources/GrAIdient/Layer1D/Constant1D.swift:129-145 | Sources/GrAIdient/Layer2D/Constant2D.swift:136-152 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:130-146 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:615-631 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Constant1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Constant2D.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3497991f1962cd4a170c1ddde7fd203797a97a527733dfb28c439e9812c9809"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): Sources/GrAIdient/Layer2D/BN2D.swift:454-470 | Sources/GrAIdient/Layer2D/BN2D.swift:512-528 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:378-394 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:436-452 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/BN2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/InstanceNorm2D.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 320 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/BN2D.swift:454\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BN2D.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f9fbbb5b447f0dc43a575f7c83d3b43d0777245629af50d3076f930e2b0a83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): Sources/GrAIdient/LayerSeq/ConcatSeq.swift:163-179 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:595-611 | Sources/GrAIdient/LayerSeq/MutiplySeq.swift:238-254 | Sources/GrAIdient/LayerSeq/SumSeq.swift:160-176 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/ConcatSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/MutiplySeq.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ConcatSeq.swift:163\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"734cc04822544823d4dfab7fc2f30424707c9aa42db8023c3de17f0fa7e5623c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): Sources/GrAIdient/LayerSeq/ConstantSeq.swift:297-313 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:344-360 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:488-504 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:537-553 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift:297\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConstantSeq.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbceefad5aede0756f5a4c5cab994d946b49a4186173f80f46d56d802d74ba91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): Sources/GrAIdient/Layer1D/Activation1D.swift:180-196 | Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:232-247 | Sources/GrAIdient/Layer1D/SelectNeurons1D.swift:175-191 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Activation1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Activation1D.swift:180\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Activation1D.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f0d79e8d7cc41bbf73b36637809b97a5144c16e8ce1ee1911b254165cc5676"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): Sources/GrAIdient/Layer1D/FullyConnected.swift:324-340 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:230-246 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:208-224 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 473 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:324\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:229\u0060 calls \u0060encode\u0060 and \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:322\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b3c66debdab3510ad34b55e76045b0dcca917ed0103cc8498ec069043301f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): Sources/GrAIdient/Layer1D/FullyConnected.swift:700-716 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:635-651 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:580-596 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 473 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:700\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"3395a31924024bfa8aa8f9ce335081ab372fde4e28c629ac1d97e533f9aa46d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): Sources/GrAIdient/Layer1D/FullyConnected.swift:821-837 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:808-824 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:716-732 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 473 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:821\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"3931d2634f0f81b581168ee8eccc908dacfe042b8e28530a19bf42fa7280deba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): Sources/GrAIdient/Layer2D/BCE2D.swift:517-533 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:552-568 | Sources/GrAIdient/Layer2D/MSE2D.swift:487-503 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/BCE2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/BCESigmoid2D.swift\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/BCE2D.swift:517\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCE2D.swift"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e7f2f4bedf3be144137ac07d818d8a13cd7070a32972e157ab1fde6d4bebe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): Sources/GrAIdient/Layer2D/Convolution2D.swift:1114-1130 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1185-1201 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1230-1246 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:1114\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e0307e7590f2e8b5fc23006865ccbf7b6b133387044ce893d648c9ec75bd7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1052-1068 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1834-1850 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebecd498b54592e1bf1ca6403a8efd8671d7716ae151ff48bbb66ac313a1c5ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/GrAIdient/Layer1D/Concat1D.swift:145-161 | Sources/GrAIdient/Layer1D/Sum1D.swift:154-170 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Concat1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/Sum1D.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Concat1D.swift: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":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca9916ac5d3ea056211ddea758c492448a04efa166a2dd5ef849a7974a978fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/GrAIdient/Layer2D/Constant2D.swift:372-388 | Sources/GrAIdient/Layer2D/Constant2D.swift:418-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Constant2D.swift:372\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Constant2D.swift"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"3920220c775d88c8a7384c824eb2226b465fb638f7561def87c05e020db61eec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/GrAIdient/Layer2D/Constant2D.swift:542-558 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:977-993 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Constant2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 150 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Constant2D.swift:542\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Constant2D.swift"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cfe33061e4762c9d9988d20cfb8644ac8bf8b715cf76fe58aed580792335f97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/GrAIdient/Layer2D/Normalize2D.swift:183-199 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:196-212 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:183\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6872f97d006232187ae18ca0b24ab995c67351bfa1ec842d4575ee113828785"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:623-639 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:796-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 \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:623\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0290a810cfdde1b2fbfa2ffe0f701e58331bb82c7ec510f63aaa869906d4e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:1327-1343 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1377-1393 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1327}}}],"partialFingerprints":{"codehealthFindingId/v1":"60caf9ea980d3b16963c9ba1daa1abe47918bc95297f7b8944800e94a67a914b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 15): Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:256-271 | Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:272-287 | Sources/GrAIdient/Layer2D/MaxPool2D.swift:239-254 | Sources/GrAIdient/Layer2D/Normalize2D.swift:83-98 | Sources/GrAIdient/Layer2D/Normalize2D.swift:440-455 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:206-221 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:125-140 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:132-147 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:389-404 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:92-107 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:120-135 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:129-144 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:308-323 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:271-286 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:216-231 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/MaxPool2D.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:256\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:325\u0060 calls \u0060Double\u0060 and \u0060Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:289\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"96fdfa2070b24303ad84de984fad26f3ea3eb90dd0ba752c066556ebf0feb805"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 11): Sources/GrAIdient/Layer1D/Activation1D.swift:248-263 | Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:292-307 | Sources/GrAIdient/Layer1D/Input1D.swift:346-361 | Sources/GrAIdient/Layer2D/Activation2D.swift:259-274 | Sources/GrAIdient/Layer2D/BN2D.swift:597-612 | Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:348-363 | Sources/GrAIdient/Layer2D/Input2D.swift:448-463 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:521-536 | Sources/GrAIdient/LayerSeq/ActivationSeq.swift:257-272 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:517-532 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:531-546 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Activation1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer1D/Activation1D.swift:265\u0060 calls \u0060forwardGPU\u0060 and \u0060Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:308\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Activation1D.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc580de895043d8fec72079546c8fb4d15ef0b8cf571f9494f4cf8e52b53022"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:131-146 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:160-175 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:221-236 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:250-265 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:131\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCESigmoid2D.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db0cb132e58e76b7326bef391901791182b42684e5aef033828bc3b8cb839a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): Sources/GrAIdient/Layer2D/Multiply2D.swift:209-224 | Sources/GrAIdient/Layer2D/Multiply2D.swift:299-314 | Sources/GrAIdient/Layer2D/Sum2D.swift:131-146 | Sources/GrAIdient/Layer2D/Sum2D.swift:221-236 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Multiply2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Sum2D.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Multiply2D.swift: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":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c556283c8a425b704bd78e48e163979862273b1b2b0c508614f3b5ee24431f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201316 lines \u00D7 4): Sources/GrAIdient/LayerSeq/QuerySeq.swift:159-168 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:251-260 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1387-1402 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1513-1528 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:159\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:263\u0060 calls \u0060download\u0060 and \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:171\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa160defaa5530c1abe9d0f7abea1b1355cbb8a41b5d8b07e6bc05c41760953"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Sources/GrAIdient/Layer1D/BCE1D.swift:392-407 | Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:411-426 | Sources/GrAIdient/Layer1D/MSE1D.swift:375-390 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/BCE1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/BCESigmoid1D.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 218 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/BCE1D.swift: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":"Sources/GrAIdient/Layer1D/BCE1D.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e5e4cc35875e9800e724f3be509072c9336a65345450a852b9be45e39e53f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Sources/GrAIdient/Layer1D/Constant1D.swift:580-595 | Sources/GrAIdient/Layer2D/Constant2D.swift:653-668 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:1088-1103 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Constant1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Constant2D.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e0b82672df7e908c32ba7ecd068d8871f8c01fff83f6e1b6a4f47b0190073b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Sources/GrAIdient/Layer2D/Convolution2D.swift:1224-1239 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:548-563 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:677-692 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 499 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:1224\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"55576261a872f1cffaafaa67092868d2e21ad4cad04833fbb04aeee5e5f60928"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Sources/GrAIdient/LayerSeq/ActivationSeq.swift:227-242 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:486-501 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:500-515 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/ActivationSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/LayerNormSeq.swift\u0060 as WHOLE FILES: this scan already matched 8 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 \u0060Sources/GrAIdient/LayerSeq/ActivationSeq.swift:227\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ActivationSeq.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d13414336a5370ad093bcd9734531a500bf7eeab7e09c6c378240547ee7f42e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/GrAIdient/Core/Function/Normalization.swift:96-111 | Sources/GrAIdient/Core/Function/Normalization.swift:128-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Function/Normalization.swift:96\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it 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":"Sources/GrAIdient/Core/Function/Normalization.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"119455bc955b23acd8069ef01f0aa222b40e7a6b60a7ecf4b4e31e4e866c93ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/GrAIdient/Core/Optimizer/OptimizerAlgorithm.swift:221-236 | Sources/GrAIdient/Core/Optimizer/OptimizerAlgorithm.swift:444-459 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Optimizer/OptimizerAlgorithm.swift:221\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Optimizer/OptimizerAlgorithm.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"0defa8f31aaa43f7796c5d6a7390f95c870b010e8d5b7e62a6a589a90cdb47a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:174-189 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:228-243 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:174\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:244\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:191\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdfef639d02e6089ad5ab57f4de56017435987906818fd75b1efde48b4076765"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/GrAIdient/Layer1D/BCE1D.swift:181-196 | Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:204-219 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/BCE1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/BCESigmoid1D.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 218 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/BCE1D.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdf56b70d35928527707ccc7ed3046364bccfb98a97181d8548e51bc22c7557d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/GrAIdient/Layer2D/Convolution2D.swift:1068-1083 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:503-518 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 499 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:1068\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"292a67179d74a303bb84089ca4c8ec3e6586d1b7e0badd083073bf03d9325045"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/GrAIdient/Layer2D/MSE2D.swift:356-371 | Sources/GrAIdient/Layer2D/MSE2D.swift:385-400 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/MSE2D.swift:356\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/MSE2D.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d55a6d90197f079ac133a454693cf5be3cbaf56e7d2bc6de3714491fc592115"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/GrAIdient/Layer2D/Normalize2D.swift:561-576 | Sources/GrAIdient/Layer2D/Normalize2D.swift:716-731 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:561\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a40a1910057a1f13c2bc5aad35dc72dd69de365820949ddd202972b01bbc38f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/ColorJitterHSV.swift:93-109 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:36-51 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Transform/ColorJitterHSV.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/ColorJitterHSV.swift:93\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ColorJitterHSV.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"9756ccc096dbde047afe87ca387858a87a957df04628387b93bb6be9e9abaf69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:290-305 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:352-367 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0acad8c4090b85c188ad2b4c23b6ec571060ae8199df0f3caf4d4f09a7664de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/GrAIdient/Layer2D/VQ2D.swift:1281-1296 | Sources/GrAIdient/LayerSeq/VQSeq.swift:1198-1213 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 378 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:1281\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:1280\u0060 calls \u0060UInt32\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift:1197\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"74949ccc4a8e5869324984fff38da098169c223264a89310e04dc5c816456cfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ValueSeq.swift:155-170 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:246-261 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift: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":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0b60e224133c5a5a20ff3460c4321959af66ed40914a713155a61f4b73aced"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ValueSeq.swift:283-298 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1565-1580 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:283\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"8779a5c44f5cc94312c1840629b3a08bfa28a395bfd505241038f21cb6068177"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ValueSeq.swift:408-423 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:997-1012 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:408\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f0916fa97c3819213a94af11d947ed549efa712a9d423069ba8d4159a5a00e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 7): Sources/GrAIdient/LayerSeq/MutiplySeq.swift:168-182 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:128-142 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1350-1364 | Sources/GrAIdient/LayerSeq/SumSeq.swift:90-104 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:132-146 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:694-708 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1400-1414 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/MutiplySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/MutiplySeq.swift:168\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/MutiplySeq.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4e2f35556bda322703ffb0028c98f8c3014922284d5e467ac514182ec1700e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): Sources/GrAIdient/LayerSeq/QuerySeq.swift:219-233 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1473-1487 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:222-236 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:789-803 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1496-1510 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:219\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"602356126b5665c7b749c80b711d5cdc3939d46d3b5a8e9dc07f81310788c61c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): Sources/GrAIdient/Layer1D/FullyConnected.swift:572-586 | Sources/GrAIdient/Layer2D/Convolution2D.swift:778-792 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:463-477 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:438-452 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:572\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"be007dcea28e7bb50104fdd9279142fc6af208e3e69fd8091a5cb8deabf5a86d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): Sources/GrAIdient/Layer2D/Deconvolution2D.swift:296-310 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:334-348 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:441-455 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:734-748 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift: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":"Sources/GrAIdient/Layer2D/Deconvolution2D.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"057dc5b737bb11ed25d8201b80857f2584e8165df363340c7b926cbd0815151f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): Sources/GrAIdient/Layer2D/VQ2D.swift:479-493 | Sources/GrAIdient/Layer2D/VQ2D.swift:1225-1239 | Sources/GrAIdient/LayerSeq/VQSeq.swift:407-421 | Sources/GrAIdient/LayerSeq/VQSeq.swift:1143-1157 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 378 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:479\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"581760bdb88c88222fb3913a229b9f081437025da6f579e30b02a987ee9487fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Sources/GrAIdient/Layer1D/Constant1D.swift:487-501 | Sources/GrAIdient/Layer2D/Constant2D.swift:560-574 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:995-1009 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Constant1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Constant2D.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Constant1D.swift:487\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"02326dcb0e0231b18469e639f60b5fb9cd8a7f986dfd7230f4dd0075c4b69f96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Sources/GrAIdient/Layer1D/FullyConnected.swift:1088-1102 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1238-1252 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1122-1136 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 473 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:1088\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1235\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1119\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"97d2e7f317b8e8b0e4a058aa9403fc7bc73f57d5d7d1b41caf30ca741c5b9d71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:670-684 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:595-609 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:448-462 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 252 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:670\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d24db54efe6a57e54a2b559a9c2b0226177452021e34e66783900c88d574319"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Sources/GrAIdient/LayerSeq/QuerySeq.swift:415-429 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:446-460 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1922-1936 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:415\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef652b738f9adc03b0e0ad2d54f2e1647fe91a208784a5e668b916556b738f2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Sources/GrAIdient/LayerSeq/QuerySeq.swift:511-525 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:2032-2046 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:2024-2038 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:511\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e35adde3cc21e659c2613395b163f426cf45d63b891ae99cfffbc01a63e6324"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/GrAITestsUtils/Trainer.swift:314-328 | Sources/GrAITestsUtils/Trainer.swift:457-471 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAITestsUtils/Trainer.swift:314\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAITestsUtils/Trainer.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"8518870c0e5d60abae589af934c98df1816c230d9b87f38eeb192647aef361b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1914-1928 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1956-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1914}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab2f1e5dda3bb23d22b8e01a2b347566fe0c5039bcdf439c9a84710e3a28949"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:588-605 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:672-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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:692\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:609\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9d558c193a11900e6fce1a971997c1398af037a1f0e8e13e3c08daf65776aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/GrAIdient/Layer1D/Constant1D.swift:452-466 | Sources/GrAIdient/Layer2D/Constant2D.swift:523-537 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Constant1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Constant2D.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Constant1D.swift:452\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab46921646498e2513c10dea1d42bf42a830c945db1236f90c96f9a93cae652"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Sources/GrAIdient/Layer1D/Dropout1D.swift:261-275 | Sources/GrAIdient/Layer1D/Dropout1D.swift:316-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":"Sources/GrAIdient/Layer1D/Dropout1D.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"2219d58d1740dc9497314b5c654a8c748d60fe0e0512065257a3140cd8cb4643"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Sources/GrAIdient/Layer2D/Activation2D.swift:71-84 | Sources/GrAIdient/LayerSeq/ActivationSeq.swift:68-82 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Activation2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ActivationSeq.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Activation2D.swift:71\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Activation2D.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2ed1834c8ed5abed849832b78519ae51c6fa2513d04b8370e8c43eae372b05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/GrAIdient/Layer2D/Base/LayerInput2D.swift:56-70 | Sources/GrAIdient/Layer2D/Base/LayerInput2D.swift:122-136 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Base/LayerInput2D.swift:56\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/LayerInput2D.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ff7d88524b98589bfc8f68d3f88436ed163d35a5d8eecc002f86d044fc4002"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/GrAIdient/Layer2D/Concat2D.swift:132-146 | Sources/GrAIdient/Layer2D/Concat2D.swift:226-240 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Concat2D.swift: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":"Sources/GrAIdient/Layer2D/Concat2D.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a65b4eb403e253cae90efd3fa6a81bf028b2c7bcaa65818d878de9da581dc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/GrAIdient/Layer2D/Convolution2D.swift:1401-1415 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:773-787 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 499 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:1401\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"efe1e69b9eca247c3bd6a4c6f45d5ff4d95cc84bab5e6f2486b74912f56a4afe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:324-337 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:254-268 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Transform/Crop2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/Pad2D.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 178 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:324\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Crop2D.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07878915bb13c1166f75e8233e5ada8b1a6461f514e923f716b2a7f247b1989"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/GrAIdient/Layer2D/VQ2D.swift:184-198 | Sources/GrAIdient/LayerSeq/VQSeq.swift:174-188 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 378 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:184\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift:173\u0060 calls \u0060encode\u0060, \u0060Float\u0060 and \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:183\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cacc7c23b40262fd6876f4458c4c02c8bce21e5ce8e9d5ff48e820786e155e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ConcatSeq.swift:358-372 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:785-799 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ConcatSeq.swift: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":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"a946dfa9f44ec0e49d7bd6d9aa8d3efdeb65ee834a03a1cf6fcf50ad2d6644d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ConstantSeq.swift:275-289 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:780-794 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift:275\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConstantSeq.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b23ee89a0aa15d84f91a1cf3979f0f861f1bea8121df2e2e868c05b1ea9dca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ConstantSeq.swift:322-336 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:826-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 \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift: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":"Sources/GrAIdient/LayerSeq/ConstantSeq.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93d51d4b426dbdf3e148337b2aca43d8968fa0e9691b0d90e7a5ed4190d0713"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:577-591 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:745-759 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:577\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:743\u0060 calls \u0060download\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:575\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb3285bb6d43bb49e0cd4423d655fd627d8c6eec504c16a11a94eed3de6eaef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:493-507 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:521-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift: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":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e6267e1293be49b4c15419a019addd9754fe1152e96764163ac50c120a650b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:1945-1958 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1907-1921 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:1945\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1945}}}],"partialFingerprints":{"codehealthFindingId/v1":"83a0446baaae62a1bffa931cd8765d82d3961df7eab05cc61e9752e41dc94a42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/GrAIdient/Utils/Buffer.swift:125-139 | Sources/GrAIdient/Utils/Buffer.swift:153-167 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Utils/Buffer.swift:125\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Utils/Buffer.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4847105a527b1f594ac3449bf84d015e913a48bca3e6331531f514cc5a2fae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/GrAIdient/Utils/Image.swift:189-203 | Sources/GrAIdient/Utils/Image.swift:230-244 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Utils/Image.swift:189\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Utils/Image.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4c86c2a09521dc30d8992ed827e6c76985bca32e41421773c9a3248c688792"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 12): Sources/GrAIdient/LayerSeq/MutiplySeq.swift:170-183 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:130-143 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:221-234 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1352-1365 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1475-1488 | Sources/GrAIdient/LayerSeq/SumSeq.swift:92-105 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:134-147 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:224-237 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:696-709 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:791-804 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1402-1415 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1498-1511 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/MutiplySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/MutiplySeq.swift:170\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/MutiplySeq.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc5ef0508b21feda00462c353431f0294e0f46a136506ae8536c99e3f0b4dab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 8): Sources/GrAIdient/Layer2D/Convolution2D.swift:868-881 | Sources/GrAIdient/Layer2D/Convolution2D.swift:901-914 | Sources/GrAIdient/Layer2D/Convolution2D.swift:997-1010 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1285-1298 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:294-307 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:332-345 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:439-452 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:732-745 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 499 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:868\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"b208a1742646f086d8016329e08eb762f9592ee5ae64c8f3fbbed0083eeb06d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 7): Sources/GrAIdient/Layer1D/BCE1D.swift:222-241 | Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:245-264 | Sources/GrAIdient/Layer1D/LinearError1D.swift:214-233 | Sources/GrAIdient/Layer1D/MSE1D.swift:218-237 | Sources/GrAIdient/Layer2D/BCE2D.swift:288-309 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:331-352 | Sources/GrAIdient/Layer2D/MSE2D.swift:284-305 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/BCE1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/BCESigmoid1D.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 218 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/BCE2D.swift:287\u0060 calls \u0060UInt32\u0060 and \u0060Sources/GrAIdient/Layer1D/BCE1D.swift:221\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/BCE1D.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"c509c3cdf3183d0e1d5126c3b3f7cc520d06a9f365b6c761beb5d5845a7ba09a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 7): Sources/GrAIdient/Layer2D/Normalize2D.swift:293-306 | Sources/GrAIdient/Layer2D/Normalize2D.swift:769-782 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:304-317 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:316-329 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:289-302 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:276-289 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:480-493 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:293\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:291\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:287\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6419ee5337c1cbb13835d22ba2eff097337223c7657fb0638daefc892357f52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): Sources/GrAIdient/Layer1D/SelectNeurons1D.swift:310-323 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:677-690 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:602-615 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:455-468 | Sources/GrAIdient/LayerSeq/SelectSeq.swift:245-258 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1085-1098 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 252 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/SelectNeurons1D.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"9995636863942e57cfb03e36c38f502202dfc6350b0d004456eee9effdd3666f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 6): Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:503-516 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:629-642 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:377-389 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:436-448 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:391-403 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:450-462 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/LayerNormSeq.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:644\u0060 calls \u0060download\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:518\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca3e353a4fb4734ad81a00026b0ad7e0b8500a9da38a259ec7f6677ddd57abe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): Sources/GrAIdient/LayerSeq/ValueSeq.swift:202-215 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:304-317 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:769-782 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:877-890 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1476-1489 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1586-1599 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:202\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"2686e161389b0c5c50ed52ee01381df66af22294092e19bc9345c5414b5fda0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): Sources/GrAIdient/Layer2D/Deconvolution2D.swift:300-313 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:338-351 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:405-418 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:445-458 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:738-751 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift:300\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Deconvolution2D.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb964eb47687344e6070642ec1f409fb7a6e886522fbc1a45ac566e4a3ed7fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:603-616 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1418-1431 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2305-2318 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:603\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b685db1526b5bce496b559e5005573ca22808a155de2c2d4de1584978d0a661"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): Sources/GrAIdient/Layer1D/Constant1D.swift:529-542 | Sources/GrAIdient/Layer2D/Constant2D.swift:602-615 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:1037-1050 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Constant1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Constant2D.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Constant1D.swift:529\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f4f3799f4c4554a4338864f421da4ad4a61b650cecd94f90d34289188cc0cc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): Sources/GrAIdient/Layer1D/DotProduct1D.swift:122-135 | Sources/GrAIdient/Layer1D/DotProduct1D.swift:202-215 | Sources/GrAIdient/Layer1D/Sum1D.swift:89-102 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/Sum1D.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/DotProduct1D.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7ddade8d2dacd87a61268350c93562e606d97616ea272ffe19a6cfc6460a12d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): Sources/GrAIdient/Layer2D/Convolution2D.swift:971-984 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1006-1019 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1294-1307 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:971\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94396ba5c3e56f319dfcf525ee8fbdae30b92bf2a137bce853cc825e7bd9c7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): Sources/GrAIdient/Layer2D/MaxPool2D.swift:473-486 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:713-726 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:646-659 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/MaxPool2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/MaxPool2D.swift:473\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/MaxPool2D.swift"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8dde7cacb4a9a2e104b7d2c7ef8649b5c94e3b932dec8e275a4a43a8cba4441"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:563-576 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:647-660 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:563\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd534bcb47bd1e0532fb36c64ee54cd9d7fb4d31d9885efc4f51d530474be73f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:102-115 | Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:133-146 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:102\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e132bd03f3bab54bf2663d82c43ba9789a7d6ca4b6bf4b33ecc8329c825a33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/GrAIdient/Layer1D/DotProduct1D.swift:411-424 | Sources/GrAIdient/Layer1D/DotProduct1D.swift:438-451 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift:411\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/DotProduct1D.swift"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9c7e33c7030c6cee4140e0686e1187547a4a20694b10b4b0a1e16d8dac146b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/GrAIdient/Layer1D/Softmax1D.swift:33-46 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:34-47 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Softmax1D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Softmax1D.swift:33\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060layerPrev\u0060 to \u0060Layer1D\u0060 in one and \u0060LayerSeq\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Softmax1D.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ec3fbd55589cbb217e63c28874eef7b4589d7081beeb3c56827d66900758c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/GrAIdient/Layer2D/AvgPool2D.swift:249-262 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:352-365 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/AvgPool2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/SelectNeurons2D.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/AvgPool2D.swift:249\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:350\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer2D/AvgPool2D.swift:247\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AvgPool2D.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0c002f76bbf8e40edd2f7402ca1fbf6b57942482db95b01b1d12840e2515d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): Sources/GrAIdient/Layer2D/Base/LayerMerge2D.swift:102-113 | Sources/GrAIdient/LayerSeq/Base/LayerMergeSeq.swift:46-59 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Base/LayerMerge2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/Base/LayerMergeSeq.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Base/LayerMerge2D.swift:102\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/LayerMerge2D.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"63501c77a07d3656a8d119c09ba7befc999c0986e73384aa1f0f1efbeb4e6f88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/GrAIdient/Layer2D/Convolution2D.swift:1427-1440 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:795-808 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 499 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:1427\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1427}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7693634ea81bf89dfcdf0ec3ecf9ef532d151ecf9624fcfe11727d4b2a693c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/GrAIdient/Layer2D/Convolution2D.swift:1454-1467 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:822-835 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 499 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:1454\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1454}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe3066002a413d1f51ad6799376e7d39623a18c8a9c16ff7119503ffe073231"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:164-177 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:526-539 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/SimilarityError2D.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba1d086e3cb3db1c5d2332aa0b95c8d7fce13b199b7f86c3cb73c30ec6fb6482"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:219-232 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:581-594 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/SimilarityError2D.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:219\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4535e46d5898cda245c54b611282f471e090c62f58991d8a9b9edd3fe74ed5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:388-401 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:309-322 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Transform/Crop2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/Pad2D.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 178 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:388\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:385\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:306\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Crop2D.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f39d51f191580f6f9fdd528719fad623ad12c0f8bfe01b73ca4f347cbc24583"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:188-201 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:250-262 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:188\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc31213aa1f019b382360bc7f7dd223b546098ac8888776e5dbc329e3dd2ad10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:257-270 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:468-481 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/Flip2D.swift: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":"Sources/GrAIdient/Layer2D/Transform/Flip2D.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"0645a8610dbc366f8f0b3adbe572a687f77fa2b35862c0e03583b37447c38c8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ConcatSeq.swift:287-300 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:386-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 \u0060Sources/GrAIdient/LayerSeq/ConcatSeq.swift:287\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32f4fb366c7d5471a2912a31771d4dfbbd2b3ef429d26097fed454c4e86b0ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:529-542 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:689-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 \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:529\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:704\u0060 calls \u0060download\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:544\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"53e371b610d4813f1cd5b8e7537a71e5f922492244383653e16782cf4e22933a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:199-212 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:302-315 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:199\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c33013566fbabd7dc81b953fa980609bfcd7887a7847bf84cb68cb1108c5ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ValueSeq.swift:435-447 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1019-1032 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:435\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"f241d7159c76b5ef2dc5d3ef2ee2b9a5e03493f2073a07cee7f11686f19c48fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 14): Sources/GrAIdient/Layer1D/Activation1D.swift:317-328 | Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:358-369 | Sources/GrAIdient/Layer1D/Input1D.swift:408-419 | Sources/GrAIdient/Layer1D/Sum1D.swift:352-364 | Sources/GrAIdient/Layer2D/Activation2D.swift:330-341 | Sources/GrAIdient/Layer2D/BN2D.swift:671-682 | Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:418-429 | Sources/GrAIdient/Layer2D/Input2D.swift:514-525 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:595-606 | Sources/GrAIdient/Layer2D/Sum2D.swift:403-415 | Sources/GrAIdient/LayerSeq/ActivationSeq.swift:327-338 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:590-601 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:604-615 | Sources/GrAIdient/LayerSeq/SumSeq.swift:364-376 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Activation1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Activation1D.swift:317\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Activation1D.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df7600f9da7aae57e239899545048161690fa69e8d96af106e4f864be6f3e7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 14): Sources/GrAIdient/LayerSeq/MutiplySeq.swift:172-184 | Sources/GrAIdient/LayerSeq/MutiplySeq.swift:248-260 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:132-144 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:223-235 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1354-1366 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1477-1489 | Sources/GrAIdient/LayerSeq/SumSeq.swift:94-106 | Sources/GrAIdient/LayerSeq/SumSeq.swift:170-182 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:136-148 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:226-238 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:698-710 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:793-805 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1404-1416 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1500-1512 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/MutiplySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/MutiplySeq.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db6155a55bb336cab55207da9e5a658ff421c4afeafa7a5c5e2814bc0beb153"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 10): Sources/GrAIdient/Layer2D/BCE2D.swift:133-143 | Sources/GrAIdient/Layer2D/BCE2D.swift:203-213 | Sources/GrAIdient/Layer2D/BCE2D.swift:388-398 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:146-156 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:236-246 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:427-437 | Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:193-203 | Sources/GrAIdient/Layer2D/MSE2D.swift:131-143 | Sources/GrAIdient/Layer2D/MSE2D.swift:200-210 | Sources/GrAIdient/Layer2D/MSE2D.swift:371-381 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/BCE2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/BCESigmoid2D.swift\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/BCE2D.swift: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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCE2D.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e01346bf612e24d7ec220abaa2ebe9e9202e02f458f7e61aa5ebcba76b31196"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 10): Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:383-395 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1430-1442 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:798-810 | Sources/GrAIdient/Layer2D/Input2D.swift:480-494 | Sources/GrAIdient/Layer2D/Normalize2D.swift:254-269 | Sources/GrAIdient/Layer2D/Normalize2D.swift:674-688 | Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift:234-247 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:267-279 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:279-291 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:490-502 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Input2D.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:383\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"95785522a892b49bae6f80b2d8b7a33e95412b8b86686d383ad18176527d6101"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): Sources/GrAIdient/Layer1D/BCE1D.swift:384-396 | Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:403-415 | Sources/GrAIdient/Layer1D/MSE1D.swift:367-379 | Sources/GrAIdient/Layer2D/BCE2D.swift:509-521 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:544-556 | Sources/GrAIdient/Layer2D/MSE2D.swift:479-491 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/BCE1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/BCESigmoid1D.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 218 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/BCE1D.swift"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b4bcae679398aa8c052c4ddb13d33c59cc32fb07ec33f4953df4f0ea47d1e73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): Sources/GrAIdient/Layer1D/Constant1D.swift:488-500 | Sources/GrAIdient/Layer2D/Constant2D.swift:561-573 | Sources/GrAIdient/Layer2D/VQ2D.swift:762-774 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:996-1008 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:733-745 | Sources/GrAIdient/LayerSeq/VQSeq.swift:685-697 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Constant1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Constant2D.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Constant1D.swift:488\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e9c483ad26a998f9727809edfb2e8fc395046e7f376479d556d952bca977ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): Sources/GrAIdient/Layer2D/Activation2D.swift:228-240 | Sources/GrAIdient/Layer2D/BN2D.swift:565-577 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:489-501 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:153-165 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:168-180 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:187-199 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Activation2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/BN2D.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Activation2D.swift:228\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Activation2D.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc3ee3ae67829c064a336c677eb7665130ed84827883a9ac859c44429600b1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): Sources/GrAIdient/Layer2D/Activation2D.swift:192-204 | Sources/GrAIdient/Layer2D/BN2D.swift:460-472 | Sources/GrAIdient/Layer2D/BN2D.swift:518-530 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:384-396 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:442-454 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Activation2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/BN2D.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Activation2D.swift:192\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Activation2D.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d98d9e0ca9b22e17e2b8063e9ebaa17bcc257a4acdd531ef828be5339d69ee7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 4): Sources/GrAIdient/Layer1D/Activation1D.swift:182-194 | Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:234-245 | Sources/GrAIdient/Layer1D/SelectNeurons1D.swift:177-189 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:195-207 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Activation1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Activation1D.swift:182\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Activation1D.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e469ecf1367ab21f310bdd479e75d6f32c0a3ef5b2c8b54221c598710ad87a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): Sources/GrAIdient/Layer1D/Dropout1D.swift:426-438 | Sources/GrAIdient/Layer1D/LinearError1D.swift:306-318 | Sources/GrAIdient/Layer1D/Softmax1D.swift:321-333 | Sources/GrAIdient/LayerSeq/SelectSeq.swift:271-283 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Dropout1D.swift:426\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer1D/Dropout1D.swift:423\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer1D/Softmax1D.swift:318\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Dropout1D.swift"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b9f3aecb75a7f414b13c6a8bbf73e960240b658ec058bf8b1e06d38a474f15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): Sources/GrAIdient/Layer1D/FullyConnected.swift:1087-1099 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1156-1168 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1237-1249 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1121-1133 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 473 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:1087\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:1084\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1118\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a5c52db046bbfce88126edf32830249bd361f503629c38314a039108d31974"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 4): Sources/GrAIdient/Layer2D/Activation2D.swift:285-297 | Sources/GrAIdient/Layer2D/BN2D.swift:625-637 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:549-561 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:226-237 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Activation2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/BN2D.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Activation2D.swift:285\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/Activation2D.swift:283\u0060 calls \u0060backwardCPU\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:225\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Activation2D.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"32aa60e8e21dc90319a4621a6fd9cd5f6f0dbe7f942fb015fde3090cc839d85b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): Sources/GrAIdient/Layer2D/AdaIN.swift:111-123 | Sources/GrAIdient/Layer2D/BN2D.swift:213-225 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:138-150 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:137-149 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/AdaIN.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/InstanceNorm2D.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaIN.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e09fb6f7b126b221929b8ce944369c62444d1a5602bcd480a589db677d700b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): Sources/GrAIdient/Layer2D/Concat2D.swift:171-183 | Sources/GrAIdient/Layer2D/Multiply2D.swift:257-269 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:259-271 | Sources/GrAIdient/Layer2D/Sum2D.swift:179-191 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Concat2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Multiply2D.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Concat2D.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef1101398faaeba4ee52d40d7b023c9bf5338e636400b7a76e219c3fb1faee1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 4): Sources/GrAIdient/LayerSeq/QuerySeq.swift:405-416 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:436-447 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:850-862 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:884-896 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:405\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"151b74eeca2b3eb5e0f5ea30b0de9cbd4a56ce5b6ae92b4d7e2cf5bc9dd4606c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 3): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1030-1039 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1921-1933 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:3205-3217 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1921\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"b394ceeeddffd42fcb115242432ee0216d89777e9a11fccae57f0ff76f604973"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:300-312 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:372-384 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:455-467 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:387\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:316\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87889e34da77d268bb84722c9a93ae6c9244134fbe5e78c5ecb61f54a1fb8bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Sources/GrAIdient/Layer2D/Convolution2D.swift:897-909 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:328-340 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:544-556 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 499 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift:540\u0060 calls \u0060download\u0060 and \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:893\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf9acb8eebe654399e9a19ae7c45ad4146c9fe4c008d68175f698abd8beac67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Sources/GrAIdient/LayerSeq/QuerySeq.swift:473-485 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:473-485 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1059-1071 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift: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":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c121650daca55be6c433f7aa6fbca138f0b76e130b50e4bd22286b24e1c99a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:969-981 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1085-1096 \u2014 both copies are in the same file, so extract the block 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, \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:983\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1098\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c91a900e726fd7e529f61264c6aecb127b14d351428e95e0e405f45952cafd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2228-2240 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2870-2882 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":2228}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ae3a6073c290a55e7b3da52070d06c65022fe74fd124590b86d78c1123eeb09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2551-2563 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:3129-3141 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":2551}}}],"partialFingerprints":{"codehealthFindingId/v1":"1492768bf9154e4dd81689bd432ae661c38aaf3236becaceec89e25a82e66746"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:546-558 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:628-640 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:641\u0060 calls \u0060max\u0060 and \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:560\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"b903fea9ddcae4fb23bee063d192823e9f3bcb71f7257958aec0b2cc2a24daf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): Sources/GrAIdient/Layer1D/Activation1D.swift:221-233 | Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:270-279 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Activation1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Activation1D.swift:221\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Activation1D.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"b697b67861e0d590760def86a797189899c9693a5b0e026eaa0d4be993ba1957"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/GrAIdient/Layer1D/Concat1D.swift:113-125 | Sources/GrAIdient/Layer1D/Concat1D.swift:195-207 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Concat1D.swift:113\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea5bfe30068d18cf4b4b2f86a92bfefba9d75f9436815d447449a3a0f21868e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/GrAIdient/Layer2D/AvgPool2D.swift:73-85 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:191-203 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/AvgPool2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/SelectNeurons2D.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/AvgPool2D.swift:73\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AvgPool2D.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"9432683cc574c6121b5edb550ebb70e30e574bbc43adb6f7ebf1c27ecdedb345"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/GrAIdient/Layer2D/Base/Layer2D.swift:283-295 | Sources/GrAIdient/Layer2D/Base/Layer2D.swift:338-350 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Base/Layer2D.swift:283\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/Layer2D.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0b68ed4435d5b1f1ea33ca2850a261ae2da735eefb36f5c06b3848f4b75c16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/GrAIdient/Layer2D/Concat2D.swift:310-322 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:389-401 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Concat2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/SimilarityError2D.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer2D/Concat2D.swift:323\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer2D/SimilarityError2D.swift:402\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Concat2D.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"5780712c36c37225a0130101ca3f3b26ac01e0a5f7b585835fae9e01c96e8ee8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/GrAIdient/Layer2D/Convolution2D.swift:1098-1110 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:538-550 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 499 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:1098\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8499d041413090859dbe2c8cc0e4ac09e16b7ce52af969c041be3755df546bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:145-157 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:190-201 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift: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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97065672b6eea1e2e2794f3623fbbd58b0d0b94369fd6486c4c8d0e749026a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/FTFrequences2D.swift:153-165 | Sources/GrAIdient/Layer2D/Transform/FTFrequences2D.swift:191-203 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/FTFrequences2D.swift:153\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/FTFrequences2D.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f5b692fef227c391c12af9a0d03e430c301c127c0c2b0463b8726807683477"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/GrAIdient/Layer2D/VQ2D.swift:652-664 | Sources/GrAIdient/LayerSeq/VQSeq.swift:575-587 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 378 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:651\u0060 calls \u0060UInt32\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift:574\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"8927a48c30fa1e3338a07d9be7b64f2cdafe52d2c13f4ac7da103477f9538385"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/GrAIdient/Layer2D/VQ2D.swift:1339-1351 | Sources/GrAIdient/LayerSeq/VQSeq.swift:1256-1268 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 378 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:1338\u0060 calls \u0060UInt32\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift:1255\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a9d0721c6b298ebc7d5e18c7a83f31d1fdec2ffc07d939599a527a16590129"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift:73-85 | Sources/GrAIdient/LayerSeq/SelectSeq.swift:109-121 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/SelectSeq.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift:73\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0250aefc6527efd4af6130c2d66eb6d4188423119a2b593185b4ad2d17e6435"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:693-705 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:633-645 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 760 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a373d4748ae6affd6644ffd7bfa33735225af0c6d41146e16c8bef12a966e27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/GrAIdient/LayerSeq/MutiplySeq.swift:281-293 | Sources/GrAIdient/LayerSeq/SumSeq.swift:203-215 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/MutiplySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/SumSeq.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 153 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/MutiplySeq.swift:281\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/MutiplySeq.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa73ff36e5b811c9f39cf8e787c723c5b07e14264ab68823f9b08daafe3441d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ValueSeq.swift:243-255 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:813-825 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift: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":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"59696f71db8321d5f5ed76bc37e1c9169f5dbf66f68d5ff019fa825e245b358a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 9): Sources/GrAIdient/LayerSeq/ConcatSeq.swift:60-71 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:492-503 | Sources/GrAIdient/LayerSeq/MutiplySeq.swift:79-90 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:103-114 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1164-1175 | Sources/GrAIdient/LayerSeq/SumSeq.swift:68-79 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:107-118 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:667-678 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1290-1301 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/ConcatSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/MutiplySeq.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ConcatSeq.swift:60\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"0520d1de2e3dab8eb03348d1802a7b2d713d3b8e9223ab2e57e08a76f32754e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:263-274 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:333-344 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:544-555 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:626-637 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:263\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:348\u0060 calls \u0060max\u0060 and \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:279\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec84772406658471beb7601acf7a4aed392b30d39380ab5e32ec905607fc004"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): Sources/GrAIdient/Layer1D/Concat1D.swift:101-112 | Sources/GrAIdient/Layer1D/Concat1D.swift:182-193 | Sources/GrAIdient/Layer2D/Concat2D.swift:120-131 | Sources/GrAIdient/Layer2D/Concat2D.swift:213-224 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Concat1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Concat2D.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Concat1D.swift:101\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e5454908d94c475850552e207158d15687f910f1f77970197deeff9d56737f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): Sources/GrAIdient/Layer1D/FullyConnected.swift:1094-1105 | Sources/GrAIdient/Layer1D/FullyConnected.swift:1130-1141 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1206-1217 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1091-1102 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 473 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:1094\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1218\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:1142\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03494c3fe5683702827c1330577061a2b237f29e5150ac04918de12d8ee061b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): Sources/GrAIdient/Layer2D/Concat2D.swift:58-69 | Sources/GrAIdient/Layer2D/Multiply2D.swift:80-91 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:122-133 | Sources/GrAIdient/Layer2D/Sum2D.swift:69-80 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Concat2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Multiply2D.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Concat2D.swift:58\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Concat2D.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"086333d5af0784cbb4b392185a79fb459fa313a75f38d08bda0ee63fc6bcd655"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): Sources/GrAIdient/Layer2D/Transform/FTFrequences2D.swift:151-162 | Sources/GrAIdient/Layer2D/Transform/FTFrequences2D.swift:168-179 | Sources/GrAIdient/Layer2D/Transform/FTFrequences2D.swift:189-200 | Sources/GrAIdient/Layer2D/Transform/FTFrequences2D.swift:206-217 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/FTFrequences2D.swift:151\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/FTFrequences2D.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"5942d37927565b2a3712bdb08f05f386d96bad00f44fa7f2cfda3489e6448b27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): Sources/GrAIdient/LayerSeq/ActivationSeq.swift:184-195 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:699-710 | Sources/GrAIdient/LayerSeq/RoPESeq.swift:241-252 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:123-134 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/RoPESeq.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ActivationSeq.swift:184\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ActivationSeq.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"4074627cd6b523ef199b60e6c14ab04ba807807b25822eb81f0ee94d22407dd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 4): Sources/GrAIdient/LayerSeq/QuerySeq.swift:198-207 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:301-310 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1443-1454 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1582-1593 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:198\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc55649f511f43d15d8343d46021005289e55ea3ef81f15695dbaf14626c5e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): Sources/GrAIdient/LayerSeq/QuerySeq.swift:422-433 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:453-464 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1929-1940 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1969-1980 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:422\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2e3581fe23075ecc08ec12f589a965cdfcfd979bf516e6b0565958967e461e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): Sources/GrAIdient/LayerSeq/QuerySeq.swift:486-497 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:2005-2016 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:486-497 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1997-2008 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:486\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6e3c0f1d534f93bb1a4dceff738825fe993e03460aaeb550f891102002ef47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 4): Sources/GrAIdient/LayerSeq/ValueSeq.swift:154-164 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:245-255 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:716-727 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:815-826 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:154\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"973be4935425043da99af6e302f1ea283495d28c979e4faa07090e94631cc539"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1064-1075 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1846-1857 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2599-2610 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1064\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a00660e5424d7f3132448f270567999a6aff351ac55b4e8b779a14ef21ad74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Sources/GrAIdient/Layer1D/Concat1D.swift:48-59 | Sources/GrAIdient/Layer1D/DotProduct1D.swift:94-105 | Sources/GrAIdient/Layer1D/Sum1D.swift:65-76 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Concat1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Concat1D.swift:48\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"761288069ac5014ddfcec0585f0bf4b9f9d2984b386cc5cbe4ba13fb662c2a76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Sources/GrAIdient/Layer1D/Concat1D.swift:366-377 | Sources/GrAIdient/Layer2D/Concat2D.swift:410-421 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:829-840 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Concat1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Concat2D.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Concat1D.swift:366\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d0e44d60632c4b748b34fcf4a056d48d67e406c7582d9ab3e3d56762ba2df7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): Sources/GrAIdient/Layer1D/DotProduct1D.swift:154-165 | Sources/GrAIdient/Layer1D/Sum1D.swift:114-124 | Sources/GrAIdient/Layer1D/Sum1D.swift:187-197 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/Sum1D.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift:154\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/DotProduct1D.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"8213240608708ebb7e7c5f7ddb9ffb43ee4872e08553bbacb3312ca022157533"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Sources/GrAIdient/Layer1D/LinearError1D.swift:146-157 | Sources/GrAIdient/Layer1D/MSE1D.swift:146-157 | Sources/GrAIdient/Layer1D/MSE1D.swift:271-282 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/LinearError1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/MSE1D.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/LinearError1D.swift:146\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/LinearError1D.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"797eb300a54708240cabc3f1fe413fc9ccfde807d046d16adb05c5b55eddaeaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:331-342 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:461-472 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:629-640 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:331\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"0510f3b01f3cdb43525055638d62099700d92b2fb55948c41a9fa27c3f010cf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): Sources/GrAIdient/LayerSeq/QuerySeq.swift:150-159 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:242-251 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:716-727 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:150\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73f95abcc20abd6900aa44f93647069651f2b5f193dea356923bb70e029bff0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Sources/GrAIdient/LayerSeq/QuerySeq.swift:403-415 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:434-446 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:406-417 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:403\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:418\u0060 calls \u0060get\u0060 and \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:415\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"6befddf1decd490de0e804d6db8c3edb1cdc7b1cfb73a426d28fc2a7d04fa07e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Sources/GrAIdient/LayerSeq/RoPESeq.swift:263-274 | Sources/GrAIdient/LayerSeq/RoPESeq.swift:320-331 | Sources/GrAIdient/LayerSeq/RoPESeq.swift:397-408 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/RoPESeq.swift:263\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/RoPESeq.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa7875af7ad503041fcd4e6d0bbe9d07980a9818791c68fc396859393df436c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Sources/GrAIdient/LayerSeq/ValueSeq.swift:538-549 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1142-1153 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:2053-2064 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:538\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d383868fac7305e7831aa0c3756dceb1311d623942d281bd44bbc60df0526f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/Core/Function/Activation.swift:132-143 | Sources/GrAIdient/Core/Function/Activation.swift:177-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 \u0060Sources/GrAIdient/Core/Function/Activation.swift:132\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Function/Activation.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1218c08b007b0f7e2255a873f8c7c7245291179c24c0b584d7a687d1ba82c6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:473-483 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1264-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 \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:473\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d29dd5acee5444c3c814fa911293a5dff5d7e5fd1afac78db77486d61558927"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1015-1025 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1905-1916 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1015\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"1556c366b103fc064ef81c87c0b2a79da2900904dd5c195ed3b2e5f7bb945b7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2276-2287 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2915-2926 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2276\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":2276}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb11db99240c6cf132b027bc5203f42b9e0cd01e80e7eb21313bb30667ca69bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/Layer1D/Constant1D.swift:451-462 | Sources/GrAIdient/Layer1D/FullyConnected.swift:1072-1083 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Constant1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Constant1D.swift:451\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2463bcc8d13d85a4d2e8b32fc38301507e0e89b7c08774b409113367030362b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/Layer1D/DotProduct1D.swift:182-193 | Sources/GrAIdient/Layer1D/DotProduct1D.swift: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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift:182\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/DotProduct1D.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"87503d662e8b7d74a7e687bab6c7a63c5d92d2d15e3a0dd57480c94dd1977e02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/Layer2D/Deconvolution2D.swift:422-433 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:659-671 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift:422\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Deconvolution2D.swift"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b413e618375cdfc29601d1836ad867cc389ebfff242c5037328bba59cc82ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/Layer2D/LayerCAM2D.swift:189-200 | Sources/GrAIdient/Layer2D/Transform/ColorJitterHSV.swift:320-331 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/LayerCAM2D.swift:189\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/LayerCAM2D.swift:187\u0060 calls \u0060setBuffer\u0060, \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/ColorJitterHSV.swift:319\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/LayerCAM2D.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc30ccf3bde80bcec429a3fcd780808296aa9a97e8ca35582d67e7e9d036164c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/Layer2D/Normalize2D.swift:149-160 | Sources/GrAIdient/Layer2D/Normalize2D.swift:211-222 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:149\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"383e76cff5ddf08d28b55a41ee07ae8320103b55df8d6986e69b0b0a7fc944d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:187-198 | Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:215-226 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:187\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78ef4f2ab5142c73222c7d8ac501d4b76538e7de17ddd9983b984773ae32fc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/Layer2D/SimilarityError2D.swift:549-560 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:577-588 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/SimilarityError2D.swift:549\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityError2D.swift"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84c9b9a71f74748ffd9e0a1409f571579c597c7248098d10be1ea1c21fc3bbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:161-172 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:418-429 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:161\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Flip2D.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca130c08f44218cf63b5deb5445b0126471bc6a861709910c1157fc39b59bd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:199-210 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:170-181 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 252 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:199\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"322cc72308711d715920eca5a962fd772e272bea84e67776bf6a889d02ec9b7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:227-238 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:199-210 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 252 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:227\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:240\u0060 calls \u0060encode\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:212\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6d6f79f9e3a79bdbb8ebd745efc0d104f50552d740a411338e21703963c1c42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/Layer2D/VQ2D.swift:528-539 | Sources/GrAIdient/Layer2D/VQ2D.swift:1352-1363 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:528\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"c267f5a56dd504e49f471e9ba304eee2d286ecc0e0f419a554ff7c86b3393c29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ConcatSeq.swift:133-144 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:565-576 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ConcatSeq.swift:133\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3649ff200e6f1c13f71a6ab2bd1761dc438beb1b00ebfd4e819ffe35c6f61d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ConcatSeq.swift:379-390 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:806-817 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ConcatSeq.swift:379\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd9c0b1ec76778b2e1e19d3ad7404a806f0e7d9aa4fac531be64ffd1e11969f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ConcatSeq.swift:719-730 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:813-824 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ConcatSeq.swift:719\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"06bc834ea5a0d25bf18869f948decc6474c3932573be07419a21d25fe3cdfa06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:723-732 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:758-769 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:723\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb551dd4fca4c796150a31b63c42b9a7cc8a629f163e9cef9c7abf11fc29ad5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:761-772 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:826-837 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:761\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d99d817fd023de22cc7bd12b1640e5d4cabed529f0a429a8bd4ad0419d3373"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/LayerSeq/MutiplySeq.swift:204-215 | Sources/GrAIdient/LayerSeq/SumSeq.swift:126-137 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/MutiplySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/SumSeq.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 153 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/MutiplySeq.swift:204\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/MutiplySeq.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"3024843a7dc663c17ad6d6e8078369bc32095a18b111c60a7021e908bc81ddcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:338-349 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1632-1643 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:338\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"634bf32bfd8ae11c53d00ca793faefa0cf87fefa215702154394d6fe50c3212e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:539-550 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:2062-2073 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:539\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8bf7ce0ae7d7f95235ffe3ff70a0cf2c1183103d0280d9b09c8f4e0faec82a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:805-816 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:930-941 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c8efb25d57bd356d1cb865443f31b48871fbb8103339b809b201c147db39077"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/LayerSeq/VQSeq.swift:456-467 | Sources/GrAIdient/LayerSeq/VQSeq.swift:1269-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift:456\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/VQSeq.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a170ea04729529879b68c095772c42ed36ded08a1bf4cdc70f12084789b008f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ValueSeq.swift:1418-1428 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1610-1621 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:1418\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"1631e7e1196fba110399b54d48220a9658b2155ea7422b763460ccb770693cfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 13): Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:573-583 | Sources/GrAIdient/Layer2D/Constant2D.swift:471-481 | Sources/GrAIdient/Layer2D/Normalize2D.swift:193-203 | Sources/GrAIdient/Layer2D/Normalize2D.swift:610-620 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:310-320 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:232-242 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:243-253 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:206-216 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:210-220 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:240-250 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:590-600 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:516-526 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:381-391 \u2014 there are 13 copies across 12 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 13 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:573\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:572\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer2D/Constant2D.swift:470\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fc020b22bdaf26e12b5d1342ffa35a15b05940976e002d4940c79f44dddd96a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 8): Sources/GrAIdient/Layer1D/DotProduct1D.swift:330-340 | Sources/GrAIdient/Layer1D/Dropout1D.swift:344-354 | Sources/GrAIdient/Layer1D/FullyConnected.swift:915-925 | Sources/GrAIdient/Layer1D/Softmax1D.swift:244-254 | Sources/GrAIdient/Layer2D/AvgPool2D.swift:176-186 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:276-286 | Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift:166-176 | Sources/GrAIdient/LayerSeq/SelectSeq.swift:189-199 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 8 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer1D/Dropout1D.swift:342\u0060 calls \u0060setBuffer\u0060, \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer1D/Softmax1D.swift:243\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/DotProduct1D.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a7c865e7510492faad7590796f12fe71aef7df4d3947cf53be6cf831f964c39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 8): Sources/GrAIdient/Layer2D/Normalize2D.swift:181-187 | Sources/GrAIdient/Layer2D/Normalize2D.swift:538-548 | Sources/GrAIdient/Layer2D/Normalize2D.swift:595-601 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:218-224 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:194-200 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:196-202 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:224-230 | Sources/GrAIdient/Layer2D/VQ2D.swift:512-518 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:549\u0060 calls \u0060UInt32\u0060 and \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:189\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8eb9bdef64a2317154a94909392a53de90cd7323327f5001b4fcc2a03bd0714"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 8): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:531-542 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:691-702 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:505-516 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:631-642 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:379-389 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:438-448 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:393-403 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:452-462 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 760 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:704\u0060 calls \u0060download\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:544\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8bcf466502229ca8c467b230c58838b490f77098367533f1cf66707f5fcfa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 6): Sources/GrAIdient/Layer2D/Activation2D.swift:232-242 | Sources/GrAIdient/Layer2D/BN2D.swift:569-579 | Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:323-333 | Sources/GrAIdient/Layer2D/Input2D.swift:423-433 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:493-503 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:172-181 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Activation2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/BN2D.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Activation2D.swift:232\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Activation2D.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7cdc9d53a571ba6594f0d11fc33756e1fd48949a59e1ad5bf234f34dc4b2788"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): Sources/GrAIdient/LayerSeq/ConstantSeq.swift:401-411 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:904-914 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:259-269 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:382-392 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:961-971 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1877-1887 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift:401\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:379\u0060 calls \u0060setBuffer\u0060, \u0060setBytes\u0060 and \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift:400\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConstantSeq.swift"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c6ffd6bf8c5a90fa7c0eefa6834130912fc621280f53ca4a58ebe0ec4637a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): Sources/GrAIdient/Layer1D/Activation1D.swift:184-195 | Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:236-246 | Sources/GrAIdient/Layer1D/Dropout1D.swift:217-228 | Sources/GrAIdient/Layer1D/SelectNeurons1D.swift:179-190 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:197-208 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Activation1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Activation1D.swift:184\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer1D/Dropout1D.swift:215\u0060 calls \u0060download\u0060 and \u0060Sources/GrAIdient/Layer1D/Activation1D.swift:182\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Activation1D.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"0488a14b3ef3536d4c838b22edbddedcce47cb239151bd3e397a3491ed7e421d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:940-950 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:379-389 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:828-838 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1307-1317 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1882-1892 \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 \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:940\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"c172f6dd0d32f3eb76c61896a21cc1459f6b0ee50f6119c1c97ca4a251f10f9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1070-1080 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1100-1110 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1852-1862 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1890-1900 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1070\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1889\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1069\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"307cf780ec0b1cf8dab2d048e9e43334e6841c1f6286f98402fba24165362685"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): Sources/GrAIdient/Layer1D/Concat1D.swift:363-373 | Sources/GrAIdient/Layer2D/Concat2D.swift:407-417 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:401-411 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:826-836 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Concat1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Concat2D.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"541d98f69af6c83c1e63c75bef24f1c8012aa76e69919dc6f78d2f60c4fe8c84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): Sources/GrAIdient/Layer2D/Convolution2D.swift:895-905 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1102-1112 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:326-336 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:542-552 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 499 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:895\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:1100\u0060 calls \u0060download\u0060 and \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:893\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd2d08d1f12b08b478c757d156909e02a575a766c9ab8b23630036bae94e034"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): Sources/GrAIdient/Layer2D/Convolution2D.swift:995-1005 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1222-1232 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:437-447 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:675-685 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 499 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:995\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a22bea00fe381597f8a1c76c938efc70174206a5f18e77a58e0f33df00ea67c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sources/GrAIdient/Layer2D/Concat2D.swift:105-115 | Sources/GrAIdient/Layer2D/Concat2D.swift:128-138 | Sources/GrAIdient/Layer2D/Concat2D.swift:198-208 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Concat2D.swift:105\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Concat2D.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6dc1ce7d8e6bbc583994e24c77182b155666d9a33c8d6b14b45ad72fe9b369d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sources/GrAIdient/Layer2D/Constant2D.swift:493-503 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1487-1498 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:860-871 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Constant2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\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 \u0060Sources/GrAIdient/Layer2D/Constant2D.swift: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":"Sources/GrAIdient/Layer2D/Constant2D.swift"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc77a75b4ed261227a98b260a6b0d3e70b11d2f21c48bcec0ff29493f365081"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/GrAITestsUtils/Trainer.swift:848-858 | Sources/GrAITestsUtils/Trainer.swift:861-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAITestsUtils/Trainer.swift"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"d14064cbe15d965dd05216c995f2606ebd6096ea31f4a975d3c9f2e3e533a562"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/GrAIdient/Core/Function/Activation.swift:933-943 | Sources/GrAIdient/Core/Function/Activation.swift: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":"Sources/GrAIdient/Core/Function/Activation.swift"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf3099bd5d7f9691040e9220248f03957e78a80f39c6f8a300c9aff52a6eba83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/GrAIdient/Layer1D/Activation1D.swift:219-229 | Sources/GrAIdient/Layer1D/SelectNeurons1D.swift:214-224 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Activation1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/SelectNeurons1D.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Activation1D.swift:219\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Activation1D.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"799abaefa6b3e193026b8c84a3b7ba84074c744f4f166529f69136e24109b8c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/GrAIdient/Layer1D/FullyConnected.swift:636-646 | Sources/GrAIdient/Layer1D/FullyConnected.swift:747-757 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:636\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:759\u0060 calls \u0060download\u0060 and \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:648\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"37912e7cf6c8e35ff5df0d59f1247ec11679a471178e2e014f25b1f6e704eac1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/GrAIdient/Layer1D/LinearError1D.swift:296-306 | Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:333-343 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/LinearError1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/LinearError1D.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"589bddcffd61573dc444897dee97bef309cb651723a1201c3ae9d13be5b91994"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/GrAIdient/Layer1D/SelectNeurons1D.swift:173-183 | Sources/GrAIdient/Layer1D/Softmax1D.swift:119-129 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/SelectNeurons1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/Softmax1D.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/SelectNeurons1D.swift:173\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/SelectNeurons1D.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"e370967c1f9333e3f9d5beff8de1452dfc80daa1d8de0fdfe9725fa3febfa7ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/GrAIdient/Layer2D/AdaIN.swift:711-721 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:719-729 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/AdaIN.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/InstanceNorm2D.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaIN.swift"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"a38fde0a4b5f3e2d515bfe2dbbee39414fbc93bff364ac38dd6e6ff792f20bdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:783-793 | Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:802-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 \u0060Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:783\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:799\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:780\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ac6f73da0b012af05d9e4eab983692af7dbfbc5cdaba1ad36eb5efb789361d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/GrAIdient/Layer2D/BCE2D.swift:146-156 | Sources/GrAIdient/Layer2D/BCE2D.swift:216-226 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/BCE2D.swift:146\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCE2D.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c41a0f76c6ffdc347ec781a422fb34c6d0a0dc51ef3a707531c8e00ea511b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/GrAIdient/Layer2D/Convolution2D.swift:981-991 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1208-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:981\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d7fb9bed6f7db9cf96c27a9145b9c633ae06ade145aaff634a3a343fa0d195"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/GrAIdient/Layer2D/Multiply2D.swift:124-134 | Sources/GrAIdient/LayerSeq/MutiplySeq.swift:123-133 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Multiply2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/MutiplySeq.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Multiply2D.swift:124\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"38dc8591518a57f0259746f89adbeefb6e69da0647562a10e084b47e2b949868"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Sources/GrAIdient/Layer2D/Normalize2D.swift:116-126 | Sources/GrAIdient/Layer2D/Normalize2D.swift:474-483 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift: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":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d1ea07956c05ac3d0c315d527cabb0873fcd8ca1aa7a4ac78275d4f104d41c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/GrAIdient/Layer2D/Normalize2D.swift:506-516 | Sources/GrAIdient/Layer2D/Normalize2D.swift:628-638 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:506\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"106f50154ac59f2e281855742db40ea679828f0ece5da0daa1532ced95f97184"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Sources/GrAIdient/Layer2D/SimilarityError2D.swift:399-408 | Sources/GrAIdient/Layer2D/Transform/FTFrequences2D.swift:239-249 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/FTFrequences2D.swift:239\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityError2D.swift"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2460548c554d1c2e11aa27b342ad056bd2bf3d5e187d6e34680bcf28159c757"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:208-218 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:455-465 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:208\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Flip2D.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"a190225c53ce85dcbfb30411ca5db89e4c295dd564cdd0cf407f841f065a2d46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/GrAIdient/Layer2D/VQ2D.swift:519-529 | Sources/GrAIdient/LayerSeq/VQSeq.swift:447-457 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 378 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:518\u0060 calls \u0060UInt32\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift:446\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"702c0bbe6c79f6932b1d9b1fad4ee893188f53074180ea6393d54e59329d0cd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): Sources/GrAIdient/Layer2D/VQ2D.swift:552-560 | Sources/GrAIdient/Layer2D/VQ2D.swift:795-805 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:552\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e7d2a14973998eaa063e7ce2453d59a19094c7580dace59165d834748d55c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:596-606 | Sources/GrAIdient/LayerSeq/LayerCAMSeq.swift:185-195 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:596\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"af57ca92f568d96549a3c6baae9e0959a3a401e5a45525250569dcfea79670f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:654-664 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:888-898 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:654\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a62dd65dfec84d8ef3eea54b18f6ba42a453648d5719d251ff70260f531e32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ValueSeq.swift:425-435 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1931-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 \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:425\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2641ca1843b36bbab84d39260ef331aebe48238439a8da2c30eeadd55eac9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): Sources/GrAIdient/LayerSeq/QuerySeq.swift:510-519 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:538-547 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:961-970 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:984-993 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:2031-2040 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:2061-2070 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:2023-2032 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"b93f9895d3c082636c6b5b180705e9ce35f0c11f87d59b92e9dc77029604f032"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): Sources/GrAIdient/Layer1D/DotProduct1D.swift:426-435 | Sources/GrAIdient/Layer1D/DotProduct1D.swift:453-462 | Sources/GrAIdient/Layer1D/Dropout1D.swift:425-434 | Sources/GrAIdient/Layer1D/LinearError1D.swift:305-314 | Sources/GrAIdient/Layer1D/Softmax1D.swift:320-329 | Sources/GrAIdient/LayerSeq/SelectSeq.swift:270-279 \u2014 there are 6 copies across 5 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 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, \u0060Sources/GrAIdient/Layer1D/Dropout1D.swift:422\u0060 calls \u0060setBuffer\u0060, \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer1D/LinearError1D.swift:303\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/DotProduct1D.swift"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cdd938ee5e1fb3caa3e16679011c5a1f8596f54e4eb91cd8fc77a7aa92008df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): Sources/GrAIdient/Layer1D/Sum1D.swift:118-127 | Sources/GrAIdient/Layer1D/Sum1D.swift:191-200 | Sources/GrAIdient/LayerSeq/MutiplySeq.swift:202-211 | Sources/GrAIdient/LayerSeq/MutiplySeq.swift:278-287 | Sources/GrAIdient/LayerSeq/SumSeq.swift:124-133 | Sources/GrAIdient/LayerSeq/SumSeq.swift:200-209 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Sum1D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/SumSeq.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Sum1D.swift:118\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Sum1D.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd6deebbca4ac0d601b9e9b4965aec08977623c049c3f7925b0a99889a0133d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): Sources/GrAIdient/Layer2D/BCE2D.swift:115-124 | Sources/GrAIdient/Layer2D/BCE2D.swift:185-194 | Sources/GrAIdient/Layer2D/BCE2D.swift:347-356 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:118-127 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:208-217 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:390-399 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/BCE2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/BCESigmoid2D.swift\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/BCE2D.swift:115\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCE2D.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8200f5b4cf5fb16eb6d54c7912d9d549c559b4564137a6f4bd9146de9870e13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:336-345 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:466-475 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:634-643 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:316-325 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:419-428 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:561-570 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 252 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc9eb7b5b9d843dd0cc2fc5bb3e81f40bace1458e323c8965f1e2fe20fd448d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 5): Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:305-312 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:377-384 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:460-467 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:596-605 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:680-689 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:305\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:387\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:316\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"04fc99d5cf810ddb3afd4db7d1cd3075adb348ec86196651ff74752f77c2393d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): Sources/GrAIdient/Layer2D/Convolution2D.swift:874-883 | Sources/GrAIdient/Layer2D/Convolution2D.swift:907-916 | Sources/GrAIdient/Layer2D/Convolution2D.swift:968-977 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1003-1012 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1291-1300 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:874\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d82cf2b4d998a8708c6d1466bc8b0550cc3bb3224d2b2ee6eabeea66437ec6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 4): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:870-876 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1715-1724 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1748-1757 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:3140-3149 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1715\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d43ef83c94b62368ee52c4f8ebeab13748bfadf390c06b6502c7b64c5a7b4b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Sources/GrAIdient/Layer1D/Concat1D.swift:372-381 | Sources/GrAIdient/Layer2D/Concat2D.swift:416-425 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:496-505 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:835-844 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Concat1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Concat2D.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer2D/Concat2D.swift:428\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer1D/Concat1D.swift:384\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42e3e7958799d4295be2a45f3c08a09d677cdb528f7604cb342a15c53903159"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Sources/GrAIdient/Layer2D/Convolution2D.swift:935-944 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1152-1161 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:372-381 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:599-608 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 499 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:935\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"4280305a0d5ea9a400ea37dc0bf0b44cedf9ace3009eef50e09cb00ff312ab24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Sources/GrAIdient/LayerSeq/ConcatSeq.swift:845-854 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:537-546 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1141-1150 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:2052-2061 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/ConcatSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a50878bb9530ddf3d14c2033bc5b81a81ac44c67718e1c17c7ba725e8dbebf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 3): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:903-909 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1780-1789 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1814-1823 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1780\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"43bd06f7be3d310dde3b53e6b41cb25c4bd4584462da9c9f1f0f2bce5bdf6493"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:949-958 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1643-1652 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1687-1696 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f86bee749a54e739f60977f267606d69f7528c5514eb8347293b25d9fd6af24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/GrAIdient/Layer2D/BN2D.swift:719-728 | Sources/GrAIdient/Layer2D/BN2D.swift:766-775 | Sources/GrAIdient/Layer2D/BN2D.swift:812-821 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/BN2D.swift:719\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BN2D.swift"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a89c22848e4c948d38e3df8ca6c2c4ee50c0a530e6f78ecab6404df39aee76c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/GrAIdient/Layer2D/Concat2D.swift:106-115 | Sources/GrAIdient/Layer2D/Concat2D.swift:199-208 | Sources/GrAIdient/Layer2D/Concat2D.swift:270-279 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Concat2D.swift: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Concat2D.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5e497c173a9ab008748d1f17091e53a702c07717ba173dd99e4abcd1edf5ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/GrAIdient/Layer2D/MSE2D.swift:113-124 | Sources/GrAIdient/Layer2D/MSE2D.swift:183-192 | Sources/GrAIdient/Layer2D/MSE2D.swift:343-352 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/MSE2D.swift:113\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/MSE2D.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e4d1daf3e6dfc0e289aecfc18935be8b9262f741f998fd76cea8f7d7368ec4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:239-249 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:312-322 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:417-427 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:239\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ccc1699c0dced5c390cb29c27beed11a5a8cfb1e82d6ed06a67f4d57f80bb8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/GrAIdient/LayerSeq/ConstantSeq.swift:320-331 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:824-835 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:511-520 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift:320\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:522\u0060 calls \u0060download\u0060 and \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift:333\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConstantSeq.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"9584fe52eec133a9d9a95b20bcbf9e3c72cd06287aa521240b938d51f05bc2d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/GrAIdient/LayerSeq/QuerySeq.swift:356-365 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:358-367 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:933-942 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:356\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"532afa867610f7858529631fdd60f8481d005d106830243fb2b38a20ce709165"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:248-257 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:369-378 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:946-955 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:379\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:258\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"74fde2adabd4aef8b0132e39d0b8fbbb410ea97a6e4a1751c28ff03b9fdb716d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:343-352 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:510-519 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1112-1121 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0466962b7391fe2676f0e05fb50d28950d55d50ea9c478aa246aa9b8f45c1ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sources/GrAIdient/LayerSeq/ValueSeq.swift:257-267 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:829-839 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1537-1547 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:257\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed04fbe1d61a5a58630311236bd283e544042dff5cc88708523ff17d2a61d90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): Sources/GrAIdient/LayerSeq/ValueSeq.swift:343-351 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:917-926 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1629-1637 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:343\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff893e7c813fa7a77ed4d27fc75b396db100a8cb282cf64f926f1b7110123f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:455-463 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1242-1251 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:455\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee758850579d2a9db59990e261929d606eefabb297457008ec13a58cbdd6ef6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1332-1341 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2248-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 \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1332\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1332}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e28fbdc2c24400470cf30032f24127ff49ae74187a2f507d5f4c8d6384da99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2529-2538 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2561-2570 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2529\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2571\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2539\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":2529}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d91b76f23a420c924e8623ad781ce6f771f0be4ec9a3281a73e096cf26b9c28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:338-347 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:412-421 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:338\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:348\u0060 calls \u0060max\u0060 and \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:423\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c70e4d61ff6a40f5f1328adca197086e21f400a144f7672696163b2ef3f9d57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/GrAIdient/Layer1D/Concat1D.swift:281-290 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1699-1708 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a373a42de8c3ade97e2989391c269697fee9056689035edcde6dde84df0aff4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:555-564 | Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:751-760 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"201ed39db8a16ce6194c8a086ba9cefdfd530c492d0b4cac8d94a2d1d4ebe614"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/GrAIdient/Layer2D/Concat2D.swift:298-307 | Sources/GrAIdient/Layer2D/Concat2D.swift:394-403 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Concat2D.swift:298\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Concat2D.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f0c332cabf771439b7450305b31017c025271057cabcade6a80e2a1d828a19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/GrAIdient/Layer2D/Convolution2D.swift:1357-1366 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:832-841 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:1357\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f28898e475e0deecaa596b36f0ac66600b48b3973cb14121dab19665c4b1de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/GrAIdient/Layer2D/Convolution2D.swift:1553-1562 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:993-1002 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:1553\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b64d55ee424c2b33c0e93c5193872cd72a9d1a31ce4f3bd4f4aa0cac4637c66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/GrAIdient/Layer2D/Convolution2D.swift:1648-1657 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1729-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":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1648}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c98570f320f5f99af6b4f25137878a530a8108654ce1ec33a9da4c9dbae1ada"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/GrAIdient/Layer2D/LayerCAM2D.swift:183-192 | Sources/GrAIdient/LayerSeq/LayerCAMSeq.swift:179-188 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/LayerCAM2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/LayerCAMSeq.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/LayerCAM2D.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b45adb505825df178d90139073096ab1fe73975532be79189440ba61c89d81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/GrAIdient/Layer2D/Multiply2D.swift:146-155 | Sources/GrAIdient/LayerSeq/MutiplySeq.swift:145-154 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Multiply2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/MutiplySeq.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Multiply2D.swift:146\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb0a3bc3699586364067cc5cfbd07e089a37a7420a29f381421424ddcde45bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Sources/GrAIdient/Layer2D/Normalize2D.swift:163-172 | Sources/GrAIdient/Layer2D/Normalize2D.swift:521-529 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:163\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a918b1e20fc8140ef0b6818bd9f76294aa56aaa3257777f54c047e46681095"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/GrAIdient/Layer2D/Normalize2D.swift:226-235 | Sources/GrAIdient/Layer2D/Normalize2D.swift:644-653 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:226\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9fe632004aa97da063e9893517be49d4fe1c652cf00f861907919387e984ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:134-143 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:169-178 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:134\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SelectNeurons2D.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a237658b71e28b86813d04bc047558037c494f4cc777ea0f6ca8a0049a68a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:251-258 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:613-622 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/SimilarityError2D.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/SimilarityError2D.swift:613\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"2961891e521d951164c12c5a06da5e5f3a1e7d2a1366cdbd5862e9ea31fe8245"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:112-121 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:161-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:112\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"44057816c4e78e0616a6a324a772ce7544b3900c6e34793d028d2e52113ab360"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Sources/GrAIdient/Layer2D/VQ2D.swift:555-563 | Sources/GrAIdient/Layer2D/VQ2D.swift:609-618 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/VQ2D.swift: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":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d5ff4cd8834ceb373d6714054b3ebdd9bdd07834ef65097a43357560e5d361"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ConstantSeq.swift:963-972 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1169-1178 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConstantSeq.swift"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c5f7ae953279021563ef83dce31dd56d97a5b20b22b0dfafd9d44610031a28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:692-701 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:744-753 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:692\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:689\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:741\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab601bef86e6e147c8a7c4b4d01a993b5407434b35d0b272962b47248b6e84d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:522-531 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:775-784 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:522\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9fb218c5613e333e1b359856a0a7309ddff1ebe8577834def2a0fdb8309f29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:34-43 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:32-41 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:34\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d2b6c419e03d074ce8d5437fc6e0aa3cf856bf38a788700b324466ed8cad16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:367-375 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:814-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 \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:814\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae4a73ef0c45851d8bda5ee13ce6ae80c940069edee9020b9eb63b54c19d465"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:884-894 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:997-1006 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:884\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:1007\u0060 calls \u0060get\u0060 and \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:894\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad94a4d6d5f073ad0159ccab98143ad253f02be1814360cacc5cdebd4bdaaf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:1368-1377 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1616-1625 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:1368\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1368}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf82c12ba8a9ebe1f9cc39f44283246273237202a2e37f31f93aa3e096f90e9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ValueSeq.swift:332-341 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:905-915 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:332\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"711fded4d79303a6835da407bea951108763c0d1415c96da8e399b8fc51615a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 13): Sources/GrAIdient/LayerSeq/ActivationSeq.swift:137-145 | Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift:54-62 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:238-246 | Sources/GrAIdient/LayerSeq/LayerCAMSeq.swift:86-94 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:163-171 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:671-679 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:174-182 | Sources/GrAIdient/LayerSeq/RoPESeq.swift:134-142 | Sources/GrAIdient/LayerSeq/SelectSeq.swift:86-94 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:98-106 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:447-455 | Sources/GrAIdient/LayerSeq/VQSeq.swift:202-210 | Sources/GrAIdient/LayerSeq/VQSeq.swift:994-1002 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/ActivationSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/LayerNormSeq.swift\u0060 as WHOLE FILES: this scan already matched 8 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 \u0060Sources/GrAIdient/LayerSeq/ActivationSeq.swift:137\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ActivationSeq.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9d7e616d502f046b997756a369bc1e113db2675b926b6d07abcd55f6e4525f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): Sources/GrAIdient/Layer1D/Activation1D.swift:133-141 | Sources/GrAIdient/Layer1D/BCE1D.swift:25-33 | Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:28-36 | Sources/GrAIdient/Layer1D/Dropout1D.swift:92-100 | Sources/GrAIdient/Layer1D/LinearError1D.swift:23-31 | Sources/GrAIdient/Layer1D/MSE1D.swift:23-31 | Sources/GrAIdient/Layer1D/SelectNeurons1D.swift:105-113 | Sources/GrAIdient/Layer1D/Softmax1D.swift:96-104 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Activation1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/SelectNeurons1D.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Activation1D.swift:133\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Activation1D.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b5b14e51e05ff77b79bd1bdde60b08a925dee777b5fbb3cd264fc8550db21e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): Sources/GrAIdient/Layer2D/Activation2D.swift:197-205 | Sources/GrAIdient/Layer2D/BN2D.swift:465-473 | Sources/GrAIdient/Layer2D/BN2D.swift:523-531 | Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:289-297 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:389-397 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:447-455 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:223-231 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:137-145 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Activation2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/BN2D.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Activation2D.swift:197\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Activation2D.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0405b0656165b55c351f8293adf216832b38029ed24a6948ab4c0f5ac46cb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): Sources/GrAIdient/Layer1D/Softmax1D.swift:241-249 | Sources/GrAIdient/Layer2D/AvgPool2D.swift:173-181 | Sources/GrAIdient/Layer2D/Normalize2D.swift:190-198 | Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift:189-197 | Sources/GrAIdient/Layer2D/Transform/ColorJitterHSV.swift:317-325 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:203-211 | Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift:163-171 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Softmax1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/AvgPool2D.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Softmax1D.swift: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/AvgPool2D.swift:169\u0060 calls \u0060UInt32\u0060 and \u0060Sources/GrAIdient/Layer1D/Softmax1D.swift:238\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Softmax1D.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"599528e8f3cdd50779ba4b059305a6ae2d4b1dc77a1996c050c5aee4c6cbbcbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 7): Sources/GrAIdient/Layer2D/Activation2D.swift:234-241 | Sources/GrAIdient/Layer2D/BN2D.swift:571-578 | Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:325-332 | Sources/GrAIdient/Layer2D/Input2D.swift:425-432 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:495-502 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:266-274 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:174-181 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Activation2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/BN2D.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Activation2D.swift:234\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Activation2D.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"e547d57ba7c0c56b3f21c3b8aff8a6e01962d76dbb6daf52598966e29e11eaf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): Sources/GrAIdient/Layer2D/AvgPool2D.swift:242-250 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:344-352 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:379-387 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:282-290 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:301-309 | Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift:226-234 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/AvgPool2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/SelectNeurons2D.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:354\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer2D/AvgPool2D.swift:252\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AvgPool2D.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b260eaeccc4e7fad5a2295c82c866a12f529ed18422a413af238a4973908fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 6): Sources/GrAIdient/LayerSeq/ValueSeq.swift:166-173 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:257-264 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:729-737 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:828-836 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1438-1445 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1537-1544 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:166\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:266\u0060 calls \u0060download\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:175\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"e809eac7f454e57c2a38bdd57f63894403379dd0bf15ea436b66430184307c6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Sources/GrAIdient/Layer1D/DotProduct1D.swift:158-166 | Sources/GrAIdient/Layer1D/DotProduct1D.swift:241-249 | Sources/GrAIdient/Layer1D/Sum1D.swift:117-125 | Sources/GrAIdient/Layer1D/Sum1D.swift:190-198 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/Sum1D.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift:158\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift:238\u0060 calls \u0060download\u0060 and \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift:156\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/DotProduct1D.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fc02c2e210d58c08df31a7744460829ba26f22b24471e3e7bf109c508f5e553"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Sources/GrAIdient/Layer1D/FullyConnected.swift:1104-1112 | Sources/GrAIdient/Layer1D/FullyConnected.swift:1176-1184 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1254-1262 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1138-1146 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 473 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:1104\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd3d7d0c0f47a9f5a3978448566300aad00af57f54a8ae6e4a96de9e14155c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Sources/GrAIdient/Layer2D/AvgPool2D.swift:169-177 | Sources/GrAIdient/Layer2D/MaxPool2D.swift:370-378 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:268-276 | Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift:185-193 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/AvgPool2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/MaxPool2D.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/MaxPool2D.swift:369\u0060 calls \u0060UInt32\u0060 and \u0060Sources/GrAIdient/Layer2D/AvgPool2D.swift:168\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AvgPool2D.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ba8b66735d96bf6ecb9a707d62b133ca1a4996bdfe75a0c8b53addba4c757b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Sources/GrAIdient/LayerSeq/ConcatSeq.swift:121-129 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:208-216 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:553-561 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:640-648 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ConcatSeq.swift:121\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"9693176cd192493d75835253863a726c1b9f48bc121ed0fffa2a483ad79ca18d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/GrAITestsUtils/Trainer.swift:820-828 | Sources/GrAITestsUtils/Trainer.swift:940-948 | Sources/GrAITestsUtils/Trainer.swift:968-976 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAITestsUtils/Trainer.swift"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e55aa7eede282a1685a17059a4fe890b3543f48cbd7a8d0831dec56d94aaf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:232-240 | Sources/GrAIdient/Layer1D/SelectNeurons1D.swift:175-183 | Sources/GrAIdient/Layer1D/Softmax1D.swift:121-129 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:232\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b5c546ca23fab98d4d60e7e2655db6cc0d23ee4c13cd84c2a6008abf2ee805"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): Sources/GrAIdient/Layer1D/Concat1D.swift:280-288 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:740-747 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1698-1706 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Concat1D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ConcatSeq.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Concat1D.swift:280\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dcb5ee1346b74070254d9f373175b29fbcd3c8fdbdcc0c7636e99ebec9a4bbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/GrAIdient/Layer1D/FullyConnected.swift:299-307 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:204-212 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:183-191 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 473 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:299\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:203\u0060 calls \u0060decode\u0060 and \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:298\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97f6fa33599a272e90142469008ccd817c14ccaf25281c986b155c0c86552f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:383-391 | Sources/GrAIdient/Layer2D/Concat2D.swift:366-374 | Sources/GrAIdient/Layer2D/Input2D.swift:480-490 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Input2D.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:383\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"2847c9058aaddf69990f492b9ea6497ffccd263275385dca38b8a85bd1e14083"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/GrAIdient/Layer2D/Constant2D.swift:461-469 | Sources/GrAIdient/Layer2D/Normalize2D.swift:183-191 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:196-204 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Constant2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Constant2D.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"3508c51af11c6bc338f725a8108a0b2b2f5688f077a78cc3ef908ccb005f0f31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/GrAIdient/Layer2D/Sum2D.swift:117-125 | Sources/GrAIdient/Layer2D/Sum2D.swift:207-215 | Sources/GrAIdient/Layer2D/Sum2D.swift:274-283 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Sum2D.swift:117\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Sum2D.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29cf77bd38c9d1e37607cdbe1a50d431fadd7c99de8ea2d4996a2c40ac1a803"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:232-239 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:505-513 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:373-380 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Transform/Pad2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 117 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:505\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Pad2D.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d06b23e29ec0e88247c8e57aed0f333329c37844d805885fe7fa634d804646"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:561-569 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:653-661 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:887-895 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:561\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed8285f3ece67fac120c926eaf1880cee891d19d66f84972c4a918952bf4b5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAITestsUtils/Trainer.swift:331-339 | Sources/GrAITestsUtils/Trainer.swift:621-629 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAITestsUtils/Trainer.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61855fb1e25a29942410ad074f9a72bae37adf15f8462cb03f43c40dc0d819e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2584-2592 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:3159-3167 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":2584}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fcaabe43513242533e3c8775be84f0050a6e3ec7a4f2576733af3d04ca6cb61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/Layer1D/BCE1D.swift:116-124 | Sources/GrAIdient/Layer1D/BCE1D.swift:160-168 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/BCE1D.swift: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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/BCE1D.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"c180d5b0dc814c747ed53ec072fb1a143f09761eaf29a8aeab3d2a39644cd3ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/Layer1D/FullyConnected.swift:1043-1051 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1102-1110 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 473 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"3977d892b2a4f93470c15f5b6059f137e66137a4678731e0751fca4482673134"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/Layer2D/AdaIN.swift:588-596 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:663-671 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/AdaIN.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/InstanceNorm2D.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaIN.swift"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15b61a6098bdd7bf9c6eb59ff7910a0ae176db53715123a6d19edad0605760b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/Layer2D/AdaIN.swift:644-652 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:701-709 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/AdaIN.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/InstanceNorm2D.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaIN.swift"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a937ccd4ea6c6d3f24dd1c0df5e8c63f4f89e4ce755b12917e13a4fb26a14b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/Layer2D/Constant2D.swift:167-175 | Sources/GrAIdient/Layer2D/Constant2D.swift:216-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 \u0060Sources/GrAIdient/Layer2D/Constant2D.swift:167\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Constant2D.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"608bc7437f3f43e17b43238a11da7da03d303dcc03f98984407f59ce625e4e71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/Layer2D/Constant2D.swift:213-221 | Sources/GrAIdient/Layer2D/Input2D.swift:238-246 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Constant2D.swift:213\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Constant2D.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c6abbcd1fb9bb26cfb4c52f288abe0762c3dc507a6cfa60f92eed9b54297b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/Layer2D/Constant2D.swift:353-361 | Sources/GrAIdient/Layer2D/Constant2D.swift:397-405 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer2D/Constant2D.swift:407\u0060 calls \u0060download\u0060 and \u0060Sources/GrAIdient/Layer2D/Constant2D.swift:363\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Constant2D.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a1f1fc988f14749c213ec99a9f2062605153b0e70e999caf011867f45a007a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/Layer2D/Convolution2D.swift:1667-1675 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1746-1754 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:1667\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:1666\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:1745\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1667}}}],"partialFingerprints":{"codehealthFindingId/v1":"98260817bf8043496b8a6c991214bb7c0c8749e22669c5851a3700d5b04b546c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/Layer2D/Multiply2D.swift:238-246 | Sources/GrAIdient/Layer2D/Sum2D.swift:160-168 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Multiply2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Sum2D.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Multiply2D.swift:238\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"40de609d91fe0bbf4aed1319573b4c12ce206a2b95de38812825c73eef74f645"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Sources/GrAIdient/Layer2D/Multiply2D.swift:370-378 | Sources/GrAIdient/LayerSeq/MutiplySeq.swift:337-344 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Multiply2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/MutiplySeq.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Multiply2D.swift:370\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"454f31062368a63906c8767da3f4a7891827b9ed5ba6cb1254e81925e30cf153"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Sources/GrAIdient/Layer2D/Normalize2D.swift:236-244 | Sources/GrAIdient/Layer2D/Normalize2D.swift:656-663 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:656\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d4e13b0efed97bc8a5fef8d65075f5e42aa73e12dbe1de50948910e6d7694f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/Layer2D/Normalize2D.swift:287-295 | Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift:270-278 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"143c40ef06b6c74fc8f791033f40089390e3c5e80798f71575cbf1e849bad072"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:191-204 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:553-566 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/SimilarityError2D.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:191\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"22636e31a8ed3bae12bf9f4a208644f2f69a60b6dfca17717021cb79e3245023"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/Layer2D/SimilarityError2D.swift:379-387 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:475-483 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/SimilarityError2D.swift:379\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityError2D.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"c169c81fa9c241df0c40678f0764b9966090bdd27d166ef1ef74af2d4c462f73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:302-309 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:580-588 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Transform/Crop2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 117 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:580\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Crop2D.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"a012bb889e2159ff5231a2360014f7864d4d3f094be0ae8e6e25974a05220a03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:361-369 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:337-345 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 252 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift: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":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8570943d2b8c72963c4e2c7015abeb9fa338f8101f9726c0b7b5abf4d7beb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:487-495 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:440-448 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 252 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:487\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"96879c575e30aa093df01f8ca313a91daa3d406d8fca23b7601dc64b92d15334"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:573-581 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:696-704 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9dbde1ea99e9e1fd14a6565402ca392dee47dd63ea770688223398f5e1c065"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:290-298 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:395-403 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"4727bd540ba1d5d1b928c092a82fc427fa17ca2832bbcd23403413dd9ba8f4c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:686-694 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:719-727 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0207a8545ea2934bc1b43882a8ad1fd62db0c1c55b68fef5385ac25a2759cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:637-645 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:651-659 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/LayerNormSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/RMSNormSeq.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/LayerNormSeq.swift"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a11bee03042419ac368edcab088b92e4792241f902a9ed88060473b75b14409"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:672-680 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:686-694 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/LayerNormSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/RMSNormSeq.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/LayerNormSeq.swift"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a97e177e0913445637873cb9f27834582421bf541abe7820fe3ac718ee03096"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:706-714 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:720-728 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/LayerNormSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/RMSNormSeq.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/LayerNormSeq.swift"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"643ae3f6ef026a756ada62d353cd1f211be36cb097d948096acfcc08eb3341b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:1301-1309 | Sources/GrAIdient/LayerSeq/RoPESeq.swift:213-221 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/RoPESeq.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85a3a1a7887cdf69ff8e49bd0675efc737ec169b707c848ed61f2a5608d1415"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:1858-1868 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1996-2006 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1858}}}],"partialFingerprints":{"codehealthFindingId/v1":"6645ec6449898d0f90681d1a319c7f4f4de13e77cd789bf923aaff8298c4f5e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ValueSeq.swift:499-507 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1100-1108 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"33b686a593eed5371219165f0df6d6cbb0965ef491c85ca619fe937c879acd64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ValueSeq.swift:712-719 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:901-909 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:712\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"da870fd02f6ac79dcc09e438f778d71e264afb54e62865c6fc22df571fad4610"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20139 lines \u00D7 3): Sources/GrAIdient/LayerSeq/ValueSeq.swift:1673-1676 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1852-1860 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1988-1996 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":1673}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6db033271ee7c75247d7bac64521dfe22cd95abe1e55a9d938df855db2daf8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 33): Sources/GrAIdient/Layer2D/Activation2D.swift:141-148 | Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:217-224 | Sources/GrAIdient/Layer2D/AvgPool2D.swift:55-62 | Sources/GrAIdient/Layer2D/BCE2D.swift:26-33 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:29-36 | Sources/GrAIdient/Layer2D/BN2D.swift:240-247 | Sources/GrAIdient/Layer2D/Convolution2D.swift:538-545 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:134-141 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:165-172 | Sources/GrAIdient/Layer2D/LayerCAM2D.swift:88-95 | Sources/GrAIdient/Layer2D/MSE2D.swift:24-31 | Sources/GrAIdient/Layer2D/MaxPool2D.swift:156-163 | Sources/GrAIdient/Layer2D/Normalize2D.swift:60-67 | Sources/GrAIdient/Layer2D/Normalize2D.swift:382-389 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:133-140 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:168-175 | Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift:58-65 | Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:57-64 | Sources/GrAIdient/Layer2D/Transform/ColorJitterHSV.swift:161-168 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:168-175 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:101-108 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:108-115 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:365-372 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:69-76 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:95-102 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:104-111 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinear.swift:65-72 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:257-264 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:228-235 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:173-180 | Sources/GrAIdient/Layer2D/VQ2D.swift:213-220 | Sources/GrAIdient/Layer2D/VQ2D.swift:1075-1082 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:261-268 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Activation2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/BN2D.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Activation2D.swift:141\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Activation2D.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f5e2aad30e0f37b46777101c3a4641f4819296c76f0fc05d1717bcaae0cd34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 10): Sources/GrAIdient/Layer1D/DotProduct1D.swift:329-336 | Sources/GrAIdient/Layer1D/Dropout1D.swift:343-350 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:275-282 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:939-946 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:841-848 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:378-385 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:827-834 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1306-1313 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1881-1888 | Sources/GrAIdient/LayerSeq/SelectSeq.swift:188-195 \u2014 there are 10 copies across 7 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 10 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift:329\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift:327\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:1305\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/DotProduct1D.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd9c3c8d903e12b19a8824989cdc1f8dac06f080c1add6f2c87968dadf84e52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 8): Sources/GrAIdient/Layer1D/DotProduct1D.swift:426-433 | Sources/GrAIdient/Layer1D/DotProduct1D.swift:453-460 | Sources/GrAIdient/Layer1D/Dropout1D.swift:425-432 | Sources/GrAIdient/Layer1D/LinearError1D.swift:305-312 | Sources/GrAIdient/Layer1D/Softmax1D.swift:320-327 | Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift:233-239 | Sources/GrAIdient/LayerSeq/SelectSeq.swift:270-277 | Sources/GrAIdient/LayerSeq/VQSeq.swift:589-595 \u2014 there are 8 copies across 7 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift:426\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift:586\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift:423\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/DotProduct1D.swift"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"051e7584b6024bd7fe6c193cfa23c80b92b98beded9af4e294f88904bf8a0098"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): Sources/GrAIdient/Layer2D/Normalize2D.swift:276-283 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:368-375 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:286-293 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:298-305 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:273-280 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:258-265 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:291-298 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/Crop2D.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:276\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:377\u0060 calls \u0060UInt32\u0060 and \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:285\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd52c56bb63742f85fe529bfcdcdea15a9cbf6676387f4a4b737bba464ca3a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:855-862 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:888-895 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1702-1709 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1735-1742 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1767-1774 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1801-1808 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4c8b3437f7d63bd50808e76d39f80c491888e089c3bea7414e3796e800eb58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): Sources/GrAIdient/LayerSeq/ConcatSeq.swift:313-320 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:258-265 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:381-388 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:960-967 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1692-1699 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1876-1883 \u2014 there are 6 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 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ConcatSeq.swift: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/LayerSeq/ConcatSeq.swift:312\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:257\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"feefee7354e2ef5d7fb27fac8e51494a79dc4fd9d1859be6f1a3c660dbf01b80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:294-302 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:366-374 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:449-457 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:583-591 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:667-675 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:294\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:592\u0060 calls \u0060Float\u0060 and \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:304\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"8123d290e12633245a21993a801e719e7e3c55b2b30f42ba7dbd92622c2e1e9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 5): Sources/GrAIdient/Layer2D/Deconvolution2D.swift:346-353 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:413-420 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:453-460 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:746-753 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:836-842 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift: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":"Sources/GrAIdient/Layer2D/Deconvolution2D.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"f369a69eb6672d9f414ccf1958fa4442905a9e97e537a1ece74a4656eefef072"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): Sources/GrAIdient/LayerSeq/QuerySeq.swift:372-379 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1873-1880 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:375-382 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:952-959 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1868-1875 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"060704406b0f3b6477a3f36022753bfacac81874c9774c481a04cfcf57897fb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Sources/GrAIdient/Layer2D/AvgPool2D.swift:240-247 | Sources/GrAIdient/Layer2D/MaxPool2D.swift:460-467 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:342-349 | Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift:266-273 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/AvgPool2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/MaxPool2D.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:339\u0060 calls \u0060UInt32\u0060 and \u0060Sources/GrAIdient/Layer2D/AvgPool2D.swift:236\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AvgPool2D.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3c8a9eaadf743714c3d7c1cff33ae31c18483a0709dd09dd5548599dab4a7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): Sources/GrAIdient/Layer2D/Constant2D.swift:469-476 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:399-406 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:902-909 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:595-601 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Constant2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 150 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Constant2D.swift:469\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:594\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Layer2D/Constant2D.swift:469\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Constant2D.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"816eda46ffb4c1a1d88aa401d82e8616792a0a1802be7649e919b71fe77250ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Sources/GrAIdient/Layer2D/VQ2D.swift:526-533 | Sources/GrAIdient/Layer2D/VQ2D.swift:1350-1357 | Sources/GrAIdient/LayerSeq/VQSeq.swift:454-461 | Sources/GrAIdient/LayerSeq/VQSeq.swift:1267-1274 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 378 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:526\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:1347\u0060 calls \u0060setBuffer\u0060, \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:525\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6b9e603c11b18c75ee393edcd64130de5a1cf228addc2f83698f725473c58e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Sources/GrAIdient/Layer2D/VQ2D.swift:713-720 | Sources/GrAIdient/Layer2D/VQ2D.swift:746-753 | Sources/GrAIdient/LayerSeq/VQSeq.swift:636-643 | Sources/GrAIdient/LayerSeq/VQSeq.swift:669-676 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 378 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"8588f5eac8b88369a2d3ba6227426b9efe6fc5f5ecd10409306d11732ae56c35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/GrAIdient/Layer1D/Activation1D.swift:221-230 | Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:270-277 | Sources/GrAIdient/Layer1D/SelectNeurons1D.swift:216-225 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Activation1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Activation1D.swift:221\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Activation1D.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6f59cc99c56113419ab635186be6259c2927f037d71824aabb751b6697e0f7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/GrAIdient/Layer1D/Constant1D.swift:464-471 | Sources/GrAIdient/Layer1D/Constant1D.swift:498-505 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:1006-1013 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Constant1D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 267 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Constant1D.swift:464\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"3396bf4268dbd296563a9ea5e5e26e6b373ac0806d991a2b8bd372d79f9c220f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/GrAIdient/Layer2D/BN2D.swift:745-752 | Sources/GrAIdient/Layer2D/BN2D.swift:791-798 | Sources/GrAIdient/Layer2D/BN2D.swift:837-844 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/BN2D.swift: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":"Sources/GrAIdient/Layer2D/BN2D.swift"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4077f62360b7228ddd81db30757c087a61e20e9eaf1a44665a683c3364bcf3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): Sources/GrAIdient/Layer2D/Convolution2D.swift:1332-1345 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1527-1540 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1589-1603 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:1525\u0060 calls \u0060checkStateBackwardGPU\u0060 and \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:1585\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1332}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd17593b933435524f7d52ac7c5bf534ee58c993650bbffe5cfea25cd71dfe62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/GrAIdient/Layer2D/Convolution2D.swift:1362-1369 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:933-940 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:837-844 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 186 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:1362\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:941\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:845\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c94056e0b1fe5d3aa1cde1c2af7071b98e3735b576da16fa94dc83b0409572"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/GrAIdient/Layer2D/Convolution2D.swift:1706-1713 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1214-1221 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1099-1106 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 186 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:1706\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8321bc7344f97d16ac07b3b84a8af844e9bd7551fc3563860dea3140cc60be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/GrAIdient/LayerSeq/ValueSeq.swift:528-535 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1130-1137 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:2041-2048 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift:528\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a1b40ff3ad9119d81122911355e63dd00d9186a354747a3a5717eb8cfa7a1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1246-1253 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1270-1277 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1246\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1246}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ddb7966730b83d2848d47ffa040c5c9003a5c64313f8566f68656cb1d049fbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1661-1668 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1869-1876 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1661}}}],"partialFingerprints":{"codehealthFindingId/v1":"349cd78571250858844fa9369fd979af751c2d665a497f1edd3253ff27dc74e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2572-2579 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:3147-3154 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2572\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2571\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:3146\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":2572}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b634fddd86fe4805353aae3223d248e87a3cfa5832db288a8bf9acb54a73901"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2671-2678 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:3237-3244 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2671\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":2671}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ec8b41710d1fcc1558966ead933a50d88ccc187828f67c29c23bdf38107109"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/GrAIdient/Layer1D/FullyConnected.swift:1081-1088 | Sources/GrAIdient/Layer1D/FullyConnected.swift: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f365d73b20ee877e90e747b373285f845715e6e200a76de6b82937da695ce88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/GrAIdient/Layer1D/SelectNeurons1D.swift:246-253 | Sources/GrAIdient/Layer1D/Softmax1D.swift:238-245 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/SelectNeurons1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/Softmax1D.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer1D/SelectNeurons1D.swift:254\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Layer1D/Softmax1D.swift:246\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/SelectNeurons1D.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"220e906a48cd8b39a5544b9b028e4a6cd44297be7c52fe220bc12bb4db40ac8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Sources/GrAIdient/Layer2D/AdaIN.swift:550-557 | Sources/GrAIdient/Layer2D/AdaIN.swift:609-615 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/AdaIN.swift: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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaIN.swift"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95901698ed4ca893e197e53dfc4f5407859cea37e18ab5b8c9e8e5cdb63e522"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/GrAIdient/Layer2D/Constant2D.swift:536-543 | Sources/GrAIdient/Layer2D/Constant2D.swift:571-578 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Constant2D.swift:536\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/Constant2D.swift:535\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer2D/Constant2D.swift:570\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Constant2D.swift"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05c12ffe87c4607f54147d701f7a89ed0cffc82a6354f8a3eb00d815702a6d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/GrAIdient/Layer2D/Deconvolution2D.swift:316-324 | Sources/GrAIdient/Layer2D/Deconvolution2D.swift:461-468 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Deconvolution2D.swift:316\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Deconvolution2D.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed2f788e035fd2139d9aa3741560b4bde5acaaf69071096bc12cef4a489773e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/GrAIdient/Layer2D/Input2D.swift:25-32 | Sources/GrAIdient/Layer2D/Input2D.swift:54-61 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Input2D.swift:25\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Input2D.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be9f62644bc46b4b0e94818453c2a5e7825d9c0cbf323bb00acf3ab59dc5691"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift:179-186 | Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift:260-267 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f597e42ad81965d983a8b0ca395483c4e3bde7a512c07ae2dcc6c443cfc49e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/GrAIdient/Layer2D/VQ2D.swift:721-728 | Sources/GrAIdient/Layer2D/VQ2D.swift:773-780 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:721\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f62d0b7f1baf798cd63cc4827f8cc39b88979e2c50dd5814396b6d6d2986627"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift:152-159 | Sources/GrAIdient/LayerSeq/VQSeq.swift:438-445 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift:152\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0be33b0afe2ede9f0b3d2c657629137c0785653908bbbfbdc757f527b5f23ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ConstantSeq.swift:445-452 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:948-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 \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift:445\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConstantSeq.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"008138ba4fbd94d3f7084d386d5dc6e7d3d0f5d5dc20a2ed96af1255b8dd811c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:724-731 | Sources/GrAIdient/LayerSeq/VQSeq.swift:676-683 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 112 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:724\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"6734ff3ae9c969032d720afb3012f9dd6cf1dbfcdb0d3ff83eccda493ec43333"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1100-1107 | Sources/GrAIdient/LayerSeq/RoPESeq.swift:448-455 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":1100}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b5d9e70e3a95b21af3dc567aae0b73e47c85e3605d242c6635b6be0f7b3ccdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/GrAIdient/LayerSeq/VQSeq.swift:644-651 | Sources/GrAIdient/LayerSeq/VQSeq.swift:696-703 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift:644\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/VQSeq.swift"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"28cf1bb29c9db5e66f65e130878a2138ec77ac8785cb92b5ed16946b6c0b6e90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 59): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1099-1105 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1889-1895 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:3177-3183 | Sources/GrAIdient/Layer1D/BCE1D.swift:393-399 | Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:412-418 | Sources/GrAIdient/Layer1D/Concat1D.swift:380-386 | Sources/GrAIdient/Layer1D/DotProduct1D.swift:425-431 | Sources/GrAIdient/Layer1D/DotProduct1D.swift:452-458 | Sources/GrAIdient/Layer1D/Dropout1D.swift:424-430 | Sources/GrAIdient/Layer1D/LinearError1D.swift:304-310 | Sources/GrAIdient/Layer1D/MSE1D.swift:376-382 | Sources/GrAIdient/Layer1D/Softmax1D.swift:319-325 | Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:782-788 | Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:801-807 | Sources/GrAIdient/Layer2D/AvgPool2D.swift:248-254 | Sources/GrAIdient/Layer2D/BCE2D.swift:519-525 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:554-560 | Sources/GrAIdient/Layer2D/Concat2D.swift:425-431 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1566-1572 | Sources/GrAIdient/Layer2D/MSE2D.swift:489-495 | Sources/GrAIdient/Layer2D/MaxPool2D.swift:472-478 | Sources/GrAIdient/Layer2D/Normalize2D.swift:292-298 | Sources/GrAIdient/Layer2D/Normalize2D.swift:768-774 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:351-357 | Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift:275-281 | Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:342-348 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:504-510 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:746-752 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:387-393 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:303-309 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:315-321 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:288-294 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:275-281 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:308-314 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:712-718 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:645-651 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:479-485 | Sources/GrAIdient/Layer2D/VQ2D.swift:665-671 | Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift:232-238 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:422-428 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:844-850 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1112-1118 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1002-1008 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:509-515 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:537-543 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:960-966 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:983-989 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:2030-2036 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:2060-2066 | Sources/GrAIdient/LayerSeq/RoPESeq.swift:458-464 | Sources/GrAIdient/LayerSeq/SelectSeq.swift:269-275 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:342-348 | Sources/GrAIdient/LayerSeq/VQSeq.swift:588-594 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:509-515 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:536-542 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1111-1117 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1140-1146 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:2022-2028 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:2051-2057 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/BCE1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/BCESigmoid1D.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 218 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1099\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift:424\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1098\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"6340c7a964f998afbd6e58f5fafbc67ac65d47fb4bf6c9936da584da055e0882"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 35): Sources/GrAIdient/Layer1D/Concat1D.swift:279-286 | Sources/GrAIdient/Layer1D/DotProduct1D.swift:329-335 | Sources/GrAIdient/Layer1D/Dropout1D.swift:343-349 | Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:572-578 | Sources/GrAIdient/Layer2D/Concat2D.swift:320-326 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1370-1376 | Sources/GrAIdient/Layer2D/LayerCAM2D.swift:188-194 | Sources/GrAIdient/Layer2D/Normalize2D.swift:609-615 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:275-281 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:397-404 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:309-315 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:231-237 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:242-248 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:209-215 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:239-245 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:589-595 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:515-521 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:380-386 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:313-319 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:740-746 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:939-945 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:841-847 | Sources/GrAIdient/LayerSeq/LayerCAMSeq.swift:184-190 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:378-384 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:827-833 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1698-1704 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1881-1887 | Sources/GrAIdient/LayerSeq/RoPESeq.swift:370-376 | Sources/GrAIdient/LayerSeq/SelectSeq.swift:188-194 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:258-264 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:532-538 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:381-387 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:960-966 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1692-1698 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1876-1882 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Concat1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Concat1D.swift: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/Concat2D.swift:319\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer1D/Concat1D.swift:279\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd34ca9ca9d2503f73b5c5c041b77bf0bfda4db865b8ad3dc2bde73749a210f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 18): Sources/GrAIdient/Layer1D/Concat1D.swift:376-382 | Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:779-785 | Sources/GrAIdient/Layer2D/AvgPool2D.swift:245-251 | Sources/GrAIdient/Layer2D/Concat2D.swift:420-426 | Sources/GrAIdient/Layer2D/Constant2D.swift:532-538 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:347-353 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:500-506 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:382-388 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:299-305 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:285-291 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:271-277 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:304-310 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:707-713 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:640-646 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:476-482 | Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift:229-235 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:839-845 | Sources/GrAIdient/LayerSeq/SelectSeq.swift:266-272 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Concat1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Concat2D.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Concat1D.swift:376\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer1D/Concat1D.swift:383\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:786\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"d826906c29bab1699d5d6d27714181b18c8cd6d245838824959d2f47716fba11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20137 lines \u00D7 18): Sources/GrAIdient/Layer1D/FullyConnected.swift:1086-1092 | Sources/GrAIdient/Layer1D/FullyConnected.swift:1158-1164 | Sources/GrAIdient/Layer2D/Constant2D.swift:535-539 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1623-1629 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1647-1653 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1728-1734 | Sources/GrAIdient/Layer2D/VQ2D.swift:720-724 | Sources/GrAIdient/Layer2D/VQ2D.swift:772-776 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:461-467 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:970-974 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:691-697 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:743-749 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1155-1161 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1236-1242 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1043-1049 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1120-1126 | Sources/GrAIdient/LayerSeq/VQSeq.swift:643-647 | Sources/GrAIdient/LayerSeq/VQSeq.swift:695-699 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Constant2D.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:1086\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:1084\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:1156\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":1086}}}],"partialFingerprints":{"codehealthFindingId/v1":"656ae5e04a136f59a0253d3825428a75963455462b9b8681dd7d95ad9f1bb88b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 18): Sources/GrAIdient/Layer1D/Softmax1D.swift:240-246 | Sources/GrAIdient/Layer2D/AvgPool2D.swift:172-178 | Sources/GrAIdient/Layer2D/MaxPool2D.swift:373-379 | Sources/GrAIdient/Layer2D/Normalize2D.swift:189-195 | Sources/GrAIdient/Layer2D/Normalize2D.swift:551-557 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:271-277 | Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift:188-194 | Sources/GrAIdient/Layer2D/Transform/ColorJitterHSV.swift:316-322 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:304-310 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:227-233 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:202-208 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:205-211 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:234-240 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:583-589 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:508-514 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:375-381 | Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift:162-168 | Sources/GrAIdient/LayerSeq/SelectSeq.swift:184-190 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Softmax1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/AvgPool2D.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/AvgPool2D.swift:169\u0060 calls \u0060UInt32\u0060 and \u0060Sources/GrAIdient/Layer1D/Softmax1D.swift:238\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Softmax1D.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"880f2571c70beef8b251792238b9e9323a643c81a071963f55853e6a92d6e615"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 17): Sources/GrAIdient/Layer1D/Concat1D.swift:47-53 | Sources/GrAIdient/Layer1D/DotProduct1D.swift:93-99 | Sources/GrAIdient/Layer1D/Sum1D.swift:64-70 | Sources/GrAIdient/Layer2D/AdaIN.swift:137-143 | Sources/GrAIdient/Layer2D/Concat2D.swift:57-63 | Sources/GrAIdient/Layer2D/Multiply2D.swift:79-85 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:121-127 | Sources/GrAIdient/Layer2D/Sum2D.swift:68-74 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:59-65 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:491-497 | Sources/GrAIdient/LayerSeq/MutiplySeq.swift:78-84 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:102-108 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1163-1169 | Sources/GrAIdient/LayerSeq/SumSeq.swift:67-73 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:106-112 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:666-672 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1289-1295 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Concat1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Concat1D.swift:47\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f571b612ce5ebefb9223078d547722aec2941207fe7b49fa313c6446c3bdfaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 16): Sources/GrAIdient/Layer1D/DotProduct1D.swift:329-335 | Sources/GrAIdient/Layer1D/Dropout1D.swift:343-349 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:275-281 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:313-319 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:939-945 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:841-847 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:378-384 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:827-833 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1305-1312 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1881-1887 | Sources/GrAIdient/LayerSeq/SelectSeq.swift:188-194 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:258-264 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:381-387 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:960-966 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1692-1698 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1876-1882 \u2014 there are 16 copies across 10 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 16 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift:329\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift:327\u0060 calls \u0060setBuffer\u0060, \u0060setBytes\u0060 and \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:1305\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/DotProduct1D.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e2478d61d01da8ec2057303e27fdd77e0c2ae6a7a4153295dbef91aab87b5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 14): Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:573-579 | Sources/GrAIdient/Layer2D/Constant2D.swift:471-477 | Sources/GrAIdient/Layer2D/Normalize2D.swift:193-199 | Sources/GrAIdient/Layer2D/Normalize2D.swift:610-616 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:399-405 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:310-316 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:232-238 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:243-249 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:206-212 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:210-216 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:240-246 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:590-596 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:516-522 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:381-387 \u2014 there are 14 copies across 13 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 14 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:573\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:572\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer2D/Constant2D.swift:470\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"733fbca91a48e4d558426c98e2ce7eddf140b528f6f377d8aeac9e842f952557"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 14): Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:569-575 | Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:609-615 | Sources/GrAIdient/Layer2D/MaxPool2D.swift:374-380 | Sources/GrAIdient/Layer2D/Normalize2D.swift:552-558 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:272-278 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:305-311 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:228-234 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:206-212 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:235-241 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:584-590 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:509-515 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:376-382 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:736-742 | Sources/GrAIdient/LayerSeq/SelectSeq.swift:185-191 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/MaxPool2D.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:569\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer2D/MaxPool2D.swift:381\u0060 calls \u0060setBytes\u0060, \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:576\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"136018e1c6cf52022cae240df3fa64e75cc9123f3202b1672ccc100de9278786"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 13): Sources/GrAIdient/Layer1D/Activation1D.swift:251-257 | Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:295-301 | Sources/GrAIdient/Layer1D/Input1D.swift:349-355 | Sources/GrAIdient/Layer2D/Activation2D.swift:262-268 | Sources/GrAIdient/Layer2D/BN2D.swift:600-606 | Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:351-357 | Sources/GrAIdient/Layer2D/Input2D.swift:451-457 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:524-530 | Sources/GrAIdient/LayerSeq/ActivationSeq.swift:260-266 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:520-526 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1330-1336 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:534-540 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1380-1386 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Activation1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Activation1D.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"b68cdb8a7be5420dc41f6b6834d833efeda346122dd18448116485e640057509"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 13): Sources/GrAIdient/Layer1D/BCE1D.swift:224-230 | Sources/GrAIdient/Layer1D/BCE1D.swift:388-394 | Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:247-253 | Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:407-413 | Sources/GrAIdient/Layer1D/LinearError1D.swift:216-222 | Sources/GrAIdient/Layer1D/MSE1D.swift:220-226 | Sources/GrAIdient/Layer1D/MSE1D.swift:371-377 | Sources/GrAIdient/Layer2D/BCE2D.swift:290-296 | Sources/GrAIdient/Layer2D/BCE2D.swift:513-519 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:333-339 | Sources/GrAIdient/Layer2D/BCESigmoid2D.swift:548-554 | Sources/GrAIdient/Layer2D/MSE2D.swift:286-292 | Sources/GrAIdient/Layer2D/MSE2D.swift:483-489 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/BCE1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/BCESigmoid1D.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 218 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer2D/BCE2D.swift:522\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer1D/BCE1D.swift:397\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/BCE1D.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"34dbb08c4e67ac54d10422241ae4ac54835b473924bd553bdf96884e8a5fb8d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 10): Sources/GrAIdient/LayerSeq/QuerySeq.swift:502-508 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:530-536 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:2021-2027 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:2051-2057 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:502-508 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:529-535 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1103-1109 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1131-1137 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:2013-2019 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:2042-2048 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7d2d3f771337002b3f2c0828338afe06a6a602baf79946ca54765070956f7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 9): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:925-931 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1015-1021 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1054-1060 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1619-1625 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1663-1669 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1836-1842 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1871-1877 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1905-1911 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1947-1953 \u2014 all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac2b471c2534268ef7ccbbea98af6be28d46b41ab60ed1c69563b7fed5f5126"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 9): Sources/GrAIdient/Layer1D/Constant1D.swift:494-500 | Sources/GrAIdient/Layer1D/FullyConnected.swift:1154-1160 | Sources/GrAIdient/Layer2D/Constant2D.swift:567-573 | Sources/GrAIdient/Layer2D/VQ2D.swift:768-774 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:1002-1008 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:739-745 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1231-1237 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1116-1122 | Sources/GrAIdient/LayerSeq/VQSeq.swift:691-697 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Constant1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1239\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:1162\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"c964bcd7f1c89dac5cc61d9cda9a76e4091b4a1fb32af7db35d1b873c29fb6c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 9): Sources/GrAIdient/Layer2D/Normalize2D.swift:278-284 | Sources/GrAIdient/Layer2D/Normalize2D.swift:750-756 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:370-376 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:288-294 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:300-306 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:275-281 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:260-266 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:293-299 | Sources/GrAIdient/Layer2D/VQ2D.swift:645-651 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/Crop2D.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:278\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:377\u0060 calls \u0060UInt32\u0060 and \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:285\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"040f768aa4db4a7683cfeeb2861ade4cb5b0ebaec0497cf98f4dd95d4824051d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): Sources/GrAIdient/LayerSeq/ConcatSeq.swift:314-320 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:401-407 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:904-910 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:259-265 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:382-388 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:961-967 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1693-1700 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1877-1883 \u2014 there are 8 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ConcatSeq.swift:314\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/LayerSeq/ConcatSeq.swift:312\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift:400\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7d3ec8b2aa0d4901e0c1e5008f1708362d1ba418b88b49c35f2ff5aeb13b22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7): Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:182-188 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:236-242 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:304-310 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:376-382 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:459-465 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:595-601 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:679-685 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:244\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:191\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48b8fc9c227e5d1ac5ee6dfab83c900d3102e1b6fc686adea30057e09ab610d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7): Sources/GrAIdient/Layer1D/Constant1D.swift:460-466 | Sources/GrAIdient/Layer1D/FullyConnected.swift:1100-1106 | Sources/GrAIdient/Layer2D/Constant2D.swift:531-537 | Sources/GrAIdient/Layer2D/Constant2D.swift:549-555 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:984-990 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1212-1218 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1097-1103 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Constant1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer2D/Constant2D.swift:538\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer1D/Constant1D.swift:467\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fbd9e94f0832e2e356ac0b3d0cfb1f98eaa1877a5d8e84c9c78f6493c03f273"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): Sources/GrAIdient/Layer1D/DotProduct1D.swift:419-425 | Sources/GrAIdient/Layer1D/DotProduct1D.swift:446-452 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1616-1622 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1147-1153 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1191-1197 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1078-1084 \u2014 there are 6 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/DotProduct1D.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"baed266f6ff883e35e98fdc3489326da2577b4fd63d821084fefd025e5638754"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): Sources/GrAIdient/Layer2D/Convolution2D.swift:1690-1696 | Sources/GrAIdient/Layer2D/VQ2D.swift:753-759 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:724-730 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1198-1204 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1083-1089 | Sources/GrAIdient/LayerSeq/VQSeq.swift:676-682 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:1690\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1196\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:751\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1690}}}],"partialFingerprints":{"codehealthFindingId/v1":"1684b9b0c74f2e2525c6acec74a6b13425058f3ddda970f138cd778ab37610ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): Sources/GrAIdient/LayerSeq/ConcatSeq.swift:309-315 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:821-827 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1777-1783 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:255-261 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:529-535 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1771-1777 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/ConcatSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ConcatSeq.swift:309\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:829\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/LayerSeq/ConcatSeq.swift:317\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d9f6509bf7036ae1b6a7295fd06bd911c721b54fc2b7579b177427db94ed15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): Sources/GrAIdient/LayerSeq/QuerySeq.swift:360-366 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:480-486 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:362-368 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:480-486 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:937-943 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1066-1072 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2daa7b02f01b6bcb24c2574f3271e46b5a4c348bae61b4350035f660bc97c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:948-954 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1642-1648 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1686-1692 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2503-2509 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:3113-3119 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:948\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f56e198fd9d470862371fd340b30601722f7f06e011595a391c60ebb3f85d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): Sources/GrAIdient/Layer1D/Concat1D.swift:371-377 | Sources/GrAIdient/Layer2D/Concat2D.swift:415-421 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:495-501 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:735-741 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:834-840 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Concat1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Concat2D.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"168fb0f34fe0fb12abd784ea25a73013a4041af97c4a5eff4c05201da135bd78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): Sources/GrAIdient/LayerSeq/ConcatSeq.swift:417-423 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:458-464 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:967-973 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1173-1179 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1060-1066 \u2014 there are 5 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 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 \u0060Sources/GrAIdient/LayerSeq/ConcatSeq.swift:417\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/LayerSeq/ConcatSeq.swift:424\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift:465\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1093d7a098e80fa46bb8c26140c4e6508109a532021ef9ae8a9d6c024deeaba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1032-1038 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1926-1932 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2641-2647 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:3210-3216 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1032\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1039\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2648\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fc2509eb5192253011f1db922ab89d0c2a00443e328c44875ad1aaf73b982ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Sources/GrAIdient/Layer1D/LinearError1D.swift:300-306 | Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:251-257 | Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:337-343 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:613-619 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/LinearError1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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, \u0060Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:345\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer1D/LinearError1D.swift:308\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/LinearError1D.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9523d87ebbeb564c948a4dc65b707a867b553eb946a9ddea3aae6c7bfc34c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Sources/GrAIdient/Layer2D/Normalize2D.swift:547-553 | Sources/GrAIdient/Layer2D/Normalize2D.swift:600-606 | Sources/GrAIdient/Layer2D/Normalize2D.swift:700-706 | Sources/GrAIdient/Layer2D/VQ2D.swift:1279-1285 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:608\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:555\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a941af52c34bf97f7739bafce2291939833080f3b24cdcf7f61f070b0df87b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:928-934 | Sources/GrAIdient/LayerSeq/LayerCAMSeq.swift:176-182 | Sources/GrAIdient/LayerSeq/RoPESeq.swift:362-368 | Sources/GrAIdient/LayerSeq/VQSeq.swift:754-760 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:936\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/LayerSeq/LayerCAMSeq.swift:184\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d48c810902f6adc94d459788447a61d254d8bbd2247adb44ff9f5f5808a8f9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Sources/GrAIdient/LayerSeq/QuerySeq.swift:146-152 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:326-332 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:150-156 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:328-334 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:146\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad292519e528b4292dd4c14acace622b5403874d19ad3c28e0646d4b767bea7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1785-1791 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1819-1825 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2569-2575 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1785\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1785}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2eeddc5ec06351709cd504c145fbebd05942ada25471b80e021f09ec0ccf33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:53-59 | Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:55-61 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:83-89 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"32aca3e13b0511525e37b634fe54371a68ba881c1baaae1dbc35a4be9491ef4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/GrAIdient/Layer1D/FullyConnected.swift:1122-1128 | Sources/GrAIdient/Layer2D/Constant2D.swift:551-558 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:986-993 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Constant2D.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:1122\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:1121\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Layer2D/Constant2D.swift:551\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df8a696fc4b58f8e3e8195227ea7c4ff9711ce551afc6a6ae9d145f3297f8f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/GrAIdient/Layer1D/LinearError1D.swift:297-303 | Sources/GrAIdient/Layer1D/Softmax1D.swift:311-317 | Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:334-340 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer1D/Softmax1D.swift:318\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Layer1D/LinearError1D.swift:304\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/LinearError1D.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac9d9ec3a2da6ae62ec4eb07e3e7f8ba1ea094b50be533deffc5d75cf3a6e98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:555-560 | Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:751-756 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:692-698 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:692\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"330e04514f76f0466ba66df2dc9c538ae593a5209efb3bc75826e7f567818e84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/GrAIdient/Layer2D/Convolution2D.swift:1664-1670 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1174-1180 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1061-1067 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 186 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:1664\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1664}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb827512e553ef0833a10990b7eababe38108364c0831b27df09d9f8ba9c1f33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/GrAIdient/Layer2D/Normalize2D.swift:285-291 | Sources/GrAIdient/Layer2D/Normalize2D.swift:758-764 | Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift:268-274 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:765\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift:275\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f3805d651596e229b19fae0eea77f7d6286e05c817e884b46547f96b104b03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/GrAIdient/LayerSeq/ConcatSeq.swift:283-291 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:715-723 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:583-589 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/ConcatSeq.swift:283\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff412e868d12d51acf38d749359e8f034368d50c947a911ec180722a71cfdada"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:587-593 | Sources/GrAIdient/LayerSeq/RoPESeq.swift:361-367 | Sources/GrAIdient/LayerSeq/VQSeq.swift:753-759 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 112 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/LayerSeq/RoPESeq.swift:360\u0060 calls \u0060UInt32\u0060 and \u0060Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:585\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6356395250e83b1457d9b49ceb4952989915e0e555b1512d93a0c9f49216318"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:383-391 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:688-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 \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:383\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"23256e2b8ca61db6edc3d12d6f7954865c71584ae40400e28a07156354f2d15b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/GrAIdient/Layer2D/AvgPool2D.swift:164-170 | Sources/GrAIdient/Layer2D/AvgPool2D.swift:235-241 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AvgPool2D.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"28866a965118d1c826fc7d6183e541f8023363b2bb14aaff4f0c0a3c4e7bf03a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/GrAIdient/Layer2D/Input2D.swift:38-44 | Sources/GrAIdient/Layer2D/Input2D.swift:67-73 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Input2D.swift:38\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Input2D.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"045bdc7a69019810651132a893cf5fd90d500e87f9e0088ca70ae59a6241d7ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/GrAIdient/Layer2D/MaxPool2D.swift:361-370 | Sources/GrAIdient/Layer2D/MaxPool2D.swift:451-460 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/MaxPool2D.swift: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/MaxPool2D.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"0100241866ef07b2c360ea1c5b10c1f9f051f388919d9d7e46837a9f73c1dad3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): Sources/GrAIdient/Layer2D/Normalize2D.swift:606-612 | Sources/GrAIdient/Layer2D/Normalize2D.swift:708-713 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:606\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:707\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:606\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4c1dcb6712bd1d111435ad5b527e8bc6b8d8798d2a94a71b450901416c413c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:247-253 | Sources/GrAIdient/Layer2D/VQ2D.swift:832-838 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:839\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:254\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab0837d0eff8d4e0420d9744ba7240ac7afbfba71128c06bd7f3ed4e498f89bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:125-131 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:174-180 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:125\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"6339b28e32c30538dddb2996cdf7f4b8de6a4e4e6edd49312035c8ca59656a3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/GrAIdient/Layer2D/VQ2D.swift:1054-1060 | Sources/GrAIdient/LayerSeq/VQSeq.swift:974-980 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 378 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"6222e6273da25d1477ea2277817fbb76f9d03c75c581bf83d5d6c6d7e49ab8d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:569-575 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:735-741 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:569\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:743\u0060 calls \u0060download\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:577\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d813fa86c68888480143967860b371a58140ef76f357047c8c932c702174fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:951-957 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:974-980 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8d9639432251b615a4d2c8177bfee8d2362b6a9cc09ac92ce3df2483e546de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:1299-1305 | Sources/GrAIdient/LayerSeq/RoPESeq.swift:361-367 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/RoPESeq.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/LayerSeq/RoPESeq.swift:368\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:1306\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"8018d52af8dade9bdb47d065524c1ba3c020b7de3c1517cd33a499e437c8d4b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/GrAIdient/LayerSeq/RoPESeq.swift:357-363 | Sources/GrAIdient/LayerSeq/RoPESeq.swift:443-449 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/RoPESeq.swift"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5ec8bd3585584fc49ef7ea4a846e348a4d14a1512600f721c70a40fbcac99f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 21): Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:570-575 | Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:610-615 | Sources/GrAIdient/Layer2D/MaxPool2D.swift:375-380 | Sources/GrAIdient/Layer2D/Normalize2D.swift:553-558 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:273-278 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:306-311 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:229-234 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:240-245 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:207-212 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:236-241 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:585-590 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:510-515 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:377-382 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:310-315 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:737-742 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:822-827 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1778-1783 | Sources/GrAIdient/LayerSeq/SelectSeq.swift:186-191 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:256-261 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:530-535 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1772-1777 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/MaxPool2D.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer2D/MaxPool2D.swift:381\u0060 calls \u0060setBytes\u0060, \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:576\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc939d98faade4e0592207befef8da2ed21639a2e6c179bf690b2f35ce9b6b9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 19): Sources/GrAIdient/Layer1D/Constant1D.swift:460-466 | Sources/GrAIdient/Layer1D/FullyConnected.swift:1100-1106 | Sources/GrAIdient/Layer2D/AvgPool2D.swift:245-250 | Sources/GrAIdient/Layer2D/Constant2D.swift:531-537 | Sources/GrAIdient/Layer2D/Constant2D.swift:549-555 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:347-352 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:382-387 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:299-304 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:285-290 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:271-276 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:304-309 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:706-712 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:639-645 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:475-481 | Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift:229-234 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:984-990 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1212-1218 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1097-1103 | Sources/GrAIdient/LayerSeq/SelectSeq.swift:265-271 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Constant1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/AvgPool2D.swift:245\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer2D/Constant2D.swift:538\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer1D/Constant1D.swift:467\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c219fe5ee3cc252b951715cb58c72b5ebea99c247c4055352666c32e0777fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 12): Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:780-785 | Sources/GrAIdient/Layer2D/AvgPool2D.swift:246-251 | Sources/GrAIdient/Layer2D/Constant2D.swift:533-538 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1664-1669 | Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift:286-291 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:477-482 | Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift:230-235 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:459-464 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:968-973 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1174-1179 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1061-1066 | Sources/GrAIdient/LayerSeq/SelectSeq.swift:267-272 \u2014 there are 12 copies across 11 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 12 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift: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":"Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ca407015141a73033a8e00588ab87b7a397fb86f1bcc474d60ec62697ef862"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 12): Sources/GrAIdient/Layer2D/Normalize2D.swift:289-294 | Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift:272-277 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:504-509 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:532-537 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:2023-2028 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:2053-2058 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:504-509 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:531-536 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1105-1110 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1133-1138 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:2015-2020 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:2044-2049 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:289\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:511\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:296\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c8edcbb41284ffd17ba4946562e55242ce93fa7e9ed92021e52ac35142b277"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 11): Sources/GrAIdient/Layer1D/DotProduct1D.swift:421-426 | Sources/GrAIdient/Layer1D/DotProduct1D.swift:448-453 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1618-1623 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1639-1644 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1683-1688 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1149-1154 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1193-1198 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1039-1044 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1080-1085 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:953-958 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:976-981 \u2014 there are 11 copies across 5 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 11 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift:421\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:1626\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift:429\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/DotProduct1D.swift"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"530af117ab25d99802b7fb652ee36f2ff1c2fb0686ef08d6ef82b76267c3a1dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): Sources/GrAIdient/Layer2D/VQ2D.swift:661-666 | Sources/GrAIdient/Layer2D/VQ2D.swift:717-722 | Sources/GrAIdient/Layer2D/VQ2D.swift:750-755 | Sources/GrAIdient/LayerSeq/VQSeq.swift:584-589 | Sources/GrAIdient/LayerSeq/VQSeq.swift:640-645 | Sources/GrAIdient/LayerSeq/VQSeq.swift:673-678 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 378 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:660\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:716\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"537bd7329f29b25e7353c8590a7cc7fe28725d00d5937eeacf17242b265267f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2658-2663 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:3091-3096 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:3162-3167 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:3193-3198 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:3227-3232 \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":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":2658}}}],"partialFingerprints":{"codehealthFindingId/v1":"a068a19b19e15a78c5f428bd1103bccee343b66a10b883f6ffa68bf234f8774b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:905-910 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1785-1790 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1819-1824 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2569-2574 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:905\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c09d5383c36a71e3ffae084080cffb059a6bb5988c37d31885e4b75e42ce1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/GrAIdient/Layer1D/FullyConnected.swift:300-305 | Sources/GrAIdient/Layer2D/Convolution2D.swift:481-486 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:205-210 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:184-189 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift:478\u0060 calls \u0060decode\u0060 and \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:298\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"758a7ec687ad20eed8de43f8ef22ef72b1bf6ca618092540f97bdefc7dd66b60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/GrAIdient/Layer1D/FullyConnected.swift:1047-1052 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1558-1563 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1106-1111 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:998-1003 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:1047\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ef5d173cd299940810ebf33ad207a25ae80d13af8eae4b9778bd6187e732c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/GrAIdient/Layer1D/FullyConnected.swift:1174-1179 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1744-1749 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1252-1257 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1136-1141 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:1174\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"e341b1c7a9ec08283bd79c54a31604211c4bf4ff02dfe19ac2e15da9731e13e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:573-578 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:696-701 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:494-499 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:626-631 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 252 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:573\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"16dc4fff20d0a8b4104b1da4a7b67c0f1765851ed94ad0be28ba7847df960e14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/GrAIdient/LayerSeq/QuerySeq.swift:322-327 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1612-1617 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:324-329 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1606-1611 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift: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":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db87afa41c16e0fba53acdfcb304db55f5b88d6730f90d78813c4fb0f20180e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:969-974 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1015-1020 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1085-1090 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ef78f646ffeb7ee718bfc6ecb5fba5d301cbc3c7fc670943e2f19600ed2ec6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1036-1041 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1930-1935 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1972-1977 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c20c80621ecb258553f7c14c99a4b8a9f2e35d6363e5c026d0a720374cc85f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1062-1067 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1844-1849 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:3170-3175 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1069\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:3177\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef8e05d54844037d0e36748490dcc52cf2a3a0e4a337bc5c9b33f08eb4c0b6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1720-1725 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1753-1758 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2537-2542 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1720\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1720}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95ee5844e8b9150665c0cce3dd6331730448d446241fa7e86d38e680a71aef9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/GrAIdient/LayerSeq/QuerySeq.swift:263-268 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:266-271 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:838-843 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift:263\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"4285fdadac42f0556da9502f0527624c576d49ad34476ea653e0cf366aee5587"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/GrAITestsUtils/Trainer.swift:547-552 | Sources/GrAITestsUtils/Trainer.swift:602-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 \u0060Sources/GrAITestsUtils/Trainer.swift:547\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAITestsUtils/Trainer.swift"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0445f9e8044f371e2e884339a4f3b7a296108244cb673097afa19d9a34e2955"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/GrAIdient/Core/Function/Normalization.swift:30-35 | Sources/GrAIdient/Core/Function/Normalization.swift:51-56 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Core/Function/Normalization.swift:30\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Function/Normalization.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef46f44ea1394947375ef6f93dc40e22ca960643cdda7f76e69bec3c6af44e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift:219-224 | Sources/GrAIdient/LayerSeq/VQSeq.swift:568-573 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift:219\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff5cef0d1f1be28af202afad2b7474d3dbf68efc468ead5cc5e63646c778f8c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:366-371 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:521-526 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9a5a0a6f10cd4fedb940e04ea35df986ffcc395f7cd0ad85f1ac86bac8d099"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/GrAIdient/LayerSeq/VQSeq.swift:442-447 | Sources/GrAIdient/LayerSeq/VQSeq.swift:1251-1256 \u2014 both copies are in the same file, so extract the block 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, \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift:1257\u0060 calls \u0060Float\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift:449\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/VQSeq.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c25577679b925ea19884e4b7f1453d07337a1766aee0e828168dc01d775be66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 27): Sources/GrAIdient/Layer2D/MaxPool2D.swift:375-380 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:306-311 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:236-241 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:585-590 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:510-515 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:377-382 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:310-315 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:737-742 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:376-380 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:506-510 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:534-538 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:822-827 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1778-1783 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1877-1881 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:2025-2029 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:2055-2059 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:379-383 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:506-510 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:533-537 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:956-960 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1107-1111 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1135-1139 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1688-1692 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1772-1777 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1872-1876 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:2017-2021 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:2046-2050 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/MaxPool2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/Crop2D.swift\u0060 as WHOLE FILES: this scan already matched 8 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/MaxPool2D.swift:375\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer2D/MaxPool2D.swift:382\u0060 calls \u0060setBytes\u0060, \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:313\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/MaxPool2D.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dffdcfd91633a469982e14a2b06e065e65dd05e9ebfe39d463dd7d7d615e05a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 24): Sources/GrAIdient/Layer1D/Concat1D.swift:377-382 | Sources/GrAIdient/Layer1D/DotProduct1D.swift:423-427 | Sources/GrAIdient/Layer1D/DotProduct1D.swift:450-454 | Sources/GrAIdient/Layer2D/Concat2D.swift:421-426 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1620-1624 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1641-1645 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1685-1689 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:348-353 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:501-506 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:383-388 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:300-305 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:312-317 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:272-277 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:305-310 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:708-713 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:641-646 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:418-423 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:840-845 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1151-1155 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1195-1199 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1041-1045 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:955-959 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:978-982 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:340-344 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Concat1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Concat1D.swift:377\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift:422\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Layer1D/Concat1D.swift:377\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d9b3d3dd3f9200ee43780e0bf4e2bfaef6e6aee3c9c84c4f4b45f1c1e78bf02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 21): Sources/GrAIdient/Layer2D/Concat2D.swift:320-324 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1370-1374 | Sources/GrAIdient/Layer2D/MaxPool2D.swift:379-383 | Sources/GrAIdient/Layer2D/Transform/Crop2D.swift:309-313 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:239-243 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift:589-593 | Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift:515-519 | Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift:380-384 | Sources/GrAIdient/Layer2D/VQ2D.swift:1350-1354 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:313-317 | Sources/GrAIdient/LayerSeq/ConcatSeq.swift:740-744 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:939-943 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:378-382 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:827-831 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1698-1702 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1881-1885 | Sources/GrAIdient/LayerSeq/VQSeq.swift:1267-1271 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:381-385 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:960-964 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1692-1696 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1876-1880 \u2014 there are 21 copies across 14 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 21 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer2D/MaxPool2D.swift:384\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Layer2D/Concat2D.swift:326\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Concat2D.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd913dcc1bfdc028b3551588019b07361e6c8aafd75ec8d7ee43dd24ea5fe12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 19): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1971-1975 | Sources/GrAIdient/Layer2D/Normalize2D.swift:291-295 | Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift:274-278 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:376-380 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:506-510 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:534-538 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:1877-1881 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:2025-2029 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:2055-2059 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:379-383 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:506-510 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:533-537 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:956-960 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1107-1111 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1135-1139 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1688-1692 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1872-1876 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:2017-2021 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:2046-2050 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1969\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:289\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1971}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7ac6dc2c799a2abcabba54846f663aa0c0eeb77398c9f11a839ce2896733de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 19): Sources/GrAIdient/Layer1D/Concat1D.swift:279-284 | Sources/GrAIdient/Layer1D/DotProduct1D.swift:329-333 | Sources/GrAIdient/Layer1D/Dropout1D.swift:343-347 | Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift:572-576 | Sources/GrAIdient/Layer2D/LayerCAM2D.swift:188-192 | Sources/GrAIdient/Layer2D/Normalize2D.swift:609-613 | Sources/GrAIdient/Layer2D/SelectNeurons2D.swift:275-279 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:397-402 | Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift:231-235 | Sources/GrAIdient/Layer2D/Transform/Flip2D.swift:242-246 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:209-213 | Sources/GrAIdient/Layer2D/VQ2D.swift:526-530 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:841-845 | Sources/GrAIdient/LayerSeq/LayerCAMSeq.swift:184-188 | Sources/GrAIdient/LayerSeq/RoPESeq.swift:370-374 | Sources/GrAIdient/LayerSeq/SelectSeq.swift:188-192 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:258-262 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:532-536 | Sources/GrAIdient/LayerSeq/VQSeq.swift:454-458 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Concat1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer1D/Concat1D.swift: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift:459\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Layer1D/Concat1D.swift:286\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd170f614524571261ef06532527c0c7e20b6e8ab35079cbd153c24cf182fdb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 16): Sources/GrAIdient/Layer1D/DotProduct1D.swift:423-427 | Sources/GrAIdient/Layer1D/DotProduct1D.swift:450-454 | Sources/GrAIdient/Layer1D/FullyConnected.swift:1085-1089 | Sources/GrAIdient/Layer1D/Softmax1D.swift:318-322 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1620-1624 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1641-1645 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1685-1689 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:690-694 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:723-727 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1151-1155 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1195-1199 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1041-1045 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1082-1086 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:955-959 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:978-982 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:340-344 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/Softmax1D.swift\u0060 as WHOLE FILES: this scan already matched 5 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer1D/DotProduct1D.swift:428\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:1090\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/DotProduct1D.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c6d35afe5c8e079a7fbb80174782134d3efb44558f921d3884b772bf2aaa1c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 9): Sources/GrAIdient/Layer2D/Activation2D.swift:201-205 | Sources/GrAIdient/Layer2D/BN2D.swift:469-473 | Sources/GrAIdient/Layer2D/BN2D.swift:482-486 | Sources/GrAIdient/Layer2D/BN2D.swift:527-531 | Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:292-297 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:393-397 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:406-410 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:451-455 | Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift:140-145 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Activation2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/BN2D.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/Activation2D.swift:201\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Activation2D.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0dc42d5021fb7921582d2b4cffc9e727d0f0df7aad405929723b1a2e010c949"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): Sources/GrAIdient/Layer1D/FullyConnected.swift:1049-1053 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1560-1564 | Sources/GrAIdient/Layer2D/VQ2D.swift:525-529 | Sources/GrAIdient/Layer2D/VQ2D.swift:1348-1352 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1108-1112 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1000-1004 | Sources/GrAIdient/LayerSeq/VQSeq.swift:453-457 | Sources/GrAIdient/LayerSeq/VQSeq.swift:1265-1269 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:1345\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:1047\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc365e7b4bbb6667f578316d7b7c6cc8c9c892e736c3f591e978ac9eb592c56b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:240-244 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:309-313 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:381-385 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:464-468 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:602-606 | Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:686-690 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:387\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift:316\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d5edd86b1b33371f8811a5bc38fcbf7d1341da6a5b663a00ad8512a2febb12d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): Sources/GrAIdient/Layer2D/Normalize2D.swift:544-548 | Sources/GrAIdient/Layer2D/Normalize2D.swift:597-601 | Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:226-230 | Sources/GrAIdient/Layer2D/VQ2D.swift:514-518 | Sources/GrAIdient/Layer2D/VQ2D.swift:1276-1280 | Sources/GrAIdient/Layer2D/VQ2D.swift:1334-1338 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Transform/Pad2D.swift\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/Layer2D/Transform/Pad2D.swift:232\u0060 calls \u0060Float\u0060 and \u0060Sources/GrAIdient/Layer2D/Normalize2D.swift:551\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"457465a262063cafd37e2d538c7a713c8743df3a2b0918ff7b6775b4da82847c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): Sources/GrAIdient/Layer2D/MaxPool2D.swift:379-383 | Sources/GrAIdient/Layer2D/VQ2D.swift:526-530 | Sources/GrAIdient/Layer2D/VQ2D.swift:1350-1354 | Sources/GrAIdient/LayerSeq/VQSeq.swift:454-458 | Sources/GrAIdient/LayerSeq/VQSeq.swift:1267-1271 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 378 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:1347\u0060 calls \u0060setBuffer\u0060, \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer2D/VQ2D.swift:525\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/MaxPool2D.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a61f9bfde697475e323c279069982eb4556bb8cde2703a28daf539a74c0baa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1037-1041 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1931-1935 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1973-1977 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2645-2649 \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, \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1036\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2644\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b131bd59ee1fc94bef2edbc16961a2a61406be19aad4150ab26de73b8a3682a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1068-1072 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1850-1854 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1887-1891 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:2603-2607 \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 after the matched lines, \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1892\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1073\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"78000fcfc7085aeb85e221e5c74e075cb68821c047ca99db8d96ae1a1e22a177"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Sources/GrAIdient/Layer1D/FullyConnected.swift:913-917 | Sources/GrAIdient/Layer2D/Convolution2D.swift:1364-1368 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:935-939 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:839-843 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:940\u0060 calls \u0060setBytes\u0060 and \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift:918\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a63de1dfa072fd8318dc5fd905bbd519f311bdae66debae5e279181a292f0aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Sources/GrAIdient/Layer2D/AdaIN.swift:713-717 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:644-648 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:683-687 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:721-725 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/AdaIN.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/InstanceNorm2D.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/GrAIdient/Layer2D/AdaIN.swift:713\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaIN.swift"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"a10d33de60017f3a8ccb92d6213156ffde7efb130a2a4625197baa1f69e14590"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:986-990 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:3112-3116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:983\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:3110\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ac9e095042fedd9e8e4e5202b8ef308d5e2e720e535e2b8d9295ceec9e0ba7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/GrAIdient/Core/Layer/LayerNormalization.swift:985-989 | Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1098-1102 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:983\u0060 calls \u0060setBuffer\u0060 and \u0060Sources/GrAIdient/Core/Layer/LayerNormalization.swift:1097\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8e240ba1da1dbc8aea46e0b439848b69b3e935ed557760ac0485ef0bebb231"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/GrAIdient/Layer1D/Dropout1D.swift:342-346 | Sources/GrAIdient/Layer1D/Dropout1D.swift:422-426 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Dropout1D.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"442f346e6d6bf3e7e0687945e0b36e3262a3c6ef2038cf44fc41f23c9d386ec9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/GrAIdient/Layer1D/SelectNeurons1D.swift:252-256 | Sources/GrAIdient/Layer1D/SelectNeurons1D.swift:329-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/SelectNeurons1D.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"c100a2a67f08e42573631e6ef44adcde2273435bbc665b8539c1bc2f15791d10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/GrAIdient/LayerSeq/QuerySeq.swift:1491-1495 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:1514-1518 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1491}}}],"partialFingerprints":{"codehealthFindingId/v1":"477adf2afe1d96f12070b6ec272b3465598b7670bd2b2ddefa0504aff95e2d51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/GrAIdient/LayerSeq/RoPESeq.swift:369-373 | Sources/GrAIdient/LayerSeq/RoPESeq.swift:456-460 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/RoPESeq.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70373de6ab8442f8e7e7f39e6c7b42a1a8377a01c93ee916bead1ff3fa6b55c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/GrAIdient/Core/State/Neurons.swift:154-159 | Sources/GrAIdient/Core/State/Weights.swift:185-190 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/State/Neurons.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c6fa3fe85bc540b8caf3dcee00e7eda9cc0870412130e3ee7187ebf0facadd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/GrAIdient/Layer1D/Activation1D.swift:90-97 | Sources/GrAIdient/Layer2D/Activation2D.swift:97-104 | Sources/GrAIdient/LayerSeq/ActivationSeq.swift:94-101 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Activation1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Activation2D.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Activation1D.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0dafac452f9aa0770e5342df991f7848215af6fea244c7378539821ab00a16b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/GrAIdient/Layer1D/Activation1D.swift:110-119 | Sources/GrAIdient/Layer2D/Activation2D.swift:117-126 | Sources/GrAIdient/LayerSeq/ActivationSeq.swift:114-123 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Activation1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Activation2D.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Activation1D.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4662a4916ca21da5e13fa862c3399e45224231f784e171e0c621fa2fbc4f33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Sources/GrAIdient/Layer1D/BCE1D.swift:335-350 | Sources/GrAIdient/Layer1D/BCESigmoid1D.swift:354-369 | Sources/GrAIdient/Layer1D/MSE1D.swift:318-333 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/BCE1D.swift\u0060 and \u0060Sources/GrAIdient/Layer1D/BCESigmoid1D.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 218 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/BCE1D.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"3515fc0bd8406fe336273e7f3a4a3e85f216b16ee2e7d0274a3bb148116eb524"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift:68-73 | Sources/GrAIdient/Layer2D/Base/LayerMerge2D.swift:126-131 | Sources/GrAIdient/LayerSeq/Base/LayerMergeSeq.swift:71-76 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Base/LayerMerge2D.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 129 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"448705d25ce42ae208ec1f00ce7173ff0b09fa22c1b2c386d7392c81702faefb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift:86-91 | Sources/GrAIdient/Layer2D/Base/LayerMerge2D.swift:144-149 | Sources/GrAIdient/LayerSeq/Base/LayerMergeSeq.swift:89-94 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Base/LayerMerge2D.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 129 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce3fcec0dca98c454f47077e74ae6667ecc193e552f48ad143ad88c4bde1bdda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift:98-112 | Sources/GrAIdient/Layer2D/Base/LayerMerge2D.swift:156-170 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Base/LayerMerge2D.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 129 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5fb77b3d7a1a0408439070fbaa80291c32637a0dc397d199c8b22f389513b61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift:119-125 | Sources/GrAIdient/Layer2D/Base/LayerMerge2D.swift:177-183 | Sources/GrAIdient/LayerSeq/Base/LayerMergeSeq.swift:122-128 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Base/LayerMerge2D.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 129 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"578359cb9a60ff004e7bd258062e0125ed3c762498e1845ce6db3bb10bcd9823"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift:194-202 | Sources/GrAIdient/Layer2D/Base/LayerMerge2D.swift:252-260 | Sources/GrAIdient/LayerSeq/Base/LayerMergeSeq.swift:197-205 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Base/LayerMerge2D.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 129 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b852baff58a43a60598256ff34496b035809709f054b04b8a2f511600879eee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:72-77 | Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:74-79 | Sources/GrAIdient/Layer2D/SimilarityError2D.swift:102-107 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37fe2969a8a1d239dc90ee6851fbf06aaa5715d21b8850bacb6da25f4480023"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/GrAIdient/Layer1D/Constant1D.swift:41-53 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:525-537 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Constant1D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 267 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8c1cb05bb0825e08b8ffe0662611a4b0ccc6f000672b1fe26e4c181361c369"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Sources/GrAIdient/Layer1D/Constant1D.swift:109-116 | Sources/GrAIdient/Layer2D/Constant2D.swift:116-123 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:110-117 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:595-602 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Constant1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Constant2D.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0eb4e7570f10a5912eda9391ce87c27749fa088a2d8bb60a674a70b9e2e9499"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/GrAIdient/Layer1D/Constant1D.swift:249-267 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:736-754 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Constant1D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 267 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc381a92fc9d92ac8a9da9d782e196b88edf7cc3a0286010c28442d19c68a586"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/GrAIdient/Layer1D/Constant1D.swift:560-573 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:1068-1081 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Constant1D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 267 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ca05a234d8741a3b586e9f0c74c047a7bbf6f4effd58e2599024238579ab7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): Sources/GrAIdient/Layer1D/FullyConnected.swift:196-208 | Sources/GrAIdient/Layer2D/Convolution2D.swift:181-193 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:103-115 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:95-107 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"f90efc0c5aa1a9d039cd3f4f5930eecf1033ba3b432028f25660ce8ac8ba1a98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Sources/GrAIdient/Layer1D/FullyConnected.swift:506-515 | Sources/GrAIdient/Layer2D/Convolution2D.swift:697-706 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:397-406 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:372-381 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a3ab22c36511a104a068859abef3059de0250011b79745e79dfb58d67ba6a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/GrAIdient/Layer1D/FullyConnected.swift:1189-1198 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1267-1276 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1151-1160 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 473 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":1189}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5068fd4bcf81c1f288c25537950462eaf3f19aed79ea71f6184fe32953f55eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/GrAIdient/Layer1D/FullyConnected.swift:1201-1210 | Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift:1279-1288 | Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift:1163-1172 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/FullyConnected.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 473 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":1201}}}],"partialFingerprints":{"codehealthFindingId/v1":"898dbca675ce9c88a0b71b8bb7f02db5c9ee11e0d34fd78f460ae1e337037c79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/GrAIdient/Layer1D/Softmax1D.swift:59-64 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:65-70 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:61-66 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:69-74 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Softmax1D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Softmax1D.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af3e35c001444f2c99f608b3c04d131dd6bb71d77ad2b06e61d9fe8c8cdae48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/GrAIdient/Layer1D/Softmax1D.swift:77-82 | Sources/GrAIdient/LayerSeq/QuerySeq.swift:83-88 | Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift:79-84 | Sources/GrAIdient/LayerSeq/ValueSeq.swift:87-92 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Softmax1D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Softmax1D.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d29b938f136f9b0081151a3874794ceffe00d11be3ccfa9f95a857ceb181cc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/GrAIdient/Layer2D/AdaIN.swift:91-98 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:118-125 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:117-124 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/AdaIN.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/InstanceNorm2D.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaIN.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c69225a1ae76ec25ed7d417a1554bdd6175863cfaf74d3cde85bea8e7efce87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/GrAIdient/Layer2D/AdaIN.swift:198-215 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:296-313 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/AdaIN.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/InstanceNorm2D.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaIN.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9940a1adfa36d43a8bbc193ae2744ccfb644e9c237d2120c6131456f4ed33e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): Sources/GrAIdient/Layer2D/BN2D.swift:44-55 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:44-55 | Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:44-55 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:47-58 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/BN2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/InstanceNorm2D.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 320 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"Sources/GrAIdient/Layer2D/BN2D.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"d747f133b7199003e67255ea95f44275568c4826a54885e3552f98bdced680d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/Layer2D/BN2D.swift:693-701 | Sources/GrAIdient/Layer2D/InstanceNorm2D.swift:617-625 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/BN2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/InstanceNorm2D.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 320 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BN2D.swift"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"6106c0070c25ea59d0a7820167b8f76097705a322f2b23e139cba3699de0b49a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift:251-263 | Sources/GrAIdient/LayerSeq/VQSeq.swift:367-379 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e805236ff4ea5c5e10510c3b6fde689533112272bcd0271fdf1047c89f2be98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/Layer2D/Convolution2D.swift:308-319 | Sources/GrAIdient/Layer2D/MaxPool2D.swift:29-40 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/MaxPool2D.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"38dc21ca7ebbde759b353003fe995f7ca2d8e3f95e15415a60df1df12e5092d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/Layer2D/LayerCAM2D.swift:47-55 | Sources/GrAIdient/LayerSeq/LayerCAMSeq.swift:46-54 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/LayerCAM2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/LayerCAMSeq.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/LayerCAM2D.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe7cdde79ff783c15ad9a02257b908093c07eae81e0d51385e665c0caa2a11a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/GrAIdient/Layer2D/LayerCAM2D.swift:68-73 | Sources/GrAIdient/LayerSeq/LayerCAMSeq.swift:67-72 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/LayerCAM2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/LayerCAMSeq.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/LayerCAM2D.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c53649b5fa6f1840459ee209f18d01f9d2375ba42a7780a2072e8a7965e5874"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:86-92 | Sources/GrAIdient/Layer2D/VQ2D.swift:382-388 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1f1c79e232fbb81df089ac97121ee897c3d8b367931ea389159d2bb31cd792"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:107-114 | Sources/GrAIdient/Layer2D/VQ2D.swift:403-410 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e19d304df0c4efb6833ddbf2fdc0e8ad647a30c59a85ac42cce904c5d1ca8b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift:128-134 | Sources/GrAIdient/Layer2D/VQ2D.swift:424-430 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a3420a9a0d4645eab06885d18a42fb335833a0c7321272759266806aeb549ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/GrAIdient/Layer2D/VQ2D.swift:1140-1144 | Sources/GrAIdient/LayerSeq/VQSeq.swift:1060-1064 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 378 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c149b4ad3ae28e7d18a617fd78b487773965d212095e268293c2b7533e3372c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/GrAIdient/Layer2D/VQ2D.swift:1152-1164 | Sources/GrAIdient/LayerSeq/VQSeq.swift:1072-1084 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 378 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d181e47669d35d03532ab2933ce8f5fa31d684a6bc4d3bee74d328a1910bb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/GrAIdient/Layer2D/VQ2D.swift:1171-1175 | Sources/GrAIdient/LayerSeq/VQSeq.swift:1091-1095 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/VQSeq.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 378 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"47eac5e8b668828f1f415de8a4effc98677f9d4f05867c7e5e49da5df5bda44f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:612-620 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:626-634 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/LayerNormSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/RMSNormSeq.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/LayerNormSeq.swift"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"a052f95eb98611c0c4fad6cbb10859fe34c4255d2efabc4b5a7ef8b9e3ae2d13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:656-662 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:670-676 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/LayerNormSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/RMSNormSeq.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/LayerNormSeq.swift"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb23dc50c332f9c0475089a389dcc14cf5c697278e354bd70594df779961a867"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:690-696 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:704-710 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/LayerNormSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/RMSNormSeq.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/LayerNormSeq.swift"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccc7753b6de560213e0a7b78c914aef9a5595fbae66e4b0a05c41d386bfd80f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/GrAIdient/LayerSeq/LayerNormSeq.swift:724-730 | Sources/GrAIdient/LayerSeq/RMSNormSeq.swift:738-744 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/LayerNormSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/RMSNormSeq.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/LayerNormSeq.swift"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe70dc831aa4c5fd747bad9f7c5f488ab971250a3f458448cef3744dd4b8c35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift:38-43 | Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift:22-27 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060layerPrev\u0060 to \u0060Layer1D\u0060 in one and \u0060LayerSeq\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1fa315902351c078bc3b1434b31776fe8a59368b678bfeab47d8b801ad5618"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/Layer1D/Constant1D.swift:275-286 | Sources/GrAIdient/Layer2D/Constant2D.swift:333-344 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer1D/Constant1D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/Constant2D.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"3545b4764b20a86a20e1a89f6f93c4f402ac7092e3b919933e32278939a933a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/GrAIdient/Layer2D/Convolution2D.swift:325-337 | Sources/GrAIdient/Layer2D/MaxPool2D.swift:46-58 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/Convolution2D.swift\u0060 and \u0060Sources/GrAIdient/Layer2D/MaxPool2D.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"adba7a2fd86c3fff63df9420a855095bc9db1bd0840db6a3b11bbaa371a03c56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): Sources/GrAIdient/Layer2D/VQ2D.swift:79-92 | Sources/GrAIdient/LayerSeq/ConstantSeq.swift:39-52 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:52-65 | Sources/GrAIdient/LayerSeq/VQSeq.swift:63-76 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/Layer2D/VQ2D.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift\u0060 as WHOLE FILES: this scan already matched 4 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb45355a2ffbef942b4d3e1e0e99a48fae35f32d0423d8fb2aeb8977b2f7cdea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/GrAIdient/LayerSeq/ConstantSeq.swift:762-773 | Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift:447-458 \u2014 before extracting anything, compare \u0060Sources/GrAIdient/LayerSeq/ConstantSeq.swift\u0060 and \u0060Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConstantSeq.swift"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd904b810230189e3ebe289354375ee8dec27bdab57d4cb581c69316366c806e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/GrAIdient/Layer2D/Multiply2D.swift:203-207 | Sources/GrAIdient/Layer2D/Multiply2D.swift:293-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 \u0060Sources/GrAIdient/Layer2D/Multiply2D.swift:203\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c8dba3da0ab9e04c2e59f36404694aa0f6dd3a747d52aaa9d0c32fadb87706"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: GrAIdient: GrAIdient: abstractness 0.07, instability 0.00, distance 0.93 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"00c154a4f9eff4005f3828fd21cdf74e1b9a8e71721b0474fd5fe6c4be126307"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Model (LCOM4 10): Model\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":"Sources/GrAIdient/Core/Model/Model.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e72ec31e2acc8a5c90c69e4f7045e9d2be708f65c1287b29bff94a6de0240c9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LayerOutput1D (LCOM4 9): LayerOutput1D\u0027s methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1526ba0ae73cf6f0d5b0b7fd5bf055ecfb6d7bd30f63575468c280145df3d6b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LayerOutput2D (LCOM4 9): LayerOutput2D\u0027s methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c10dc554c2dac8990c2aa5b1b839cfb0e014fb0a1b8d5d219900cd5fa7ff3bc"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BN2D (LCOM4 8): BN2D\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":"Sources/GrAIdient/Layer2D/BN2D.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"b020b63643e47a4238637652423e1a30d1bce7b4a60b668b05e83309ad87fe4a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Deconvolution2D (LCOM4 8): Deconvolution2D\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":"Sources/GrAIdient/Layer2D/Deconvolution2D.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d25c3eeb6111c8bd2202055f10489d06acf95e55900d83411df1ee7ed186d52"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Input2D (LCOM4 8): Input2D\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":"Sources/GrAIdient/Layer2D/Input2D.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ffa0414d2efe14ad6553f89ef7c62f95d2bbc2d84b0dde209702eca900047a3"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: InstanceNorm2D (LCOM4 8): InstanceNorm2D\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":"Sources/GrAIdient/Layer2D/InstanceNorm2D.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22a3e263164b0144f94939b6c84feae593392cba01be9e271dbc8911c4e6b23"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LayerNormSeq (LCOM4 8): LayerNormSeq\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":"Sources/GrAIdient/LayerSeq/LayerNormSeq.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dfffabb9c430649075b93bf2ada0c773dcb89d899c4cce2d03e3e0d57db6738"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RMSNormSeq (LCOM4 8): RMSNormSeq\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":"Sources/GrAIdient/LayerSeq/RMSNormSeq.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb1571b8d1080bcf61b299b9d9449ff559c34fa6ed835c94eef9c1c61ff42fd4"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Input1D (LCOM4 7): Input1D\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":"Sources/GrAIdient/Layer1D/Input1D.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"680262b8a5387caa3e32724aa4ea99c2dae269c49b06c6e5eef1145b361af3fc"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AdaIN (LCOM4 7): AdaIN\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":"Sources/GrAIdient/Layer2D/AdaIN.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3aedf4d52c83bfdaf1630e630247ac157feb89835e83a74bf50090eef8d0dba"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: VQ2D (LCOM4 6): VQ2D\u0027s methods fall into 6 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 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a9a92048f7c2dc54367bb0e3bc8035405e0a82eaf5ac521dc3f39d96e2c4d5"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LayerCAM2D (LCOM4 5): LayerCAM2D\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/LayerCAM2D.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a129cfa9f0bc16bada5fe2b8be5f8c3b148ef81643025225e9872ec5f3e7ae23"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Normalize122D (LCOM4 5): Normalize122D\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3748ee03aefc14b5f231b6fa4f6fa34090d83504dd898feca3b95e00e81474"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LayerCAMSeq (LCOM4 5): LayerCAMSeq\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/LayerCAMSeq.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb650cb75abde9b24e13339a72dae090b7a5d7bcd660faa48df887a62378283"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SoftmaxCausalSeq (LCOM4 5): SoftmaxCausalSeq\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"b792fff835873c6576c9eefe9bff2bb9f4f93b535186166129f52fc5a5cfcedb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ActivationFunction (LCOM4 5): ActivationFunction\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Function/Activation.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"499bbc6147c6a9bb90243de9d2df71fa1b7c3c24256a099e8c3e9be091809705"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: OptimizerAlgorithm (LCOM4 5): OptimizerAlgorithm\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Optimizer/OptimizerAlgorithm.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d802c03ecdf3c698c63de6f95e5a08ce9f3e570cc89d15d1a5dfc9ddd7ffc5"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LayerInput1D (LCOM4 4): LayerInput1D\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/LayerInput1D.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33db54a4191e4c15941d3c15485c930ff35f1a591cf21edb2c599c38c3d4318"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LayerInput2D (LCOM4 4): LayerInput2D\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/LayerInput2D.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"259e3b4140f742c84e413ce66195c6a0225a5c31a3b370417fed708c8b228783"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ColorJitterHSV (LCOM4 4): ColorJitterHSV\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ColorJitterHSV.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"c557965e27f51a4f3ced35d817857253d96c08cd01cc651fd808a918609bd6f8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FlipVertical2D (LCOM4 4): FlipVertical2D\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Flip2D.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd6b2466e7abb43cddff63b52ff3eb8743afaa5542e76e890cc205741c8332eb"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testPrecision: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/Layer2DTests.swift"},"region":{"startLine":6864}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b98a1f901aebf288c7e91e9a7480455e2b100960760ae6a3ffda2430cf6a8d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testPrecision: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/Layer2DTests.swift"},"region":{"startLine":7391}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee078440c35acb7bcde264c9717db2f14f6c201288ed04d05b85bc694644b978"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testGenerate2Float16: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/NLPTests.swift"},"region":{"startLine":2265}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a32d735c0d76c9341fa4a5ad23947e712ec868cdfaa75777df4eccc61cb5b2"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testGenerateBatchSize2Float16: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/NLPTests.swift"},"region":{"startLine":2290}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ef88d483b29a675ee2470cf83811cc74e3d9e2d58f1a831122afcfa8375558"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test1_TrainSimpleModel: No conventional assertion call was detected, and 12 of 16 tests in \u0060GrAIExamples\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAIExamples/AutoEncoderExample.swift"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"81358ce3c5aaf13afc8b8a61753a6657ac79c81f47d9432b39ec1158cc94ec33"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test2_TrainUNetModel: No conventional assertion call was detected, and 12 of 16 tests in \u0060GrAIExamples\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAIExamples/AutoEncoderExample.swift"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c161de9b3d2fbdf9b0049d018bebe00f1199685123024e174379ee240526cf"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test3_TrainStyleModel: No conventional assertion call was detected, and 12 of 16 tests in \u0060GrAIExamples\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAIExamples/AutoEncoderExample.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad093c2e3babfa5cbc78e08c6ca8243a88928478e73f95df8469dc826afb534"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test1_DumpLoad: No conventional assertion call was detected, and 12 of 16 tests in \u0060GrAIExamples\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAIExamples/CIFARTests.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1e39adca3db7234787aba46cde0cd088b2f908908580a81a9f82ccdef27827"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test4_DumpTest: No conventional assertion call was detected, and 12 of 16 tests in \u0060GrAIExamples\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAIExamples/CIFARTests.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"34eda5db46057b7907f448a60cc227e981eb88194d35354e7f7de17ae0131e20"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test1_DumpDataset: No conventional assertion call was detected, and 12 of 16 tests in \u0060GrAIExamples\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAIExamples/TransformerExample.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"5841d73bae484d9b8dd5a3789fef828c7f41e744b17d4acfac4d52a9ebfbc972"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test2_TrainTransformer: No conventional assertion call was detected, and 12 of 16 tests in \u0060GrAIExamples\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAIExamples/TransformerExample.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"de611490ea08bc79f5f39aec4e7fb20c88c50b1dbbe8a7953b019999254df5e4"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test1_DumpDataset: No conventional assertion call was detected, and 12 of 16 tests in \u0060GrAIExamples\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAIExamples/VGGExample.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb25882a47b3c7b4a3bb8a748afcc12e35078b13f6d79243387aae9e32e3020"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test2_DumpImages: No conventional assertion call was detected, and 12 of 16 tests in \u0060GrAIExamples\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAIExamples/VGGExample.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b690e80f5254f37fa541505bfdb14099e34a901b6199a1e3da8223f79c36c6"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test3_UntrainedModel: No conventional assertion call was detected, and 12 of 16 tests in \u0060GrAIExamples\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAIExamples/VGGExample.swift"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc08e8f1cf3c2063abb1e53261410f5b95388be52c70f8e510dddd4e03513c8"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test4_TrainVGG: No conventional assertion call was detected, and 12 of 16 tests in \u0060GrAIExamples\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAIExamples/VGGExample.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9832fce2e509aa33fe992f6fc4885b89e1bdd9dd50dbec20b22d968a1f3b2d"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test5_CompareModels: No conventional assertion call was detected, and 12 of 16 tests in \u0060GrAIExamples\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAIExamples/VGGExample.swift"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd29b79e886d3ffc9be904dffa1b384879bc6a9d8a844e14cda5286f56781d0"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testBigSlice: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ConcurrencyTests.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f146a433e4d213f57fd243172c73cf20160316dffa7fbfbbcdd0fe4565839b"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testSmallSlice: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ConcurrencyTests.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c6ac01a607639c6278418862ac0e0a546bbf0f9ad25f273ee36d863b164f2d4"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testVerySmallSlice: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ConcurrencyTests.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"707f2de8d759241abe628e6477b40304a2d914c51805b62d56d377466a97c30b"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testNoneSlice: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ConcurrencyTests.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c39de8bdd6b103c58503788aaead58710476c60346f48736f1db31796c2ed50"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testRotate1CPU: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ImageTests.swift"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0c3a57730bda81058d1e8d3696481cbc1ea445edf22c5ad5fa2ac91a071099"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testRotate1GPU: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ImageTests.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"0068335d2e051bbf3970bf3f55151142ab3d2efa62754577e080e871a94d6e06"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testRotate2CPU: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ImageTests.swift"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"14c398690d38925e8b6dbe2e0d6a2fd57d82bbc6e741abed66df16517d6a7d7e"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testRotate2GPU: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ImageTests.swift"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa69669adc125b0472aa0370f5ce7ecfa2f77bc8688e0e57ffee56132f7c7348"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testRotate3CPU: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ImageTests.swift"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e7cf78564782e620eaa73cee9bb7289d48999e0657b5d518fa21725f59bb75"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testRotate3GPU: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ImageTests.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"29eabdf7b98afe478e98a46dad8a394a672e0a766be9e7b0111f0bd69282316f"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testFlipHorizontal1CPU: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ImageTests.swift"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"06af67f1b7ab4dbd2ae1d9955ea8e11edb6a9fbe306b6580969de83dead4e204"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testFlipHorizontal1GPU: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ImageTests.swift"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a9ea0b302cf8ceab4bdf13aa5bab72bdfe065c0e7c4f91c62290eb61cc8b1e"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testFlipHorizontal2CPU: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ImageTests.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"53db2f3ac7f1fe67d73ed20731b5bef8cc161b390b2d0f437a2a04d9ec5fa3d4"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testFlipHorizontal2GPU: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ImageTests.swift"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e891173cd6a7b1fac3ada3e420e38c9775ff1b6d3bcf75684170685cb21adb"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testFlipVertical1CPU: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ImageTests.swift"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"65766f3d825fbdbb28b865f7dcedab4673f99930d370ffb7d554f4f998421308"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testFlipVertical1GPU: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ImageTests.swift"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"05afeffffd7dfc35d17561d5ba433b7d3e3ad02e90642c142371e5e5d0a3f3fb"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testFlipVertical2CPU: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ImageTests.swift"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"37216d3c2398df11d3dd009a6af8b66edd69d148c6ca855ae6fe816d12be80d9"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testFlipVertical2GPU: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ImageTests.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a790d713a8ab6cb661d838f18a394947cad8caf2e39ab6db4dde6cd88b3295b"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testColorJitterHSV1CPU: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ImageTests.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"70293cae50830998d1584ee6f3720757970cf132318b886a6329102ce1126d43"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testColorJitterHSV1GPU: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ImageTests.swift"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32696be7f63a4da7bfab4e54cf78ad2452462e459e01415d93fc51da44e2fee"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testColorJitterHSV2CPU: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ImageTests.swift"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c721651eca93e0ecad5c48a74716f74126f41bed61c08567c401fccd075af04"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testColorJitterHSV2GPU: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ImageTests.swift"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"51d97c0ead3d6e73e74f5c66d45b2c2f352e2c5502a3f2858da6aea0d931c3a4"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testColorJitterHSV3CPU: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ImageTests.swift"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5fe974a30a606c3bb9b0c4ec5acdc86af004b15da1e486b189b2afc91553e35"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testColorJitterHSV3GPU: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ImageTests.swift"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"7862fb9cc6d55a08a41644cd96a9a20f22caa620f839db296c28f0454d1d1f32"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testColorJitterHSV4CPU: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ImageTests.swift"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a3883c7e4d13f8c1a93154bbbf22ec5fa5af4e2df1b87fe49266bfea870981"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testColorJitterHSV4GPU: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ImageTests.swift"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"3479e6fdf42fa1ec994dea3bcd13fab805fa4a59be022e4f5f26f8fa51d01772"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testLoad: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/Layer2DTests.swift"},"region":{"startLine":7092}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a5f5de07a610b535f800a007b66d93a5789344130cc9a4990b41f6c481e065"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testTransform: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/Layer2DTests.swift"},"region":{"startLine":7178}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8767e543d7fd6390c3cd09623de0cbe1196b9528d24e9ccdd52ea650db53c30"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testLoad: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/Layer2DTests.swift"},"region":{"startLine":7616}}}],"partialFingerprints":{"codehealthFindingId/v1":"52bb103fe987f989d707c7e2be875f03aa3438d6d41d1f2c3b3f9866cb902047"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testTransform: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/Layer2DTests.swift"},"region":{"startLine":7707}}}],"partialFingerprints":{"codehealthFindingId/v1":"62435dc92024f69d0f20d5149a381f8f26c9e3e570951dc9272266ab260877fe"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testLoad: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/LayerSeqTests.swift"},"region":{"startLine":3346}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf96755920d04108a98f855dd1c4b7a9f78b2e23a9444e8c70a76a23bbe35eb"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testTransform: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/LayerSeqTests.swift"},"region":{"startLine":3425}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e6f4637a3c582f561bc2682b46674d88a219ec214ac8dc19f4acb09d1567b8"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testLoad: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/LayerSeqTests.swift"},"region":{"startLine":3856}}}],"partialFingerprints":{"codehealthFindingId/v1":"c847f099432957246945fc5ab5c7b0ee0ff97d88211b0ba0a7ca3d77d6b98903"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testTransform: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/LayerSeqTests.swift"},"region":{"startLine":3947}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d62e7c43f76c6276ad06c5f4fc668224d39f82c3611c386810996c18a8404c"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testGet: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/MetalKernelTests.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"8627aa55086b49183b5712b34163b65d3ce03b24db49ce2948aee11bc3902ade"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testGenerate1Float: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/NLPTests.swift"},"region":{"startLine":2249}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c966a96b581659185205ac16cfbea949fbd997b8d3e4919680676f436c07ab5"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testGenerate2Float: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/NLPTests.swift"},"region":{"startLine":2254}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad78b199cc5330012fb73a2799973e69a9ad71e4c042e1d9e6012ede68bbcc94"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testGenerate1Float16: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/NLPTests.swift"},"region":{"startLine":2259}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ccaecceb8c27c8f0a6d600a157882ee154f4f935fa3404cc04ac6585a4af9e"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testGenerateBatchSize1Float: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/NLPTests.swift"},"region":{"startLine":2272}}}],"partialFingerprints":{"codehealthFindingId/v1":"71044df3e99f713fb5a1397f0eca67fa5732e0e25b10786cecd061af658782c5"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testGenerateBatchSize2Float: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/NLPTests.swift"},"region":{"startLine":2277}}}],"partialFingerprints":{"codehealthFindingId/v1":"c919b0a178ef81f3f30b90db94649d50526074c90aedd852f941edcef3e95d9f"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testGenerateBatchSize1Float16: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/NLPTests.swift"},"region":{"startLine":2284}}}],"partialFingerprints":{"codehealthFindingId/v1":"4237e2a5686a312555f72ecbb6a66c4a45b5b78243c510220a7925d00be0abd2"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testGenerateSlidingWindow1Float: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/NLPTests.swift"},"region":{"startLine":2299}}}],"partialFingerprints":{"codehealthFindingId/v1":"a11d714b14214e89f887062f7f4728372521f1ac801c6219a770b20dcae042fa"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testGenerateSlidingWindow2Float: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/NLPTests.swift"},"region":{"startLine":2304}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a11a80a62166176377b22c4331ae94ad0d05320f85796f367fbb4f6b27413a9"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testGenerateSlidingWindow1Float16: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/NLPTests.swift"},"region":{"startLine":2311}}}],"partialFingerprints":{"codehealthFindingId/v1":"95fd3cf90d8d8faac37ea008cca1f4093c09caa62c4771804ffa00d7be273c15"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testGenerateSlidingWindow2Float16: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/NLPTests.swift"},"region":{"startLine":2317}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e0965eaf0e9a2f492ce84976e9be3698cb6cc218bd001ae6c9ae4acff7a138"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testGenerateSlidingWindowBatchSize1Float: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/NLPTests.swift"},"region":{"startLine":2325}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c670971787eb5847a0f09e2f71d55237b22521eb46788b05b9979e4055cccfe"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testGenerateSlidingWindowBatchSize2Float: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/NLPTests.swift"},"region":{"startLine":2332}}}],"partialFingerprints":{"codehealthFindingId/v1":"f859e0a5d2088fbe15f06fae9aef1ae3e0449506e5eb864cf01bd13779ae6807"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testGenerateSlidingWindowBatchSize1Float16: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/NLPTests.swift"},"region":{"startLine":2339}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f68579747a9df08b2edd20b71826c81053b4b707d61f619569e0ee5ec95a20b"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testGenerateSlidingWindowBatchSize2Float16: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/NLPTests.swift"},"region":{"startLine":2347}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df5cd14bb4699b296374f0341654ee5d3ff7c510fc9bf243cddfc4a35ee9c9a"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testVerySmallFloat: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ReduceTests.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5e8796c3f77c880377a02700ec67375eff95d9fe580f8a2f8f6833ee060b33"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testVerySmallFloat16: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ReduceTests.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ecbc490bcea3f3ccdfb84dcd389bc5d7e4174f02819132131d4edff9f28f8d"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testSmallFloat: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ReduceTests.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"e98f9e564416d5a65060524479436da54da0aa460d55229c07053485b1aec739"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testSmallFloat16: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ReduceTests.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"6724ab5b57e4befc779f147343965fc44191579e6ca7d707538ba10b24421d58"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testBigFloat: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ReduceTests.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc95b51144c0f55c50b873f1bb02ce18f98b9e31f5dc31f55ade0ed757390dfd"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testBigFloat16: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ReduceTests.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc0e7075073aea6874d4537b9b048f3b6eba05c3bf743edb9b15a522cf7c977"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testVeryBigFloat: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ReduceTests.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"58bc4eb663ac706a5002faa3ce019d94aa372cd353e403c3766b4c6983ff5883"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testVeryBigFloat16: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ReduceTests.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b5dacc58c3b21da680ec4dd1d28d0f87d0712a0f41f5053911c83cdac3141f"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testVerySmallFloat: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ReduceTests.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6ca27ba8de6721cca8a0d3558f06573726225aa76e8ae3fcbdc93c2ae43448"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testVerySmallFloat16: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ReduceTests.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ce7903f34fd946fb0ff042872b81f25fa7c1bbbbd3452d2b6e081af99ea393"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testSmallFloat: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ReduceTests.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac814b72ee07e262a78070c5376c627e3a267665c9eb03d553a20ceef6081ee"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testSmallFloat16: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ReduceTests.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0c09159cd4bba1a4bbfd3ae04420e260fe0a78e49e2bb42f43495a46adce20"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testBigFloat: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ReduceTests.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6723dc4f3d3954ecba0761c30ab77462992742269f3767f8b13a1bcea128ff"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testBigFloat16: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ReduceTests.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"393cd878a990166d8dde27d971ee4fd6f4dd53856405eed28288f84e873aeb35"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testVeryBigFloat: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ReduceTests.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e0ffb68ad4090bcec4f79d375576e2a1a2f5159998fc63b29fd1527792ff72"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testVeryBigFloat16: No conventional assertion call was detected, and 65 of 76 tests in \u0060GrAITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAITests/ReduceTests.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d8d45c351ab3be26449638a5c49864eb65c063fcb466fb989028d158773907"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: pythonkit: Dependency \u0060pythonkit\u0060 is declared in Package.swift against branch \u0060master\u0060 \u2014 the declaration pins no immutable point, so \u0060swift package update\u0060 moves this dependency to whatever that branch holds at the time, which is code nobody reviewed. Pin it to a version requirement (\u0060from:\u0060, \u0060.upToNextMajor(from:)\u0060, \u0060exact:\u0060) or to a \u0060revision:\u0060 commit SHA."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"83b97089572e2f74678445098fafa64a9ad3ce9a5ee2decf7e9515d9289991b1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/GrAIdient/LayerSeq/QuerySeq.swift: Sources/GrAIdient/LayerSeq/QuerySeq.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in QueryCausalSeq.forwardGCCPU at line 1350. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2024-06-03..2024-09-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272024-06-03 23:32:52 \u002B02:00\u0027 --until=\u00272024-09-01 23:32:52 \u002B02:00\u0027 --full-history --no-merges -- Sources/GrAIdient/LayerSeq/QuerySeq.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd00991d2569fd90193d6e307fdf11aa052fdc50d5cbc344caf1f61e20f243c8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/GrAIdient/LayerSeq/ValueSeq.swift: Sources/GrAIdient/LayerSeq/ValueSeq.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ValueCausalSeq.forwardGCCPU at line 1400. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2024-06-03..2024-09-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272024-06-03 23:32:52 \u002B02:00\u0027 --until=\u00272024-09-01 23:32:52 \u002B02:00\u0027 --full-history --no-merges -- Sources/GrAIdient/LayerSeq/ValueSeq.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"93764ccc10fae305b15a81a861fb66c28f0c3d40e5dffbfda2669ec07674fcfe"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Should replace this with finfo(dtype).min \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAIExamples/Base/python_lib/nlp/model.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b236122733572213d37e7033a5aca6a8353a8884d42f3b5f80e18356ce9965"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Should replace this with finfo(dtype).min \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GrAIExamples/Base/python_lib/nlp/gemma2/model.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4689ce8b950ca624b7bade005bac2fd5712bffbd390cfd24c5aa0cc33c571b0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: when using sliding window with an instruct model, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1767}}}],"partialFingerprints":{"codehealthFindingId/v1":"7166c7aa96ef8715bb62620d067542aae263fb15585cf6b1e2eb220fd4d6b845"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: when using sliding window with an instruct model, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd15c5c477e6b571d06f5c50fa4e700a62cef75b8efa10137c432ff8549b3a11"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3ca63a85de86594d1447ff381dab5e6929a857c87b92efef97ca212b38871d26"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"858c37254034cce4c4f9d341ade1645129d6ea1ca05d3634c06304011e9ecddd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"725c137e82235740b3633ceb41bf9aff2501c97601fd4490bf3815ee8edec222"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"a3feb5f212e68a0e0fec83aa3cbf108d2c611d228fb2ab6dcbcdb05a4652a028"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","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":"e2b048e456a6139fee75fd22f23ee40746243021384be7b4fe4a82582f84f544"},"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":"158ba5a5f2a85a6435b553c4366c33121ec7314ae836969196c21a532b768f9f"},"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":"D34","level":"note","message":{"text":"Dormant codebase: 101 of 101 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 101 separate risks. Counted over 101 of the 105 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerNormalization.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a38f6430dfb83dccb41a646faae5092ede672d9b5485ecdd8399a11c94f1d1"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/QuerySeq.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d7232ea0a7534a21776d0d4fa90d1325f339dd15f80da8481c3c30321b2694"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ValueSeq.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8313b39d7f651d5d0be172f56fdc46f30806b198f5809d6ed860d840336eb3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3fb50b10084ed04ab17739b3c701d896601a9c9bbbe7019ba7b29d2e04c33f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedPatch.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78852e1683d125ccfc9a4e98224ba14cf40d2b683f58d7103713368b8f94340d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/VQ2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5cca1476b94d555c3e9ce78981f1744e76aeb1d06faf74744f940bdad8d1885"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/FullyConnectedSeq.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc278797d1ad73fa8cfe45a467e62dec5dd4a05f87fe42ad770dce77f782603"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/VQSeq.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ea80980d773dd56d5a068857845f02d57fbc650d7826a5c1ec705f2d7c4e84"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/FullyConnected.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"276c9672890bbdac6925848f25b41754133a98d9bf3e3e5163f811504db6f106"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAITestsUtils/Trainer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1bd040d0af1b7393456ed0c448d944e0cfa8339a0b383a4b9f514b50a5d5167"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Metal/MetalKernel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6837514b195bb3b894989f1d72c0464d46c6b64e1d7e2f0aec7af5a18b30e063"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Model/Model.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a6f1fcf17b09d4a03a934fd88885ea3fbdbbf1267a8e7d9eff34489ffd0abca"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Deconvolution2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3153cfee09d7c196f20bcc47c49777c4a7362dd38bed24a7ff24bc53d875ae4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConstantSeq.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"958cc848b604a2c8c4893d8b6e5539945758f1b6053dfddf0c54ac54e537ef83"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaptiveAvgPool2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98bee4828168c023e5f647994890d2a3888bdad0dc026c2e76dfe032f0b5d742"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Normalize2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50aa824a8aabe637cded343d32a4fa09291a20355a58373f12e6278991cec7fc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ConcatSeq.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8663fa9ef0af5ba067f0e766b63c96cd5df4cf856a48bcfeea5369386587e0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Function/Activation.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed4cc897d5b5f0e5f28b62e558e78899af106e40d117567ba2ebb0890416f08"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearCrop.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ec56ce65711b5acf1e91af3a5594eaa9c07fa33633ac494378dba7289583fc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BN2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d69213917a1ca9a435d459defc5ee673048367749fa57c1fcd72f17de2d662b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinearPad.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6886ebe4ce6576a7e9e0e6e0bb49e1f9d4eac6f0a050bade8b478d9215a9a96b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityError2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef48e2fbde8d4a4947d08ae255dd76910aacb9034b37a38c90b95e1c66ffdc5f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/EmbeddingSeq.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14dc792841b38a683261232394b8667c564a2defc95172a1af8fd8e689fb7653"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AdaIN.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b8698a8edd9cfeb8bc3a47a4aaac8bc4cb732ea531d2d8e5a6e6f07abbe946"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/InstanceNorm2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c4531ead75ed9d3d618c716d2451bac825800bf34e091bc189b0d5ff15e0eb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/RMSNormSeq.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"794d985a68ce2c33c77ad17fd4f6e4bb3c16e4f10eb38f86201f58153e89b10b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/LayerNormSeq.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b25d52965fc57f04a8fc73d014ae17f3ad4ab4092a5e221501508aa0e9bbb1c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCESigmoid2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f04d619c51a1fb46b41c39e532c63e777326b2a2db9d6130afa6209a20b1ef5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Constant2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5ad3f7d4f0f12458d9f0146f3fbad1b7c751989ee27d2be84681b5bb08e53c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Optimizer/OptimizerImpl.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2ed67d7ae34b95a08326bf3d01f9ef8e5c05b7e06d103d83a3aa85f2bb46ff"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/BCE2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b5451c1edf4054d429c0015fc2e235403c87d655f51f12c68ead6bec84bfe7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/SoftmaxSeq.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef2c711c1ab47109a0ae21fa560831fdc178e8a91be896472359c9361dd97eb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/MSE2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b376af2875f8277e2ce7679ca87652bb879b2967d6f8cd858912bf71674897db"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0b90f82ae82bffa6ab7a16b0db2412a1fedd0d8302b2ea703d0301ac3a605f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c6bb7c3018c6b5cb56d86096792921ffa89f87ef8a8d41881bddd588772a1cd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Rotate2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"776859d81c8747f526b58fcfae936f235efe56c1b1a12a9491be8ec54cabe374"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Optimizer/OptimizerAlgorithm.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57bd0b5df7c05cbffb603932f3094509fa05385aad9edbbca016c8e9841d979b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/RoPESeq.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9896762cc27c6233c2b3dec655264d481e366a64bda653d1de0693d7e8377660"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/MaxPool2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"618e3230063c26c68119e239203e2e18774d3970bb1b9aa8a6f19dab1030e0d7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerUpdate.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65ee4a177ff0885e1d0c625d06c78e77500d968345516fa10cf1272a6fdfe203"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Flip2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a15fbd97fa41724b9ebc1c46109e95929943c9e57106fe4bf803d378280504d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Input2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c98f7b8114b3a371c5683f2a84894c8fc72b8e8b5dd26b5658a593cd7218db"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/MutiplySeq.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3022f3e3b7e3f1d76fa3726772f6b227067e2d5cab4798e6a018a682c1fe6e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/DotProduct1D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44caed15e291365ec6ea9042373706256a10fc14aa6362e6ca1b730dfe15b36a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/GrAI.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1540b1e5e0b27e3c1d97157f9f66679969a1a265c82149c9ab99b5d70c4c6ca6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Dropout1D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51aecbcd41b98b045e7fc557dcb646c0dfa3f842d4257106de8ed915697a3d2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Concat2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba978e67f8d5562e7ce656231f423bc30e3f52a21dac725a9addc95d456a7196"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Crop2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c045d0e9364e7471538bd0fb4b8df9e62a57e43bd945c43629ba99aac5376b9d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e71169522635e4f51b3733e59a6d6b253c25ca6bcbe3b42a3863189cd3d18d6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/BCESigmoid1D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19dd1469d00c35b363f61e8ddc79fde233ba91c7cad4d2f6088cb43a2db31f2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Optimizer/OptimizerVariable.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e21536af6fbd327cdd217e97b0b1574ac0fb1f5e1337f0c2f9bd81ac0dd00b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/BCE1D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a847f14284704685793414c74c00c38b26e7d50ff92e8c49b3bf84ceb065241"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Sum2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"833b3863956fac1226f00302c283db063bdc4822514800d2411cf3c64f714cd9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Metal/MetalBuffer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f15c4ccec8438ca6d1f7684e4b5b3eafa9c941360c2ac444cf544b314231e9a3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Input1D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb4512d6f846f6bbdc95c65925de0c688495ffea6540b9db475841ada8e0781"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/MSE1D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"796324b0efd46fee3106bdebf5530c3f3adf11e6984bc78cb7d220a3ef8df694"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SelectNeurons2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ee0cf6e19934edd6ac99194f8e2233ad8d61bdd0f2150bc61e28eeaf7bedbe"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Concat1D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f84c21c4116e8421e07c2cabe3f849f34602626139353a61a12432c92d3c9a6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Utils/Image.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64564fafc1ee8bdddeb0f7d18f50403b0df81bced66a438885912307e4673a1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/SumSeq.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8485d7f73b6ff18ff1a329087df119fc0aa0d7bbeb1965edb9b6154c2c589c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c5b392f03280712c61ed16ed070924539e8dd09cede1741b45b80c8948942f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d786b71b026d6a9898b1ebf78bbad993942403654582e2a1bd1dc566e3aba992"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Sum1D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45d3da629d0ac0824a22a7bbb30bd053bc310756f8d299d3fe48aea97a13c39"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/SelectNeurons1D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae440966af9d4bc9fef31bcb2a075b2a4a31496da79055e7f8b819ccf4935cce"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Softmax1D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ded269b0deab963c59a07e92c37615ab4df271aa10cbaa5a21fb746ae49be44"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Activation2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a358d45a10ff6f80e28744585966041a2490b3c6e832f18b157ee8cb95175a7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ColorJitterHSV.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c137031be6ae069cdf2900b114f3f466db18aa418199bdf2f6a82684c6f158"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/Pad2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1125e0a3f71c8636dfb705d012a071ac38cfc75cf066644ba6023dec2f42b77"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Function/Normalization.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e948265c26bca14a91a363932fe064595de5496b243eaa04794da14126d9e3a1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/ActivationSeq.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61e2f634c0cf3105757f04df7e6b60cc79c66efee0b3cccc6cf8373a964ae56"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/IRDFT2RGB.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e949e9a610934e48c43bf8364bb5705475e6031ce6d40077adb244878d21614"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Optimizer/OptimizerKernel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f767a192a1658d1d77d4a14032f1364c62df445fc62e0cf7aba09585099b2718"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Activation1D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd59a3a8fbf3efc7ff6ff03d4105d3952e595f96be81ab283eb7c0e00aa5e901"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/DecorrelateRGB.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1bc5c1d46fb6976e9b5882af0a94f2842ce5d2f37b14de5e7891e0ad0d05733"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/LinearError1D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f0f5d893dc62c5e836a23670a457bb65b851f98d0ee106813082750561fc070"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/Layer2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73f2e31c86d817a3659ced0fe60f0c31dd0f4f49e58bd9fa9faf081abd567c8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/Layer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b753bb6cf26c9ea4660c25088342db4526d6ce3d3113b592624b639e496fa048"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SelfCorrelate2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb9bee15acf8fb26348c1c6a08b3cff3537b9b1f918c6f9c098227a6707e342"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/LinearScale2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e64ff7554b59b74376e00be02af2fae9e8e3e46dbef66c7b479866049898747"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/LayerMerge2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1686fea6f81b0506f1f7cc75231eacd5afba5543c1287b6970d34abaab9f75c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/State/Weights.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25432253d7668b75a0d6392d704752bdad3edaa302fa6764231f0b6c6a445a19"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/SelectSeq.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f708b3f97ca0689a06aa2e4ed9cbd98dff95d1eb81c3ded64332cb3616a82e9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/AvgPool2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba50ecca3a2c2b1c78ceac38045540ec523a0f406ceff78efa2e3d0081b6f821"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/FTFrequences2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d30dda6114552a5fc96ccc315f59f3017db72578e5dc1ca9e98d31cd56b35f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/AvgPoolSeq.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d4e70d51280bdc99beb7ddbfc3963d0700e0870ef0d413c3a6921d379c9b00"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/Base/LayerMergeSeq.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde86dceb2256ebd027b6944684ce5593246f76872f8a1f4a5c99bd571e404b8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/LayerMerge1D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9d118d0410680b5f621913185e384f5c2d72c544435244f80583601b26b8a0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/Layer1D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4716f1c91876059c51d203905a4709b323663c5d39d3a0a2d6f6dd817be8e8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/Base/LayerSeq.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf052f0d066919567786c901a8cebcc269f845c6b999f75f978b603f0fe0344"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Utils/Serialization.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4297cffdee21e11aa8c7469c5e4994b45f2a5009a90dd8e7b9a0f9d5027530f3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/LayerCAM2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec153ddc3e01e172ed6cda69249a2c8a2532e86da7147ee0928bf004fc2b2769"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/LayerInput2D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae8f25617854315345c4cae70bd35dce1ecbc33bd16ccf8a204f90a8436810e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/LayerCAMSeq.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b841ac0db03ceb2fe82bd19352ee673727f29b52bd65c0248dc5f8284a1191fd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Metal/Reduce.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1480c07b2817a51bca9216bbc99343e0742c1a47a3745cc64b42b4a1f4c726"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Utils/Buffer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee15624a1a2a5896f354e231b9886ff31f45e10043c92e9b577c6d581b51d70"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/LayerInput1D.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa6cd8aacbc41e241c2ffc699cd31f484146de79f25a8b08d7b1965c07bfcd5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/State/Neurons.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a922622bb381cf0b9172354b1421f549833cd02985a7a0839bd204447e5bf1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Layer/LayerInput.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6cd0e278407babfb2258dda927a61c402ab80f562d4eedfdc0c88aed50f8903"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/State/Ensemble.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"646d8871f011af9669c42ec4abed6e6ec6febcb8d8e884562a2bc0d18eac68ae"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Model/ModelContext.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e6c7f544c6397757170a63fc0b32afa5d128918d709e002eb02ddd4ea7af55a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Transform/ResizeBilinear.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad09f84a5de7cc3274c6ca6e394ee276a663570ebe088b850ff84dc42dac76b9"}},{"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":"adcdaf4943fb088c1ef7758d6e512ce09af5376bbfa1aeb6b7dddb5af3caa85d"},"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":"cdc38ecb12247b7716f405e22b92e3f98ed10b46f15ae30f53e8d7bb33e36387"},"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":"03b4e7154b6962c8aea5ccfe1f758e0252946d7e717461ec1037d69e304756ca"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 3 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/unit-tests.yml"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060batchSize \u003C= 0 || batchSize * batchSize \u003E loss.nbElems\u0060 appears character-identically in 2 files \u2014 Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift, Sources/GrAIdient/Layer2D/SimilarityError2D.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/SimilarityBatchError2D.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36170bf4b7b6863406b0cb2c8cdaa695d84e0063a0fd239f7c2c47228cb9163"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060batchSize \u003C= 0 || batchSize \u003E loss.nbElems\u0060 appears character-identically in 2 files \u2014 Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift, Sources/GrAIdient/LayerSeq/VQSeq.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Base/LayerOutput2D.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7baf2364cee4b3fd880de30aae1513617e6d73c6365b118c10f30cf4cb1c6d0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060batchSize \u003C= 0 || batchSize \u003E neurons.get(0)!.v.count\u0060 appears character-identically in 4 files \u2014 Sources/GrAIdient/Layer1D/Base/Layer1D.swift, Sources/GrAIdient/Layer1D/Base/LayerOutput1D.swift, Sources/GrAIdient/Layer1D/LinearError1D.swift, Sources/GrAIdient/LayerSeq/Base/LayerSeq.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/Layer1D.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"c84a6c6b85aad0b3b273e57391621b6b6f08d087889eec70d0b99822255708a2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060batchSize \u003C= 0 || batchSize \u003E outs.nbElems / nbNeurons\u0060 appears character-identically in 2 files \u2014 Sources/GrAIdient/Layer1D/Base/Layer1D.swift, Sources/GrAIdient/LayerSeq/Base/LayerSeq.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Base/Layer1D.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c0d3f4214deb44bce4248552ddd5883ea9f4bba0e84d8735819f499790909d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060computeDeltaWeights \u0026\u0026 GrAI.Gradient.sample \u0026\u0026 _wDeltaWeights == nil\u0060 appears character-identically in 10 files \u2014 Sources/GrAIdient/Layer1D/Constant1D.swift, Sources/GrAIdient/Layer1D/FullyConnected.swift, Sources/GrAIdient/Layer2D/Constant2D.swift, Sources/GrAIdient/Layer2D/Convolution2D.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer1D/Constant1D.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31cb30b98f1568d1f58a64fbe94b125a4806124425d78b30a6e88c22d7d8b18"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060depth == DEPTH \u0026\u0026 depthPrev == DEPTHPREV \u0026\u0026 k-startI == I \u0026\u0026 l-startJ == J\u0060 appears character-identically in 2 files \u2014 Sources/GrAIdient/Layer2D/Convolution2D.swift, Sources/GrAIdient/Layer2D/Deconvolution2D.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Convolution2D.swift"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2f284acb03442381d6b533fb1f783959c64f689a327a01a6a4f9506942dbca"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060i \u003E= 0 \u0026\u0026 j \u003E= 0 \u0026\u0026 j \u003C width \u0026\u0026 i \u003C height\u0060 appears character-identically in 2 files \u2014 Sources/GrAIdient/Core/State/Ensemble.swift, Sources/GrAIdient/Core/State/Weights.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/State/Ensemble.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5ec15b54cd49f0e5d8a5871c5889439b108a8f88e57439eca9fd29365097584"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060layerPrev.height != layer0.height || layerPrev.width != layer0.width\u0060 appears character-identically in 2 files \u2014 Sources/GrAIdient/Layer2D/Concat2D.swift, Sources/GrAIdient/Layer2D/SimilarityError2D.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Concat2D.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"f458ecf1427e091b6545cba9f8fca84465dc66bdbcd7b54a70ff4166daf78ec0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060layerPrev.nbChannels != layer0.nbChannels || layerPrev.height != layer0.height || layerPrev.width != layer0.width\u0060 appears character-identically in 2 files \u2014 Sources/GrAIdient/Layer2D/Multiply2D.swift, Sources/GrAIdient/Layer2D/Sum2D.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Layer2D/Multiply2D.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f37ff2498a993ab9417535a3a8ea7971b947591a1ef106836e4803205aab54"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060layerPrev.nbNeurons != nbNeurons || layerPrev.sequence != sequence\u0060 appears character-identically in 2 files \u2014 Sources/GrAIdient/LayerSeq/MutiplySeq.swift, Sources/GrAIdient/LayerSeq/SumSeq.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/LayerSeq/MutiplySeq.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f960210ef05aa7a00e0ed2fc48142a15b417db2d54654310789e45f659074e2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060phase != nil \u0026\u0026 (phase == .Training || phase == .InferenceBackward)\u0060 appears character-identically in 3 files \u2014 Sources/GrAIdient/Core/Function/Activation.swift, Sources/GrAIdient/Layer2D/Multiply2D.swift, Sources/GrAIdient/LayerSeq/MutiplySeq.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GrAIdient/Core/Function/Activation.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f7a82619699c8ed01b91fbdeebdc798415978812c23334bd3d5e1511940d9fc"}}],"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-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-1329","guid":"f70f1c3f-4ccf-cb5e-bdd3-03ba4868d36d","name":"Reliance on Component That is Not Updateable","shortDescription":{"text":"Reliance on Component That is Not Updateable"},"helpUri":"https://cwe.mitre.org/data/definitions/1329.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-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-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-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-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-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"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":10,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}