{"$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":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"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":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"DownloadListKt.DownloadList (cyclomatic 22): DownloadListKt.DownloadList has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/DownloadList.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fcc38cb84debf17d3beaba00fab9138fbdf50dc2f639d8b2ed0bd91e640163c"}},{"ruleId":"D1","level":"warning","message":{"text":"HomePageKt.HomePage (cyclomatic 20): HomePageKt.HomePage has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"591883d673221c05f4cd2b71515e65642954a760e1edcc86806633751c9aee59"}},{"ruleId":"D1","level":"warning","message":{"text":"DashedBorderKt.dashedBorder (cyclomatic 19): DashedBorderKt.dashedBorder 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":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/DashedBorder.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ce21feebf08135df3f9597fe2dbfe1f7e1acba4657b83b418ebbfd39455b3a"}},{"ruleId":"D1","level":"warning","message":{"text":"TimeUtilKt.relativeTime (cyclomatic 19): TimeUtilKt.relativeTime has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/util/TimeUtil.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba198512ee855d00966e0287d5daf14c27e4d8724a5c6c487a0f98e73aec5f5"}},{"ruleId":"D1","level":"warning","message":{"text":"PartDownloader.start (cyclomatic 18): PartDownloader.start has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/part/PartDownloader.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"16cead71a808b5fdf3b88c49c7fc15d8233763f5804dd45ce6c1b02814b604ab"}},{"ruleId":"D1","level":"warning","message":{"text":"ProgressDownloadPageKt.RenderProgressBar (cyclomatic 16): ProgressDownloadPageKt.RenderProgressBar has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"b11857f02d161ec93b4b22f1126743e916c4f2f14b1f7792860b477c7157fc35"}},{"ruleId":"D1","level":"warning","message":{"text":"ProgressDownloadPageKt.RenderProgressBar (cyclomatic 16): ProgressDownloadPageKt.RenderProgressBar has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1a7e1898009cec8085af2e234da83f76a9d2ec6dfd0ed54bbd3318fa522d64"}},{"ruleId":"D2","level":"warning","message":{"text":"DashedBorderKt.dashedBorder (cognitive 37): DashedBorderKt.dashedBorder has cognitive complexity 37 (threshold 15). Drivers by points: if/else 21 (33 pts), boolean chains 4 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/DashedBorder.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c15433c73fbc2a8fdb617b87ae36d1ca57a58306f0c7cb92580e8195736687"}},{"ruleId":"D2","level":"warning","message":{"text":"HomePageKt.HomePage (cognitive 27): HomePageKt.HomePage has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (21 pts), match/switch 3 (5 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db330c0928a340507780671d329d43716f01e5b9f956926ee4a54f66467ff28"}},{"ruleId":"D2","level":"warning","message":{"text":"EmptyFileCreator.prepareFile (cognitive 27): EmptyFileCreator.prepareFile has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (24 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/utils/EmptyFileCreator.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"926b60e088c7c653e7d10ffc88d8683eba125af96be4b920943bc91f09eeafbd"}},{"ruleId":"D2","level":"warning","message":{"text":"FilenameDecoder.decode (cognitive 25): FilenameDecoder.decode has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 2 (4 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/utils/src/commonMain/kotlin/ir/amirab/util/FilenameDecoder.kt"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"28869005f4167492f11d96a15b6780e6145e2a4ff98051ec8503e126f228603d"}},{"ruleId":"D2","level":"warning","message":{"text":"TimeUtilKt.relativeTime (cognitive 23): TimeUtilKt.relativeTime has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18 (23 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/util/TimeUtil.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e53b297eba5fe0ece924e423e82d383d1364260b720cff7766a8066974a67a"}},{"ruleId":"D2","level":"warning","message":{"text":"HttpDownloadJob.beginDownloadParts (cognitive 22): HttpDownloadJob.beginDownloadParts has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 2 (4 pts), boolean chains 2, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"d736d01de76066d7ecb5969742a6324a059af172f1e524495220288067fa3cc8"}},{"ruleId":"D2","level":"warning","message":{"text":"PartDownloader.start (cognitive 22): PartDownloader.start has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (10 pts), match/switch 3 (8 pts), error handling 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/part/PartDownloader.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce735830abc2747d40614374d66250cc334eac5a2a75944f5c7ba31a8f67e84f"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadMonitor.startUpdateCompletedList (cognitive 21): DownloadMonitor.startUpdateCompletedList has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (20 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/monitor/src/commonMain/kotlin/ir/amirab/downloader/monitor/DownloadMonitor.kt"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"6132bdddd6bfb837d7c4a1a50e8da942f3211fb903d7df826526085d83133524"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadListKt.DownloadList (cognitive 20): DownloadListKt.DownloadList has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 2, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/DownloadList.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc69f0e2ecf5294573b690448f9690d3065c26b200d251749d499315050e6c98"}},{"ruleId":"D2","level":"warning","message":{"text":"NumberTextFieldKt.NumberTextField (cognitive 20): NumberTextFieldKt.NumberTextField has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 1, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/NumberTextField.kt"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"267b24601facc3cb912696c7f5ebd54fc9394d7a84fd62edd2986fd2adac0300"}},{"ruleId":"D2","level":"warning","message":{"text":"HomePageKt.HomePage (cognitive 18): HomePageKt.HomePage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 3 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/HomePage.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda9f8e262a712ef32e1dccb0451dedad7de04f053a49cf81835f6667a55c615"}},{"ruleId":"D2","level":"warning","message":{"text":"TableDownloadItemKt.StatusCell (cognitive 16): TableDownloadItemKt.StatusCell has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 2 (3 pts) (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/TableDownloadItem.kt"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5829bf12c6d9ab6298abc0ff4bb8bbd9e716e6613d40d6fb35838c8f467e0d"}},{"ruleId":"D2","level":"warning","message":{"text":"HttpDownloadJob.fetchDownloadInfoAndValidate (cognitive 16): HttpDownloadJob.fetchDownloadInfoAndValidate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f6c3293543c845ab60bf0222faebdf95eb1090f7dd6e7b34418b7fb76172969"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomePageKt.HomePage: MethodTooLong \u2014 HomePage runs 219 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 119 over it, 2.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":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf271c870ef2cdf48fc18e25fb9833a3ee41e1c33cfb597c9f02e6001a39110"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AppComponent: TooManyMethods \u2014 64 methods. The bar is 30 methods; this is 34 over it, 2.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/AppComponent.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"a059be626358f16453790cd0bd4ee9da2aa2ff5a927756c39a8cf796db6eea91"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AppComponent: ClassTooLong \u2014 806 significant lines (blank, comment-only and punctuation-only lines excluded), 64 methods. The bar is 400 significant lines; this is 406 over it, 2.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":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/AppComponent.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"59fb7bed022acdd8ec45fffa33856576915e7ea37f05001fd7b3908f3900ce6e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DownloadListKt.DownloadList: MethodTooLong \u2014 DownloadList runs 183 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 83 over it, 1.83\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/DownloadList.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"78bbdc88adcb021ede7f434d0e026d3f3d7e00cc757cffb19a119cce92ac4b9c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: desktop/AppComponent.kt: FileTooLong \u2014 900 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: AppComponent (88-1290). The bar is 500 significant lines; this is 400 over it, 1.80\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/AppComponent.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7046c6ee504e73718ab4c481fefdc61695f6697dd94765f1753b0a7cdce920bc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomePageKt.HomePage: MethodTooLong \u2014 HomePage runs 178 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 78 over it, 1.78\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/HomePage.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f4e2a740f0d9e822e3511a879a43cbc18f717e851bb0f6874dfb71d5c4dd3e2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HttpDownloadJob: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 over it, 1.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca58f18dce131d0eccfa4ffae5168a19eba67c6ee7950b68697f230333fff82a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DownloadQueue: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/queue/DownloadQueue.kt"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7e7c2617fc2d63c862a254618bac1e0032935e84234707198baaada2da1c1e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: QueueInfoComponent.createConfigurableList: MethodTooLong \u2014 createConfigurableList runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/queue/QueueInfoComponent.kt"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e5a47622441cf0089c99e48a4920441c060e791c24c269b3fe293b0330d812"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HLSDownloadJob: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fb56b8e3fb1f8fd42c4a96830c1036f926876299b4d12c08630d71f9737762"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CommonSettings: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/settings/CommonSettings.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b40e8f25c88cb9aa666453e97f9583c412483d793da8305f9e4ddfc5c3fcd25"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: home/HomePage.kt: FileTooLong \u2014 665 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 165 over it, 1.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b9ec8365fc4e15b975ccb5224322594fb61ec987cd3a5b95fe26eb9970ac5b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BatchDownloadPageKt.BatchDownloadPage: MethodTooLong \u2014 BatchDownloadPage runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdde35e4b45d529b3c0cb657f663eb385437f9ee15d4a8211a7e319c977ccf4d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: QueueConfigurationComponent.createConfigurableList: MethodTooLong \u2014 createConfigurableList runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/queue/QueueConfigurationComponent.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"902dcfe173cfb9fc467306e8f13f88b592cb7a988a4846b92580b0ab1731c011"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SharedKt.RenderSpinner: MethodTooLong \u2014 RenderSpinner runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/configurable/Shared.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"25157f00f958f941ae8a7ef821831db8ed73d5ffc8d69cfa07f14430e7e215ac"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MainComponent: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/MainComponent.kt"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba8bbfb3a6636fb1f584b576c4913da138d3e9b532b2e7a08eea38e8a88e32a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AddSingleDownloadPageKt.AddSingleDownloadPage: MethodTooLong \u2014 AddSingleDownloadPage 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df87ea55e28db1f844aa88df1b8f6a2ec821b9069ab4705f875bf70d45d5c0d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SelectQueueKt.ShowAddToQueueDialog: MethodTooLong \u2014 ShowAddToQueueDialog runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/SelectQueue.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e495329da9ad7f6676bc75838bec4f8a8e3b8d2746bcb6274f02c7deca57cc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: singleDownloadPage/ProgressDownloadPage.kt: FileTooLong \u2014 595 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 95 over it, 1.19\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d1ad23334e749171ec9991059fb1667f4dc1107dadc55182dc837cbb3bb7a5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BrowserUiKt.BrowserPage: MethodTooLong \u2014 BrowserPage runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/browser/BrowserUi.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"156b968ed8dfad716a34d373169618d6794429c11be651c8417f7e112e97d35d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: QRCodeScannerActivityKt.ScannerSheet: MethodTooLong \u2014 ScannerSheet runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/qrcode/QRCodeScannerActivity.kt"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"1616277c7ad2f1c887ea91b856b4ffe8558ab5b26dc2bed55421dfe0b6d13adb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: di/Di.kt: FileTooLong \u2014 579 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 79 over it, 1.16\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/di/Di.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b06a44437da9a79ed6dc2a87b3767784f54cd7aaf0b0004c3bd853e0a14aef"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DefaultCategories.getDefaultCategories: MethodTooLong \u2014 getDefaultCategories runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/util/category/DefaultCategories.kt"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c3afe32ec8c1e16ef535f9e21e18fc87b2db43f028397db5b56d31d23f2166"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BatchDownnloadKt.BatchDownload: MethodTooLong \u2014 BatchDownload runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/batchdownload/BatchDownnload.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"9feac239953c09b556416cb1874e2c413d6c15517ecf0b1a7ada2941bcff6928"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HttpDownloadJob: ClassTooLong \u2014 451 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 400 significant lines; this is 51 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae67e3a9d99c250ef51411262bff8c2911cc90ab072db8bda72a21b3c7fdfd4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: di/Di.kt: FileTooLong \u2014 557 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 57 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/di/Di.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ab72702ef3de045f06bd319c3116c7aad5dca389cadcd7a906cb5cf94f534d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AddDownloadPageKt.AddDownloadPage: MethodTooLong \u2014 AddDownloadPage runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a99edfffbf1e213f49ca807b5ef1baa696d80f23e11a1dc46d84fd71e9f4ab3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: singledownload/ProgressDownloadPage.kt: FileTooLong \u2014 542 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 42 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08b82cef16f5b92c204a540f94c169dc8d9eccef51b4e5aef427433951f4826"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: settings/CommonSettings.kt: FileTooLong \u2014 527 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 27 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/settings/CommonSettings.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b426383712cf620c3bee90de276abe29783c2ef3495da08c9eac308ce57f490"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CategoriesKt.StatusFilterItem: MethodTooLong \u2014 StatusFilterItem runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"39953f1ce6b884947ba6923c946c68ff4cbdc848ec6ade88f9db92ddcdb74e73"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AddMultiItemTableKt.AddMultiDownloadTable: MethodTooLong \u2014 AddMultiDownloadTable 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":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/multiple/AddMultiItemTable.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b08cc3c13d136555cc5f24281f3363f2f9aa91bddc835b2123ce8ff2503f33"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/MainComponent.kt: FileTooLong \u2014 517 significant lines (blank, comment-only and punctuation-only lines excluded), about 77% of them inside a single declaration: MainComponent (140-748). The bar is 500 significant lines; this is 17 over it, 1.03\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/MainComponent.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11fa3d6b5ec93dc5bca618a27597fbf95d34a1fd085323511ae7880f50927885"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LocationTextFieldKt.LocationOptionsDialog: MethodTooLong \u2014 LocationOptionsDialog runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/LocationTextField.kt"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b36ef3f747e73ab11f0375a0e5eb234382a176854419a668690d21969267e7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: QRCodeScannerActivityKt.QRBoxOverlay: MethodTooLong \u2014 QRBoxOverlay runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/qrcode/QRCodeScannerActivity.kt"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86d7c25a0e3269e8b70639fca3217cf2272f6958b3df61b0428e77e85f711fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 60 shared lines): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:132-236 | android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt:198-313 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:124-225 \u2014 These 3 members are variants of one another: a block of 60 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b93da1b4e0c7101147f807852c9077f0eb9d8aca1c0a985016a121c5c64ae7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (174 shared lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/queue/QueueConfigurationComponent.kt:41-224 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/queue/QueueInfoComponent.kt:148-351 \u2014 These two members are variants of one another: 174 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/queue/QueueConfigurationComponent.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b4984f2b5ffc5b835fd6feda460259a4f21b5a6cc5cb55cf5ccd69f0716763"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (126 shared lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt:61-248 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/batchdownload/BatchDownnload.kt:32-191 \u2014 These two members are variants of one another: 126 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc93aafe6f5ea501a5a66325f6649c8433db1049e8baf426fede20886bbcccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (72 shared lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/DownloadQRDialog.kt:100-212 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/DownloadQRWindow.kt:88-214 \u2014 These two members are variants of one another: 72 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/DownloadQRDialog.kt"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3002e30f007d539144f9ce061c8dd7bd02c909b953787ae6a95c035ba5756c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (59 shared lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:48-225 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:55-207 \u2014 These two members are variants of one another: 59 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd200211d4572235360a1a029420dcf80337fe98fa8751cd176dd775c6e6849"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/Popup.kt:119-147 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/Popup.kt:155-183 \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":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/Popup.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd42ef12103b27b1d26d645bb4abf861863dbd42634f1245f3cd2d6adc5cbf79"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:599-615 | android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:275-291 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:583-599 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:322-338 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a5f7affdfbf43ff3b26a6ea6a2b1830998788e04974af8bc139f168a7be2cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt:45-152 | android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ToggleableSpeedLimitConfigurableRenderer.kt:46-143 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt:44-149 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/ToggleableSpeedLimitConfigurableRenderer.kt:46-143 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"146c1a30850cad4487b80bb0e094c166d5ba9fe396e1237bb939881eddb475a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (126 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt:345-470 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt:357-482 \u2014 These two members are one piece of code written twice and then edited apart: 126 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed7bb3b3e160fb41198cf54fb091470b446f9cd1fcfd55c2e64c08213a59e3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (120 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt:298-422 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt:187-306 \u2014 These two members are one piece of code written twice and then edited apart: 120 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a967f59d617083fc1c15a439dbc97ea2568dc8b6e16ecbc2cad239814695064"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (99 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:218-316 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt:231-329 \u2014 These two members are one piece of code written twice and then edited apart: 99 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"688b2d0f4cacb427fac8e5a58291c7bea6e1a4a57898d64feb5f6d9f1e7d8dc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (115 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/queues/Queues.kt:73-199 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/queue/Queues.kt:77-191 \u2014 These two members are one piece of code written twice and then edited apart: 115 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/queues/Queues.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e0c9c91ef682138eda4712d7bf9ecf801a02a5115e2cecd4ca385391bbe35f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (111 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/Prompts.kt:102-212 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt:426-538 \u2014 These two members are one piece of code written twice and then edited apart: 111 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/Prompts.kt"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc0dfb98d8d4f8594ceeb5ea670220c4d94dc1a3c1a038a4a715aa853cdf9ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (70 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt:60-151 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/category/NewCategoryPage.kt:28-97 \u2014 These two members are one piece of code written twice and then edited apart: 70 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"761700680491f2e787609f6de422b5ba9d8f176d6101a4c389fce9ce7fdf6ced"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (91 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:612-703 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt:699-789 \u2014 These two members are one piece of code written twice and then edited apart: 91 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"295b99d347bc6b1625a62699ad92ad61259bb56f6f7ad4fd0e0aa2b4cfa247f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (76 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:74-157 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:101-176 \u2014 These two members are one piece of code written twice and then edited apart: 76 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"213651ac0d9f0d5a7644d03f724a906e0008957da1f331488b34c1ead59622e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (106 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt:170-282 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt:66-171 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"251e90683663d097faf7d140ed8a295353313f33d4b2fabc39ffbb97e86fa1aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (67 corresponding lines): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/widget/ConfirmDialog.kt:49-136 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/widget/MessageDialogModel.kt:61-127 \u2014 These two members are one piece of code written twice and then edited apart: 67 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/widget/ConfirmDialog.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc25a19f21c0abf058ef7260d069ca66842bb7d2ee925e921c23629961e9a96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (81 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/downloaderror/AddSingleDownloadPage.kt:52-151 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/downloaderror/DownloadErrorPage.kt:85-165 \u2014 These two members are one piece of code written twice and then edited apart: 81 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/downloaderror/AddSingleDownloadPage.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53ee86a4eb9304ab98b7bb2c6400d5100331321984d5be7265d086a6e9aaeea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 77\u002B corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/perhostsettings/PerHostSettingsPage.kt:268-346 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/perhostsettings/PerHostSettingsPage.kt:262-338 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/settings/SettingsPage.kt:71-153 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 77 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/perhostsettings/PerHostSettingsPage.kt"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f455134307717151b8bef99cd2a157a7eb06f72c8f2a36140aa4d0b3c0f8cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (64 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt:220-283 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/updater/NewUpdatePage.kt:208-282 \u2014 These two members are one piece of code written twice and then edited apart: 64 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"13175d2026523b45d14e818c95b6b776a3b198305ef01d8f6a40e06f1fac8f4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (64 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:457-531 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:444-507 \u2014 These two members are one piece of code written twice and then edited apart: 64 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"041fe9e8b695bdb45e08689a94eb7f9e24c1aa50436bb789468ac64c68362830"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (71 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/enterurl/EnterURLPage.kt:106-176 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/enterurl/EnterNewURLPage.kt:105-193 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/enterurl/EnterURLPage.kt"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b9fe812e7e0b0a4c2c8a6110a63e424a23cec51b0be5717598a62cba486feb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/menu/Menu.kt:93-145 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/menu/custom/SubMenu.kt:140-191 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/menu/Menu.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c07b8557edc4c59414816429187822aeed316741b7c8075a29a00cd2ee79e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt:545-596 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt:603-672 \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":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ef86c67eb5c0c33407fd2fe552a30a983b1f5e04ea2b74d1aeb0859520dee2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt:62-121 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt:733-793 \u2014 These two members are one piece of code written twice and then edited apart: 60 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"191bb13f4e25ed54fe60f6cb3ad98c974947c8c993801a8fed75d3b36a0e5f03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt:47-101 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt:45-97 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e846a30ebf679f916f8bf732275ac7235e6102a6d70b948c89a45e25d471cc2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt:45-116 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/updater/NewUpdatePage.kt:44-104 \u2014 These two members are one piece of code written twice and then edited apart: 61 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d0db38cb28e4aaab86f9ebaf59a7a736326866d85213710541213157bed2d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (55 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt:155-213 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/checksum/FileChecksumPage.kt:119-173 \u2014 These two members are one piece of code written twice and then edited apart: 55 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e575eb82bf4a34d013904f9640d9a6f3b72cb609e96c697e32246246a86530"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/translators/TranslatorsPage.kt:158-216 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/credits/translators/TranslatorsPage.kt:64-120 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/translators/TranslatorsPage.kt"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"933e819d44e1f723b90642e5d32e9e47218a2d689ae7fb2a5b84feed1589674d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt:155-204 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/about/AboutPage.kt:57-106 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ee3f6dba4565a47b8356fe047e5d34c6b833821ba3c2d3a5adf2845381c8f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/LocationTextField.kt:48-98 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/LocationTextField.kt:53-107 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/LocationTextField.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"854f2cc041a8cf0e1358fb3b23ea8e975b9b650ac53df11330c5287e9ee7bcdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/CategorySelect.kt:143-193 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/DialogDropDown.kt:202-248 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/CategorySelect.kt"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8717bb457f35043093bb851eb9d0b38c63ec40495350f010fd889308efa5493"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 41\u002B corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:368-413 | android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:180-221 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:372-413 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:231-271 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b17f7923de39d05fa5e48ac5b003d28567786998fa8cfaee9979e73fbd9e813"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:297-347 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:344-396 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"e32db4809038e6ae64a64dd64bcf0561471d18d4b83b198509a06a30f76d143d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt:306-342 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/about/AboutPage.kt:236-273 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"125d43280f5f71f26372e9dc4fdc6e5da8cd7eebf09b92155b0ab79aaf083b0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt:132-178 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt:152-202 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f751db94fe4517c2aacb3893aaaa9b8756421bd719516cf59a70fe526273054"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt:160-200 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/category/NewCategoryPage.kt:106-147 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"3717ed336bdb18d4c81b42ebc65ec0b70a75535fd722010aac0426c6cbd739fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/queue/DownloadQueue.kt:316-355 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/queue/ManualDownloadQueue.kt:181-218 \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":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/queue/DownloadQueue.kt"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf00c80028c1cd2431d30b7d657a562e5ed37c60b3ae914f9eea8239afe421e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 49\u002B corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:536-592 | android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:406-454 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:512-569 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 49 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"371b1e725b9751b526b083936398a52640819a6eb61724eb2cf241cb78f0b79d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/CheckBox.kt:58-108 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/RadioButton.kt:43-89 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/CheckBox.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14536ed8d0c953ad0bc4cdc745e47a13ab099ed297140873329c4d201c5763b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ShowDownloadDialogs.kt:111-160 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ShowDownloadDialogs.kt:166-223 \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":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ShowDownloadDialogs.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba6e4e2d2356a955816297e059d62a98f612af1ef31c6424e95fa4abf854483"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:238-268 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:287-315 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba4b88e0cfc99ea165b78f23cd16135c3f01b4bffa19899a65c23a666b3fc5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt:285-326 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/batchdownload/BatchDownnload.kt:227-268 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e2af14dcf6e532b7a1346667afdb84c39cee5c833b38233b2258369a047a56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt:110-145 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt:106-139 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"812da7dd8117cfcbbdce559b525000d77d6cd87b76c72fb5c8114693fb69388f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/ThemeConfigurableRenderer.kt:40-84 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/platform/renderer/FontConfigurableRenderer.kt:31-64 \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":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/ThemeConfigurableRenderer.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25cd7135d616b1595da51eddc30b9b12196ed936720984c7cb30e8371a433dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt:197-228 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt:265-296 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"152ffe3c1025c737fe0a60f7aca6374a723b97cc8c08843e2ed98c18d9ba4158"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/singledownloadpage/DownloadStatusStringSource.kt:15-35 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/singledownloadpage/DownloadStatusStringSource.kt:40-61 \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":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/singledownloadpage/DownloadStatusStringSource.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e6970d4cba5e734e8b04dceb668acf74217ab6083ecaf345de1f5448f10fef4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt:366-398 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/about/AboutPage.kt:297-327 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"3058b5a284fb4795c44f66fdc8954a9a06718e6e7e49ff821269fa1c47252e49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/custom/titlebar/linux/SystemButtons.Linux.kt:88-138 | desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/custom/titlebar/windows/SystemButtons.Windows.kt:104-151 \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":"desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/custom/titlebar/linux/SystemButtons.Linux.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"af521cbbf3e13cbe509a3d164132cbd2307c991f64ca6e6d6a60289320b804f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): shared/utils/src/androidMain/kotlin/ir/amirab/util/osfileutil/AndroidFileUtil.kt:18-42 | shared/utils/src/androidMain/kotlin/ir/amirab/util/osfileutil/AndroidFileUtil.kt:44-69 \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":"shared/utils/src/androidMain/kotlin/ir/amirab/util/osfileutil/AndroidFileUtil.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c7aee28b33bcbe805e937143a551dcea97efc9661ef6805f756c24d3a9065f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/perhostsettings/PerHostSettingsPage.kt:85-118 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/queue/QueuesPage.kt:97-137 \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":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/perhostsettings/PerHostSettingsPage.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"740b13e9a0569a3edacd1997c3e7b8a56e369389847fa10944099d73813930af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/Text.kt:42-73 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/Text.kt:95-127 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/Text.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"41159e5917b7a39deb8c5bcf9144c7fee3001710898a5be9e642815648c8a482"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/hls/edit/HLSEditDownloadChecker.kt:52-77 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/http/edit/HttpEditDownloadChecker.kt:53-78 \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":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/hls/edit/HLSEditDownloadChecker.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f204cdd8df054477c35052d918748303cfe5acf85642f5db268e5d6c7a8271"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/BooleanConfigurableRenderer.kt:29-65 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/BooleanConfigurableRenderer.kt:25-57 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/BooleanConfigurableRenderer.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"d46f363347e56b77c79a07d73ae0bb4ed83bebb9a7d972aef768c3be8e858ec6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/queue/DownloadQueue.kt:178-201 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/queue/ManualDownloadQueue.kt:135-165 \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":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/queue/DownloadQueue.kt"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"702ed0e1e03995149a25ae004f71d128950b37c409bc100bad247d352d6b5630"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/widget/Tray.kt:68-94 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/widget/Tray.kt:97-132 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/widget/Tray.kt:142-177 \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":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/widget/Tray.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca77ad5cbfc09ea16ca41d78e38ec4fa0b4581578f756e58e25735eaacc82703"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt:119-149 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/updater/NewUpdatePage.kt:107-137 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9b5c2c2c02d86a6061c1ab58b81ef4c9d24f763c8a8e23c0c9ba203079fc7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt:403-440 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/category/NewCategoryPage.kt:350-385 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f377c85b5664b5ba07f09cbbf733230d33373a767d1e498de2581947051a215"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/RenderDownloadItem.kt:187-210 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/TableDownloadItem.kt:152-187 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/RenderDownloadItem.kt"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"7efcb25863290b6fe8d047422022a69e1a8f475f712e79b21a85bc3dbaa0a5ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/FloatConfigurableRenderer.kt:65-96 | android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/IntConfigurableRenderer.kt:74-102 | android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/LongConfigurableRenderer.kt:75-101 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/FloatConfigurableRenderer.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a31e6cd51eb8aad0f559b0589a6ec4dee87cf4bc5330fa0334ee2bf762c64b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 31\u002B corresponding lines): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/FloatConfigurableRenderer.kt:29-60 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/IntConfigurableRenderer.kt:39-70 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/LongConfigurableRenderer.kt:38-68 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 31 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/FloatConfigurableRenderer.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"76dfa42974a2a5f1faf32b3867bfdb22e2b4ca52abc6eb3cc9c6916c8c1e2a60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:65-98 | android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt:84-118 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ee71f3d59a03c63bb984dd279f44be5e08e9cc6330d39b3ecc112220f40b3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): shared/utils/src/commonMain/kotlin/ir/amirab/util/flow/StateFlowUtil.kt:198-208 | shared/utils/src/commonMain/kotlin/ir/amirab/util/flow/StateFlowUtil.kt:219-237 \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":"shared/utils/src/commonMain/kotlin/ir/amirab/util/flow/StateFlowUtil.kt"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"616feaf8d49f7dd6d2f25bbf17a4327e368238a90819bc894c0bdf2b5ce203fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:497-526 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt:590-616 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"78618f2363c99a4d731e48306270ee5ef9692c02423d06771d977ea4b8c9ab58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/crashreport/ErrorUi.kt:57-87 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/error/ErrorUi.kt:54-88 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/crashreport/ErrorUi.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6826ab36765a6031fc5ad8c0dcf09658e3093eb70af362439594f11923e2353"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 31\u002B corresponding lines): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/checksum/FileChecksumWindow.kt:33-64 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/enterurl/EnterNewDownloadWindow.kt:33-63 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/perhostsettings/PerHostSettingsWindow.kt:24-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 31 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/checksum/FileChecksumWindow.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3b3d223a976f12e7a0d7f75fad4233d5c80ab965fc7c86b235e3cfec83134b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/utils/LockList.kt:14-37 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/utils/LockList.kt:47-70 \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":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/utils/LockList.kt"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb2fc476970c2a7c75eab94c4b8cafe8f46dd85df2a002c8826839757fd9af1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/RenderAddMenu.kt:18-42 | android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/RenderMainMenu.kt:18-42 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/RenderAddMenu.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08eaa5a719a5d7b6cc7133d08e88615bee8971dc303f3b37e2eeb8c3be5b0da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt:473-499 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt:591-620 \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":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14fb3ccfdf81fb28e7f65f09a04104ef7c7f2e7a7ed4a2e99837170074e1ba3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/multiple/AddMultiItemPage.kt:336-365 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/multiple/AddMultiItemPage.kt:323-348 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/multiple/AddMultiItemPage.kt"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ab59637a51b4aa1b566d31c04b95f073bd1a81444cdd0633d24d17b0178bde"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt:297-318 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/category/NewCategoryPage.kt:244-265 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c89c66e62078442bd3ec0638ed8047196141fd97cfd1a6a63fd4b6dfb13546"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/AndroidConfigurableUtils.kt:51-81 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/DesktopConfigurableRendererUtils.kt:81-111 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/AndroidConfigurableUtils.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bfef84d0aa06e00aa13c37e6f886f9177135af20375618b7d85a12901356c37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 32\u002B corresponding lines): desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/BrowserUtil.kt:57-88 | desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/BrowserUtil.kt:92-124 | desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/BrowserUtil.kt:162-196 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 32 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/BrowserUtil.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2954c373dfe1ec2bf7a8216313578bcbdfbd518046b097fb1279f66a33d421"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): shared/app/src/androidMain/kotlin/com/abdownloadmanager/shared/ui/widget/menu/custom/WithContextMenu.android.kt:23-57 | shared/app/src/desktopMain/kotlin/com/abdownloadmanager/shared/ui/widget/menu/custom/WithContextMenu.desktop.kt:21-52 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/androidMain/kotlin/com/abdownloadmanager/shared/ui/widget/menu/custom/WithContextMenu.android.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"eace9b72c3edfb785b78d7843bf22966cdee5cfc1e437f6a3529057de23251d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/settings/CommonSettings.kt:256-278 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/settings/CommonSettings.kt:283-308 \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":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/settings/CommonSettings.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0446c889ada7d4a9b54693b7038d2b4e7be42c7c6b90181f322da4650c1231"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/SelectQueue.kt:35-49 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/SelectQueue.kt:42-56 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/SelectQueue.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f2803f8b266b7f529f3204a5feb869ff41a7cf04e22dd4bf7fb2bc73730676"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/FloatConfigurableRenderer.kt:33-58 | android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/IntConfigurableRenderer.kt:42-67 | android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/LongConfigurableRenderer.kt:41-68 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/FloatConfigurableRenderer.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"504413948d8b7471a3ed25ef01d207ae804f4dee8e7cdba844789ba0ea390cdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/MainActionButton.kt:17-42 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/PrimaryMainIconButton.kt:20-45 \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":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/MainActionButton.kt"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"879ca5c400fb6dbdb347043b16eb84b99df22ee2bdf1f2704581205281ff0f9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/SelectQueue.kt:198-224 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/SelectQueue.kt:234-258 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/SelectQueue.kt"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8706f5602a25185d7564f870c5411a3a36b36c2b341673cd73249ecf7e56ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/batchdownload/BatchDownloadWindow.kt:29-55 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:69-96 \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":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/batchdownload/BatchDownloadWindow.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b238a502640a24778f4688a25729bf37d6c6e9933695bba2b64973fbb0f879"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/translators/TranslatorsPage.kt:310-328 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/credits/translators/TranslatorsPage.kt:228-249 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/translators/TranslatorsPage.kt"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"78afae0275cfe7c3b939f8fdf297db60d88fd5bc621ecb584b93f4d259b58c6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/enterurl/EnterURLPage.kt:230-258 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/enterurl/EnterNewURLPage.kt:242-266 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/enterurl/EnterURLPage.kt"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"70481381c822b7c05fc5a5bf23f59a9c7b8f0218079328ff475572cc5e7fe6be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt:152-172 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/updater/NewUpdatePage.kt:140-160 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ab234658f206bd0ad044386e4ec675a407d49c780bc64229786359aca0d853"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): desktop/shared/src/main/kotlin/ir/amirab/util/desktop/screen/DesktopScreen.kt:44-57 | desktop/shared/src/main/kotlin/ir/amirab/util/desktop/screen/DesktopScreen.kt:61-74 \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":"desktop/shared/src/main/kotlin/ir/amirab/util/desktop/screen/DesktopScreen.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"74de9f6bff779515e694eeb258aca96994372cdb836a91342d779cc1e4de87d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/hls/add/HLSNewDownloadInputs.kt:92-100 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/http/add/HttpNewDownloadInputs.kt:86-94 \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":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/hls/add/HLSNewDownloadInputs.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"275c33c9ae6902a134d6ad1a2303ac3414907a8db1459bae6d777974b802258b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt:318-340 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt:330-352 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3e90a3572f9d172594efafd103892faa9a8dfb34e99278d8f9d35243bea45c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/settings/CommonSettings.kt:444-462 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/settings/CommonSettings.kt:467-485 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/settings/CommonSettings.kt:490-508 \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":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/settings/CommonSettings.kt"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e722f3ab7258222778c37a3c31f4c8c8b0fd08d2711f7d1957da4910694a2d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:92-117 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt:174-199 \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":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d5bc555e9dab0bc2511d8a36332e118eab8485e638dfae63bc0a05a366bd42d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/pages/home/BaseHomeComponent.kt:362-376 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/pages/home/BaseHomeComponent.kt:378-392 \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":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/pages/home/BaseHomeComponent.kt"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed48f93663ab3a52e9456add4924498d9ed8107a563632c5dda5a0433b9b0c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt:476-497 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/checksum/FileChecksumPage.kt:497-512 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/TableDownloadItem.kt:473-496 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e711e4d9f104f01eec25988daca768fd020d53fc095c5ff21cb3dbb80fd50d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/multiple/AddMultiItemPage.kt:227-242 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/multiple/AddMultiItemPage.kt:177-192 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/multiple/AddMultiItemPage.kt"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e24ee7d72b01fadf3aecf3722dc0863f9c540e564a6c26745b9ec6b7bc78c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt:31-53 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/CompletedDownloadPage.kt:41-64 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e61ab2c4cbd0fe7cae6fefdd7e73649472675a64244552ce4677e790d8dbcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/AppComponent.kt:495-513 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/AppComponent.kt:883-902 \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":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/AppComponent.kt"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"0128d9c17e2bda49b2726a9ebcfb76bc2ac98b65ded35ebaac6176d1fc8fcc93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/settings/CommonSettings.kt:81-96 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/settings/CommonSettings.kt:98-118 \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":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/settings/CommonSettings.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"4592a8e835fbc1822aba037ee2169c83fdcfc15d63ff7ccf117510b5979f672f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/AppComponent.kt:724-738 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/AppComponent.kt:754-768 \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":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/AppComponent.kt"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"0695085446e3e3a4b9823bed3c1f07c49051f8c4bbd947abc47a8bebf55b23f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/NumberTextField.kt:89-113 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/NumberTextField.kt:130-151 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/NumberTextField.kt:167-189 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/NumberTextField.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc395616315d708b83db567798bb68c4bd62146c5e9771b19397c21e915ffa22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): shared/utils/src/commonMain/kotlin/ir/amirab/util/coroutines/CombineFlows.kt:16-25 | shared/utils/src/commonMain/kotlin/ir/amirab/util/coroutines/CombineFlows.kt:36-46 \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":"shared/utils/src/commonMain/kotlin/ir/amirab/util/coroutines/CombineFlows.kt"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a53a6eb6121b8d59e212ec66aa969dcbc5db9a39363c717152004449e352d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt:40-55 | android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:53-68 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"df0d5826714f717526cf684b47a156e78d6c7d2ede2631beb209367d1941b865"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/queue/ScheduleTimes.kt:73-87 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/queue/ScheduleTimes.kt:89-103 \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":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/queue/ScheduleTimes.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e087f1e91d44ae7d07416bf4c67c3fc5a4bc84d515533cd6263695eba0dd14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt:404-421 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/about/AboutPage.kt:378-395 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33cf4e85240c487303889ab7619c3ff9aa2ddb60737a8f33e03331262aa3c5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:572-588 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt:663-678 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"809e05d41dd7d786c043e19011e3d033e5e2852d3a2b373b84c6e6bd20c19924"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/settings/CommonSettings.kt:605-618 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/settings/CommonSettings.kt:620-633 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/settings/CommonSettings.kt:635-648 \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":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/settings/CommonSettings.kt"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee06cba54cc16f88212a08d951d759699880c362f344b5669246cfeaea47f4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadItem.kt:139-161 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadItem.kt:152-175 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/http/edit/HttpEditDownloadInputs.kt:176-201 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadItem.kt"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e80afde86cad30a7ecfebfed98a5a4871c2f41b0a49798e4a4e538157ecc9cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/http/applyHostSettingsToExtraConfig.kt:9-25 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/http/applyHostSettingsToExtraConfig.kt:29-49 \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":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/http/applyHostSettingsToExtraConfig.kt"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"1803f831f641b0fa60f0820d76330b1838533d3f394429d5c7ebea3a1b105c89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:426-434 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt:475-483 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ded09919fc5c73927b43808ab36a7a4b46e47627a27c51e794ff2a6c269c088"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/credits/translators/TranslatorsWindow.kt:35-54 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/extenallibs/ExternalLibsWindow.kt:32-50 \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":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/credits/translators/TranslatorsWindow.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"32347b1e78afb66984bf207cacc78f3868c5c4dc680896df08eebbeb15c775c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): shared/utils/src/commonMain/kotlin/ir/amirab/util/flow/StateFlowUtil.kt:161-170 | shared/utils/src/commonMain/kotlin/ir/amirab/util/flow/StateFlowUtil.kt:179-188 \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":"shared/utils/src/commonMain/kotlin/ir/amirab/util/flow/StateFlowUtil.kt"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75f5e508c70bdc2e023545c5867619bb45074539dfc64462205945e6df38014"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): compositeBuilds/plugins/git-version-plugin/src/main/kotlin/ir/amirab/git_version/core/extension.kt:44-54 | compositeBuilds/plugins/git-version-plugin/src/main/kotlin/ir/amirab/git_version/core/extension.kt:56-66 \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":"compositeBuilds/plugins/git-version-plugin/src/main/kotlin/ir/amirab/git_version/core/extension.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"031da2ea137383626c57a2e773ac94b230e014225837039a86d9e53d2edf5f74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/storage/ExtraDownloadSettingsStorage.kt:40-55 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/storage/ExtraQueueSettingsStorage.kt:40-55 \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":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/storage/ExtraDownloadSettingsStorage.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a625c1ad0e9a04cf18cad49c50ccbf0020e81f53dc0776c5b11ee1bd5cc3b10b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt:40-57 | android/app/src/main/kotlin/com/abdownloadmanager/android/ui/menu/RenderMenuInSheet.kt:67-89 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7bb34ca7e9b4ca721b84f5de6836cf3d6d44036160d5837a6d3b4b83cfc8b21"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/perhostsettings/PerHostSettingsPage.kt:170-189 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/perhostsettings/PerHostSettingsPage.kt:142-157 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/perhostsettings/PerHostSettingsPage.kt"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d3bb1e20611a1fd9b68965649f92e04352b3aefd8bae3fc2bd0fe722bdd8d8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/template/DialogUi.kt:44-62 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/ActionContainer.kt:19-36 \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":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/template/DialogUi.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c413091b0bd19a1b6d3a0621dd210ad231cc0863a95122d464d5bbf383a903"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt:128-139 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt:799-809 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"e714e7ab3d2ab9a5a79ffd35e8e4a7817f59da6c229939c03639180dce23f549"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt:95-107 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt:114-127 \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":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c9d7049af8cdd7d139484a4a29f1622bb7c6b993a79a6e541037e6496f36f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/queues/Queues.kt:336-346 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/queue/Queues.kt:316-325 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/queues/Queues.kt"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5b504822d1f4101b60118770636eba049bce98e353e28e130280fe099aa558"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt:626-635 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt:747-756 \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":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7dd482e3f44eb6bf5aa0dce8f71da2680138d07fa2346edf13230bfb39466d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/utils/DesktopEntryCreator.kt:57-66 | shared/auto-start/src/desktopMain/kotlin/ir/amirab/util/startup/UnixXDGStartupDesktop.kt:16-25 \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":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/utils/DesktopEntryCreator.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"750a9eafb639c041f6b3ffffdc13535cd9fb0a540f5068f7671e4d76f34626d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/queue/DownloadQueue.kt:403-409 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/queue/ManualDownloadQueue.kt:243-249 \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":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/queue/DownloadQueue.kt"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a16c8601cbc9a1e38dddc59a66b4f85abe97740a76ee10d742a11e2ed8e1360"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:532-542 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt:643-655 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bcece2898d151907bf1d7830f6549254560410d28f72e0831d2185a84ddc272"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): downloader/core/src/desktopMain/kotlin/ir/amirab/downloader/utils/SparseFile.desktop.kt:59-72 | shared/utils/src/commonMain/kotlin/ir/amirab/util/FileExtensions.kt:11-22 \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":"downloader/core/src/desktopMain/kotlin/ir/amirab/downloader/utils/SparseFile.desktop.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"501c5ce59e0d4c344fd8a4b9c554ef8b0a20b6f96a156fae00d884b322219567"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): shared/app/src/desktopMain/kotlin/com/abdownloadmanager/shared/ui/widget/table/customtable/TableUtils.kt:370-376 | shared/utils/src/commonMain/kotlin/ir/amirab/SelectionUtil.kt:49-55 \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":"shared/app/src/desktopMain/kotlin/com/abdownloadmanager/shared/ui/widget/table/customtable/TableUtils.kt"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"1893271f755e71f2ef02a64378e6a364dee0efb48b08d7c61d709a74f04ad74f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/util/ABDMAppManager.kt:298-309 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/AppComponent.kt:1006-1018 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/util/ABDMAppManager.kt"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f893caa929e97d9752ecf7c62cc121da0ff6a5bd30579b76639926a66ad0d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ShowDownloadDialogs.kt:23-31 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ShowDownloadDialogs.kt:32-40 \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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ShowDownloadDialogs.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4582f9552f87445a985fcea2b0ba7ee6279711861729b2969b11fd01c0a1f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/hls/edit/HLSEditDownloadChecker.kt:39-46 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/http/edit/HttpEditDownloadChecker.kt:40-47 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/hls/edit/HLSEditDownloadChecker.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e41e21d7da454094af68e586c6eb4623073306a8e74dd366cf11456ce7fc0ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/hls/HLSDownloaderInUi.kt:50-59 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/http/HttpDownloaderInUi.kt:50-59 \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":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/hls/HLSDownloaderInUi.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"d480b44ecc516c547afe7bb4cec6aa07fcc33ab8317e841d17cd8c7bbbdf2e63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (101\u2013106 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt:119-224 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/batchdownload/BatchDownnload.kt:75-175 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/batchdownload/BatchDownnload.kt\u0060 as WHOLE FILES: this scan already matched 4 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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt:119\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/batchdownload/BatchDownnload.kt:176\u0060 calls \u0060MultiplatformVerticalScrollbar\u0060, \u0060fillMaxHeight\u0060 and \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt:225\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d752761b5d908fc0038576b9354bf976395ff97e1b7dffe39de805048128587"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (75 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/queue/QueueConfigurationComponent.kt:42-116 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/queue/QueueInfoComponent.kt:149-223 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/queue/QueueConfigurationComponent.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/queue/QueueInfoComponent.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/queue/QueueConfigurationComponent.kt:42\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/queue/QueueConfigurationComponent.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e72bf2a31e982e3a8df00925808effedbd8909e7a22eff30cfc4acb93cf5e24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (71\u201372 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/FileChecksumConfigurableRenderer.kt:38-108 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/FileChecksumConfigurableRenderer.kt:38-109 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/FileChecksumConfigurableRenderer.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/FileChecksumConfigurableRenderer.kt\u0060 as WHOLE FILES: 90% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060ConfigTemplate\u0060 names \u0060com.abdownloadmanager.android.ui.configurable.ConfigTemplate\u0060 in one and \u0060com.abdownloadmanager.desktop.ui.configurable.ConfigTemplate\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/FileChecksumConfigurableRenderer.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"607e6b43ac4227781c6c30eab743738657ba8898d778f9255582dcc642b42a53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (70 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt:325-394 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/category/NewCategoryPage.kt:272-341 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/category/NewCategoryPage.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5786ec9cb9a9cb93f53cc70d29589a14cc4700eaf06c04ed472c959e396a95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (69 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/Prompts.kt:125-193 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt:452-520 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/Prompts.kt:125\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/Prompts.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29d8a722b2c4e249a4606f8a9313de9c017d8ab2a786fd0d0c1817b6ec098c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (69 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/queue/QueueConfigurationComponent.kt:118-186 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/queue/QueueInfoComponent.kt:245-313 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/queue/QueueConfigurationComponent.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/queue/QueueInfoComponent.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/queue/QueueConfigurationComponent.kt:118\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/queue/QueueConfigurationComponent.kt"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbf8c4c26dd45f7d6e1781eedf699a8dfca25deef643dd940d137c97a03ae10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (68 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:147-214 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:140-207 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 189 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:147\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96860a164c3031b2e3f37e16f665000bce12b888291ba4c803e7697693dca67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50\u201352 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:543-592 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:518-569 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:543\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"11876fa8b5d5c437222a56ca7c4bc1de8280c23f5ee62fdde84f8ca97cb1d04a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50\u201351 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt:86-136 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/category/NewCategoryPage.kt:37-86 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/category/NewCategoryPage.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt:86\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d079eb2ecbf548c034a68965fcb9a52a4ea99a9bae5b899fa78aa636e19b5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt:479-529 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:260-310 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"222917dc4451f6aea137e5bac0ba75ffd986a10d4b4d1ad2bc269d0e385137e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:655-703 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt:741-789 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:655\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest 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, \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:654\u0060 calls \u0060fillMaxWidth\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt:740\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"55aca0713bc1262bc5f3dc8c4a65e854f157d9dc4e8a95f71db8cecb8b443a38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:234-281 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt:247-294 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:234\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa3186d08601edf45f8d8bf0ac1b6795ffe2fc7fdb4e669eb349e5d6821f559"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:355-400 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:404-449 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 258 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1aa148d18d24add373bdb629994f73d587372c8a2865a879532508cec97d56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (77 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ToggleableSpeedLimitConfigurableRenderer.kt:47-123 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/ToggleableSpeedLimitConfigurableRenderer.kt:47-123 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ToggleableSpeedLimitConfigurableRenderer.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/ToggleableSpeedLimitConfigurableRenderer.kt\u0060 as WHOLE FILES: 91% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ToggleableSpeedLimitConfigurableRenderer.kt:47\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060ConfigTemplate\u0060 names \u0060com.abdownloadmanager.android.ui.configurable.ConfigTemplate\u0060 in one and \u0060com.abdownloadmanager.desktop.ui.configurable.ConfigTemplate\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ToggleableSpeedLimitConfigurableRenderer.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f93827029e9ba41400698d1e1579443d4a1f41e167beb7b4cf86bb710f76a1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt:256-299 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/about/AboutPage.kt:186-229 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/about/AboutPage.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26118a0f308640a3c22c375e7b24a097f76e32f553ade9f9701a1bb804f29a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:266-309 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:274-317 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:274\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"069482a2ffd5e6b649b0a9f01307b389dfaa4b4d2495612c7ba4e2dc7537db92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:411-454 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:461-504 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 258 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:411\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6e12944de35b4259eee1b11cc34dda5903208b95d4ca055675d571cd7c5bc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 3): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/perhostsettings/PerHostSettingsPage.kt:304-346 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/perhostsettings/PerHostSettingsPage.kt:296-338 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/settings/SettingsPage.kt:111-153 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/perhostsettings/PerHostSettingsPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/perhostsettings/PerHostSettingsPage.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 115 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/perhostsettings/PerHostSettingsPage.kt:304\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/perhostsettings/PerHostSettingsPage.kt"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"0590bd0ae760f076d2f3b4c28379c13d8e8171243698aaca132363e5e7504f5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42\u201343 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt:221-263 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/updater/NewUpdatePage.kt:209-250 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/updater/NewUpdatePage.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt: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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91dbd8d9d96e1fb6fdca55547956fda3b4a83004bae583916e354150ae62157"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt:104-146 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt:101-143 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt\u0060 as WHOLE FILES: this scan already matched 3 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt:104\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt:103\u0060 calls \u0060align\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt:100\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"43286e4a3dbe8d051edcb63efd842c4d4cd80073e8c00914c567a7d2552eb1a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/enterurl/EnterURLPage.kt:136-176 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/enterurl/EnterNewURLPage.kt:153-193 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/enterurl/EnterURLPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/enterurl/EnterNewURLPage.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/enterurl/EnterURLPage.kt:136\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/enterurl/EnterURLPage.kt"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"457a70e22baa8201fb9c79896e3e7d0385194a5023c4df7feb00016e7a7d1e5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/perhostsettings/PerHostSettingsPage.kt:199-239 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/perhostsettings/PerHostSettingsPage.kt:167-207 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/perhostsettings/PerHostSettingsPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/perhostsettings/PerHostSettingsPage.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 115 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/perhostsettings/PerHostSettingsPage.kt: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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/perhostsettings/PerHostSettingsPage.kt"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a90a85647768632351233848c72e216260be528be80b282190cb1888f81842"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201340 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/multiple/AddMultiItemPage.kt:287-326 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/multiple/AddMultiItemPage.kt:276-313 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/multiple/AddMultiItemPage.kt"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f4b15db4f814e6cf3190417371fce8e47bfedc3e1db75b49b3c2d3a83a2400"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/menu/Menu.kt:107-145 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/menu/custom/SubMenu.kt:153-191 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/menu/Menu.kt\u0060 and \u0060shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/menu/custom/SubMenu.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/menu/Menu.kt:107\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest 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, \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/menu/Menu.kt:106\u0060 calls \u0060heightIn\u0060 and \u0060shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/menu/custom/SubMenu.kt:152\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/menu/Menu.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"e560597ba8640bb8c47fe5611b10a5947c08ab3a7872cd9f3b7eb9f8e40a6edb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201337 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt:46-80 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt:45-81 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt\u0060 as WHOLE FILES: this scan already matched 3 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt:46\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"69cefe3f3518a0faae7260d8ba083906d8920d329ab45baa35caaea2ceda4d27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 3): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/RenderDownloadItem.kt:373-407 | android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:282-316 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt:295-329 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/RenderDownloadItem.kt:373\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/RenderDownloadItem.kt"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"95221d73a128c33b3769a6efe76b8c0e9572b1d639da0d2bb2528d90852f97f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/LocationTextField.kt:148-181 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/LocationTextField.kt:181-214 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/LocationTextField.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/LocationTextField.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/LocationTextField.kt:148\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/LocationTextField.kt:215\u0060 calls \u0060clip\u0060 and \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/LocationTextField.kt:182\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/LocationTextField.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1592fe94bd044c88671b349149b5b6908004a51c322d7845b8eff4d89165b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:439-471 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt:530-562 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dfc61329b1fd428ad2f060469f14349e2565c21c3eb51a4671191a6208a0be8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt:70-102 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/updater/NewUpdatePage.kt:59-91 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/updater/NewUpdatePage.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt:70\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"938c943825d558810b74e21b0a1938c4f5b7e8fb6fca94572d9b8ec1ad83b361"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/translators/TranslatorsPage.kt:174-205 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/credits/translators/TranslatorsPage.kt:78-109 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/translators/TranslatorsPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/credits/translators/TranslatorsPage.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/translators/TranslatorsPage.kt:174\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/translators/TranslatorsPage.kt"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"caaf692c109a82a8471386720f165ac5e6a0c401c9bb363fe099b9f3b9fe5191"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201332 lines \u00D7 2): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:222-252 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/enterurl/EnterNewURLPage.kt:137-168 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:222\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef787b542219340d6d072a656e06fb2b5ea6d77e49143e93ad76789e662dcd1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt:147-178 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt:171-202 \u2014 before extracting anything, compare \u0060downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt\u0060 and \u0060downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt:147\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"027cb05b12db2b014de0d1f2bf29e76e6807a2d615defe684996ee233aaf4b95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/CategorySelect.kt:163-193 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/DialogDropDown.kt:219-248 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/CategorySelect.kt:163\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/CategorySelect.kt"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d40f6776b7cc9ff492b81624082e8edf2fb14279375beb166b828ae70c1874"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt:95-125 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/CompletedDownloadPage.kt:157-187 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/CompletedDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"972ba343c51948c0b2b622e264af10f55776a6a72b81b693e5e097138b55712d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/LocationTextField.kt:187-216 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/LocationTextField.kt:220-249 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/LocationTextField.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/LocationTextField.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/LocationTextField.kt: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/LocationTextField.kt"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"a05a15e4e0b92e636434fd7cfaee83e1530709fc78f96d60c12984ec4a98ad55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt:367-396 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt:248-276 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt\u0060 as WHOLE FILES: this scan already matched 6 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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt:367\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"79629f29cb7bf4ff811568af252244b93c6223a75f51c41cd14a8b58f9b1dc6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/queue/QueueConfigurationComponent.kt:188-217 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/queue/QueueInfoComponent.kt:315-344 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/queue/QueueConfigurationComponent.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/queue/QueueInfoComponent.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/queue/QueueConfigurationComponent.kt:188\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/queue/QueueConfigurationComponent.kt"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"d05535cc78156de11726f37840b7c0b77cba9dcaaab1dad1c63b0a6da77c9b27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt:362-391 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt:480-509 \u2014 before extracting anything, compare \u0060downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt\u0060 and \u0060downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6bd7e8d026b2b99a961450395747d5df9f968c8c991bd1d2fb074e5e1e9968"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/RenderDownloadItem.kt:317-345 | android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:219-247 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt:232-260 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/RenderDownloadItem.kt:317\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/RenderDownloadItem.kt"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ac7efae196dc53a58b948958e7c2ff55d5aec34c0c539ac927abcb038997b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:322-350 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:330-358 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"b818655b232871c7f0fe09ea8c9d24bbbd1f1461a458336f8bb5e8afe2cd7875"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201329 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:385-413 | android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:195-221 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:385\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060null\u0060 to \u0060visible = canAddToDownloads \u0026\u0026 fileInfo !=\u0060 in one and \u0060visible = canEditDownload \u0026\u0026 fileInfo !=\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fbd5473e5e044ff7f97a674fe0182058a8d0953d8bef61881b699d005760a23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/HomePage.kt:115-143 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt:111-139 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/HomePage.kt:115\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/HomePage.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e35488cf2869bdd55f2740da865445ff9c4feee116bf22f215284b98095f8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201329 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt:333-361 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt:215-241 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt\u0060 as WHOLE FILES: this scan already matched 6 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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt:333\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt:242\u0060 calls \u0060size\u0060 and \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt:362\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"922b0c0f20edd6ea79a11db75563ccdb354b0444bf2d22b9525c66b212d4062f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201329 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/queues/Queues.kt:124-152 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/queue/Queues.kt:116-142 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/queues/Queues.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/queue/Queues.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/queues/Queues.kt:124\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/queues/Queues.kt"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"d50c217489a176c2ca0ce0c66127342b4d811ba6f3857d0a29636ef7b24235a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt:117-145 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt:112-139 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt\u0060 as WHOLE FILES: this scan already matched 4 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt:117\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee54416c216e2104194bdc9f5118ac8f5d4400862ff266ee861da724700c2c52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt:173-200 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/category/NewCategoryPage.kt:120-147 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/category/NewCategoryPage.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt:173\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28a5965785f73b31af4a9092ece4040e709463afad205689db017e589382bc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt:173-200 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/checksum/FileChecksumPage.kt:129-156 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/checksum/FileChecksumPage.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 160 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt:173\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"3990cd9950c98c4d4a4010f7526596e6164a71cb3f5580d646a89cd9939ddea0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt:219-246 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/checksum/FileChecksumPage.kt:200-227 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/checksum/FileChecksumPage.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 160 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt:219\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"abdb6c3fe4061131047e3cca9eb1293fd49ba3b34108149ca7a164f1d9099370"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt:408-435 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/checksum/FileChecksumPage.kt:429-456 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/checksum/FileChecksumPage.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 160 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"55eb17793a5a334891a5b1db8cd3b47fc9ee4c0310906f80de983f37de6924dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201328 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/downloaderror/AddSingleDownloadPage.kt:109-136 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/downloaderror/DownloadErrorPage.kt:120-142 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/downloaderror/AddSingleDownloadPage.kt:109\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/downloaderror/AddSingleDownloadPage.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbcb8e8b37c090ebd4928af2e39b75759fabced6073e381799d0b42d206941ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/DownloadQRDialog.kt:173-200 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/DownloadQRWindow.kt:173-200 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/DownloadQRDialog.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/DownloadQRWindow.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/DownloadQRDialog.kt:173\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest 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, \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/DownloadQRDialog.kt:172\u0060 calls \u0060align\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/DownloadQRWindow.kt:172\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/DownloadQRDialog.kt"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d575630cf0492e71fa3c9faa6d3e4163444a6559aabd527821bf157d0bcaa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/queues/Queues.kt:275-302 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/queue/Queues.kt:256-283 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/queues/Queues.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/queue/Queues.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/queues/Queues.kt:275\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest 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, \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/queues/Queues.kt:272\u0060 calls \u0060heightIn\u0060, \u0060padding\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/queue/Queues.kt:254\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/queues/Queues.kt"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e57dfceb13b0386db37e437a1ed57873d9141e0100796cff09c12b65a22ac20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/BooleanConfigurableRenderer.kt:38-65 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/BooleanConfigurableRenderer.kt:31-57 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/BooleanConfigurableRenderer.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/BooleanConfigurableRenderer.kt\u0060 as WHOLE FILES: 85% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/BooleanConfigurableRenderer.kt:38\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060TitleAndDescription\u0060 names \u0060com.abdownloadmanager.android.ui.configurable.TitleAndDescription\u0060 in one and \u0060com.abdownloadmanager.desktop.ui.configurable.TitleAndDescription\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/BooleanConfigurableRenderer.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8097c4093f869b35a8f692d2d42e22e78f9bd2917c14f5016045da95cbc58225"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/menu/Menu.kt:266-293 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/menu/custom/SubMenu.kt:318-345 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/menu/Menu.kt\u0060 and \u0060shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/menu/custom/SubMenu.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/menu/Menu.kt"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed9ea147c3e3633d8dee761b92654a67fd514ac51d8569cdb63bd0a129c161f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ToggleableSpeedLimitConfigurableRenderer.kt:66-92 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt:71-97 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/ToggleableSpeedLimitConfigurableRenderer.kt:66-92 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ToggleableSpeedLimitConfigurableRenderer.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/ToggleableSpeedLimitConfigurableRenderer.kt\u0060 as WHOLE FILES: 91% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ToggleableSpeedLimitConfigurableRenderer.kt:66\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: \u0060ConfigTemplate\u0060 names \u0060com.abdownloadmanager.android.ui.configurable.ConfigTemplate\u0060 in one and \u0060com.abdownloadmanager.desktop.ui.configurable.ConfigTemplate\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ToggleableSpeedLimitConfigurableRenderer.kt:94\u0060 calls \u0060Column\u0060, \u0060align\u0060, \u0060AnimatedVisibility\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt:99\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ToggleableSpeedLimitConfigurableRenderer.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"42cec98cd6f1987766b8fbf53c604a6d3a8f91db9b3556dc5673b1b2cecd7605"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt:156-182 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/about/AboutPage.kt:58-84 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/about/AboutPage.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt:156\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"365cc909aa5ca5f64d1445471553764f41c6ab27ce111ee84d2376898c115e2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt:367-393 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/checksum/FileChecksumPage.kt:388-414 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/checksum/FileChecksumPage.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 160 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dab724cda622265812531c26e6fb6067e1de213578e6175bef10c029eaa9afa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:95-121 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:107-133 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 258 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:95\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:135\u0060 calls \u0060Column\u0060, \u0060weight\u0060 and \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:122\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a7b2a61831e3554de674ca560b76a8d3722a3a63f1e1f612da15efeb0294e6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt:120-146 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/updater/NewUpdatePage.kt:108-134 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/updater/NewUpdatePage.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt:120\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f4f90102cc242815169f5dfee93cb39376d3c71a0d95155a25d2e93fa4cd52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/menu/Menu.kt:236-262 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/menu/custom/SubMenu.kt:288-314 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/menu/Menu.kt\u0060 and \u0060shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/menu/custom/SubMenu.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/menu/Menu.kt"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b1d471f8f534994f951010a80b9906b2a56118783930ede06cd9d2552c1d9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/util/ui/ScrollbableContent.kt:36-62 | shared/app/src/desktopMain/kotlin/com/abdownloadmanager/shared/ui/widget/table/customtable/Table.kt:208-234 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/util/ui/ScrollbableContent.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d6fa3bdb5f5457192919e05c9b577695c18a4963b9c8fbace0043dc723d1676"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/DownloadQRDialog.kt:101-126 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/DownloadQRWindow.kt:89-114 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/DownloadQRDialog.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/DownloadQRWindow.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/DownloadQRDialog.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f19804560f37a517689675658a22fee7c4b4e6f22bf28e30339ff96e7ac5407"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:735-760 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt:821-846 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac435fe7eb902b15bfb8cd05a496b391a92ceb927a3ca222250b15fa6beadc06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt:48-73 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt:46-70 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt\u0060 as WHOLE FILES: this scan already matched 4 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt:48\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060ConfigTemplate\u0060 names \u0060com.abdownloadmanager.android.ui.configurable.ConfigTemplate\u0060 in one and \u0060com.abdownloadmanager.desktop.ui.configurable.ConfigTemplate\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d5987c97cfb3f14cb5777db97a53e541708fef8ffa93de506200e892c011455"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt:76-101 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt:72-97 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt\u0060 as WHOLE FILES: this scan already matched 4 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt:76\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c2ac94e99ab0537ca7267fc8ea15ba40bfc610e3dafdafbf6136e69e504db6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt:160-185 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt:142-167 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt\u0060 as WHOLE FILES: this scan already matched 4 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"9144194552e56b0f28369456630db1fd3cfde005999e85983e1b79b13cc68177"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt:198-223 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt:266-291 \u2014 before extracting anything, compare \u0060downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt\u0060 and \u0060downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt:198\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff296069c79f6862a2b1c39ce8634ff5de3d9185ec3ca4900fa22d7b9c24ad7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt:302-326 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/batchdownload/BatchDownnload.kt:244-268 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/batchdownload/BatchDownnload.kt\u0060 as WHOLE FILES: this scan already matched 4 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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt:302\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bee4c2ffa7daff78d6bff32b9cb5d12ec875fb67166db8ec92755ef39a82889"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:707-731 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt:793-817 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"181509e61f5bb1f4ab7067b2c54db95b2a383236a6a984d167c2319486fe5203"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/Text.kt:46-70 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/Text.kt:99-123 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/Text.kt:46\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/Text.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"651851b8bd84fd03fc3b3e942c275b0f924c811289f644d07e9e0db894ef432a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/CategorySelect.kt:96-119 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/CategorySelect.kt:84-107 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/CategorySelect.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"f76bd5f6296fd5ea6b5fdae9ae863682aaee822847c2f19f6da51e33e40eb751"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/translators/TranslatorsPage.kt:262-285 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/credits/translators/TranslatorsPage.kt:175-198 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/translators/TranslatorsPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/credits/translators/TranslatorsPage.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/translators/TranslatorsPage.kt:262\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/translators/TranslatorsPage.kt"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"d201d63169eee07488ad6a063748d97154f4c183fed85ddd78ef7bde8e0344da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/downloaderror/AddSingleDownloadPage.kt:78-101 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/downloaderror/DownloadErrorPage.kt:89-110 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/downloaderror/AddSingleDownloadPage.kt:78\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/downloaderror/DownloadErrorPage.kt:111\u0060 calls \u0060WithContentAlpha\u0060 and \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/downloaderror/AddSingleDownloadPage.kt:102\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/downloaderror/AddSingleDownloadPage.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ddbb0bf74d0b09cd5b65bcfc2c5cdcb978632d256cb0c9115495500d7895f4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/Popup.kt:124-147 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/Popup.kt:160-183 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/Popup.kt:124\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/Popup.kt"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f52c8c1e4c8cc4bd315cd4f4586db533bf758f8422d9064028f46fd275ccde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:275-297 | android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt:542-564 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:323-345 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt\u0060 and \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"17639e608dd47415e98762033952ab2da9b83a1fe9232d07d9703da0af614c79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:631-653 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt:718-740 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:631\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest 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, \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:654\u0060 calls \u0060fillMaxWidth\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt:741\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e17c9c0f373db9b30dbeaf53adca2e08a78736760d44f69f545bc1eed4eb85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt:179-201 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/updater/NewUpdatePage.kt:167-189 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/updater/NewUpdatePage.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5dfc446f4c81ddb1c56d04bb7bbabd045831e4846a2620e2f2355d68f078d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ThemeConfigurableRenderer.kt:95-117 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/ThemeConfigurableRenderer.kt:56-78 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ThemeConfigurableRenderer.kt:95\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest 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, \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/ThemeConfigurableRenderer.kt:54\u0060 calls \u0060widthIn\u0060 and \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ThemeConfigurableRenderer.kt:94\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ThemeConfigurableRenderer.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"8af43b919377bee8b46a6e20fc089e7f1b341a25dedfe34a5cf829b2a6835349"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt:318-340 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt:436-458 \u2014 before extracting anything, compare \u0060downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt\u0060 and \u0060downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"613d9422b3f103ed492cd5b2cf9bfb6e7a32861e59df63ae5e37a94a22b5fbb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/DownloadQRDialog.kt:222-243 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/DownloadQRWindow.kt:224-245 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/DownloadQRDialog.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/DownloadQRWindow.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/DownloadQRDialog.kt"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"7153ae0ff78138042878dc8d5a684f548cf9d3412f752d281c04e4cb598e7670"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:215-236 | android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt:292-313 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt\u0060 and \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:215\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef13f005ec64a5f7d3b18ba6e8f8f3535b4ab22e4e9d11c43e1e6f3545bcaa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/multiple/AddMultiItemTable.kt:137-157 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/DownloadList.kt:262-283 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/multiple/AddMultiItemTable.kt:137\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/multiple/AddMultiItemTable.kt"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9480b43d85d5fb36473e62494c03fca93c6ae3640512ac638428b85d19f7499"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201321 lines \u00D7 3): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt:368-387 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt:251-267 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/settings/SettingsPage.kt:104-124 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt\u0060 as WHOLE FILES: this scan already matched 6 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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt:368\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f957fb2d1e2463d21697811d848836a25e5e0a7084a528bcd62e2f1d28ec72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:160-180 | android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt:228-248 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:153-173 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt\u0060 and \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:160\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8147aec99bd3bf9154ca7925969b29c4428ca0d2a1711f3de7e2916644e6815"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt:322-342 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/about/AboutPage.kt:253-273 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/about/AboutPage.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt:322\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"a689f051f1e8ac150e26d58fa91767b2dd44bef6f55a5674ceebe2ae72a250c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/multiple/AddMultiItemPage.kt:249-269 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/multiple/AddMultiItemPage.kt:238-258 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/multiple/AddMultiItemPage.kt:249\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/multiple/AddMultiItemPage.kt"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4abdd8fba646120d5a5a33b1b3e8dddc304b368390548c74d92d0884fd1e20b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/ExtraConfig.kt:36-56 | android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/LocationTextField.kt:108-128 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/ExtraConfig.kt:36\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/ExtraConfig.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"449c11bb82f7bde814a3fc6eaca784f64d1ea286775b618aa32a66d72c0ac321"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:178-198 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:159-179 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:178\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba969a093a1d818d67dd4ee14c36c8dc0bc159dd2aeba10b73711865ca4b99e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/Prompts.kt:302-322 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt:634-654 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/Prompts.kt:302\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/Prompts.kt"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4c66f6ceccf99f8ec4703d3c36ecd0daff5ba75c50038441149d257bca41ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:242-262 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:231-251 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 189 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27882c1aad3d5a1b8dab9ec9e4ff772301536d15b732555714cfab40d79317b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt:346-366 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt:358-378 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt\u0060 as WHOLE FILES: this scan already matched 4 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt: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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c802c6dad57dfcec0b5d280f27ce6b88dc573e849736b078bb9eb897bbc6d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt:422-442 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt:540-560 \u2014 before extracting anything, compare \u0060downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt\u0060 and \u0060downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt:422\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c978a3d9ae929d9832facbebae437b7233e9a894eee5ea639484c708c51d87b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 6): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt:263-282 | android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt:374-392 | android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/queues/Queues.kt:310-329 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt:152-171 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt:254-272 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/queue/Queues.kt:291-310 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt\u0060 and \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/queues/Queues.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt:263\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"1898b4e45278892047c6ef7573a7430e92149a66cdab512384bd0b4a3ca1c27a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:182-201 | android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt:250-269 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:175-194 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt\u0060 and \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:182\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b51fb2b03988393daee999446e7d5b9f04e7fb791f65f7809736d9dcbf7564c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/ExtraConfig.kt:63-82 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/ExtraConfig.kt:93-111 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/ExtraConfig.kt:63\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/ExtraConfig.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"15cf9167a9bfd2370b820e0665ddd94b1e284cf30b24f0326249a610ff9469bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/ExternalLibsPage.kt:163-182 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/extenallibs/ExternalLibsPage.kt:77-96 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/ExternalLibsPage.kt: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/ExternalLibsPage.kt:183\u0060 calls \u0060Spacer\u0060, \u0060height\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/extenallibs/ExternalLibsPage.kt:97\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/ExternalLibsPage.kt"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ab46a1128ec6b019656a979ff2788d1dc91913d9b87774bcee4ac9541ae3b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/LibraryDialog.kt:197-216 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/extenallibs/LibraryDialog.kt:174-193 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/LibraryDialog.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/extenallibs/LibraryDialog.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/LibraryDialog.kt"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"841e3939d5449e0ca3e44cfa31de91c09fd240d694ed853eb39c2574f8f4e6e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/IntConfigurableRenderer.kt:83-102 | android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/LongConfigurableRenderer.kt:83-101 \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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/IntConfigurableRenderer.kt:83\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060IntConfigurable\u0060 in one and \u0060LongConfigurable\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/IntConfigurableRenderer.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd15082b8cb04b859f54855bab3296b13035496616c481668212f060b26a7699"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/LocationTextField.kt:120-138 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:220-239 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/LocationTextField.kt:120\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/LocationTextField.kt:139\u0060 calls \u0060width\u0060, \u0060widthIn\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:240\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":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/LocationTextField.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94b3eff2b9250d46d8c3abddaebd22858c5b2e8c1cbe3eea44e6ff16288a370"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:389-408 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:248-267 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:389\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060null\u0060 to \u0060visible = canAddToDownloads \u0026\u0026 fileInfo !=\u0060 in one and \u0060visible = canEditDownload \u0026\u0026 fileInfo !=\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":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e27ce23c9a4c1fde74d17d8e85da20b44cf3764735a5dcef4cf1caff36002ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadItem.kt:107-126 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadItem.kt:128-147 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadItem.kt:107\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadItem.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ea54312ec905e0fb8b36404f9f00a37e64bb88b64e71a8d73e704b2b62f7e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 9): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt:263-280 | android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt:374-391 | android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/queues/Queues.kt:310-327 | android/app/src/main/kotlin/com/abdownloadmanager/android/pages/perhostsettings/PerHostSettingsPage.kt:303-321 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt:152-169 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt:254-271 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/queue/Queues.kt:291-308 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/perhostsettings/PerHostSettingsPage.kt:295-313 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/settings/SettingsPage.kt:110-128 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt\u0060 and \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/queues/Queues.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt:263\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a98d2b9c25e1d1f7f575abe986cd43febd695e42fb8397f5e211e345e26a8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:140-158 | android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt:208-226 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:133-151 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt\u0060 and \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:140\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"009982a8a55411a12fa96d46c7808975b59a520e4054f40c29cf53bb6b52e6da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt:427-445 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt:546-564 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt:604-622 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt:427\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bccfe281a3c01f8c938daf2ae8113505ce131358830d1b1e66d0fd6aa78b924"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt:374-392 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/about/AboutPage.kt:305-323 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/about/AboutPage.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt:374\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest 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, \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt:393\u0060 calls \u0060WithContentAlpha\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/about/AboutPage.kt:324\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"972051f45af809b20cde73fe5891484769a16e28cd8dd330d4999211d310bbbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:250-268 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:297-315 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 258 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:248\u0060 calls \u0060Spacer\u0060, \u0060width\u0060, \u0060BrowserImportButton\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:296\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"091ab96fd5a1947be2732bbf253ab8790e15f3da46a587fce8690a3adea721d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:481-499 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:531-549 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 258 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d65f69f3a01a19bff2e74c87ba49cf3c0685359063f0f52557dee9457920dc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt:87-102 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt:758-776 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt:87\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under 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, \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt:777\u0060 calls \u0060showCategoryOption\u0060 and \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt:102\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"238c15f559f65213e64451a651a8f521355257d645ba53fabeceee2dfb779df2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt:32-50 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/CompletedDownloadPage.kt:42-60 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/CompletedDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt:32\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060component\u0060 to \u0060AndroidSingleDownloadComponent\u0060 in one and \u0060DesktopSingleDownloadComponent\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/CompletedDownloadPage.kt:61\u0060 calls \u0060Spacer\u0060, \u0060weight\u0060 and \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt:51\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1664be211d412ed26b98b82003f4f17960cda45f76c4a6c381a1da5ffd1be8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/AndroidConfigurableUtils.kt:115-133 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/DesktopConfigurableRendererUtils.kt:39-56 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/AndroidConfigurableUtils.kt:115\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/AndroidConfigurableUtils.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"5971fb8d5cc5a045b88c9e75f51c6f3fd63a1b94b02b39aac689e6d651090f3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/custom/titlebar/linux/SystemButtons.Linux.kt:43-61 | desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/custom/titlebar/windows/SystemButtons.Windows.kt:39-57 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/custom/titlebar/linux/SystemButtons.Linux.kt:43\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/custom/titlebar/linux/SystemButtons.Linux.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"876fc3c446bb08d4ddfaa0b5f92512cc1b1ca8a3d4960136557daf7b9bc1058b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/DialogDropDown.kt:174-192 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/IconPick.kt:133-151 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/DialogDropDown.kt:174\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/DialogDropDown.kt"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15fa0510f4ded3d2adbcc63e8ce354a708d4e7ddc7e6f866d0bdf6fefb148b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201318 lines \u00D7 3): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt:481-497 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/checksum/FileChecksumPage.kt:500-512 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/TableDownloadItem.kt:479-496 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/checksum/FileChecksumPage.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 160 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt:481\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/TableDownloadItem.kt:478\u0060 calls \u0060border\u0060 and \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt: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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"418ac8b36c9c31317e1241b875e2a0ac754c7a29e78c0dae6855cbbd2e65f808"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/LocationTextField.kt:58-74 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/LocationTextField.kt:64-81 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/LocationTextField.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/LocationTextField.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/LocationTextField.kt:58\u0060 it begins part-way through the construct above it, so those exact lines 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/LocationTextField.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"851bee87507347c2443ed85a95f171ae2e96fc677b5ccc32d36657904b22bf66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt:95-112 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/batchdownload/BatchDownnload.kt:51-68 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/batchdownload/BatchDownnload.kt\u0060 as WHOLE FILES: this scan already matched 4 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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt:95\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/batchdownload/BatchDownnload.kt:50\u0060 calls \u0060weight\u0060 and \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt:94\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e1181c3d43391b06a8de57b43e78aa8f3ac62b805cd6d8b79b1ed5f3b4221e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/HomePage.kt:145-162 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt:141-156 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/HomePage.kt:145\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/HomePage.kt"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"42f03de55d9edbc91b9f03d174fd75dc6544065270b50af07a40f923f66ec62d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/DownloadQRDialog.kt:151-168 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/DownloadQRWindow.kt:151-168 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/DownloadQRDialog.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/DownloadQRWindow.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/DownloadQRDialog.kt:151\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/DownloadQRDialog.kt"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4da7744070512e9908901b6e99e0df82e9179b15497b44eb8b69568fdcbff4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt:60-77 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/CompletedDownloadPage.kt:71-88 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/CompletedDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt:60\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060component\u0060 to \u0060AndroidSingleDownloadComponent\u0060 in one and \u0060DesktopSingleDownloadComponent\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b40ad759847f0a06a38f9aa97faf41c20b949bbfea240046ff4ae6a0d5fb06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt:133-150 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/CompletedDownloadPage.kt:195-212 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/CompletedDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"c27e09299248c08c99aabe4205da1d3cc3ca920b39ab2809d207b11ef786e3a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/custom/titlebar/mac/MacTitleBar.kt:129-146 | desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/custom/titlebar/mac/MacTitleBar.kt:162-177 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/custom/titlebar/mac/MacTitleBar.kt:129\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/custom/titlebar/mac/MacTitleBar.kt:179\u0060 calls \u0060Spacer\u0060, \u0060weight\u0060 and \u0060desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/custom/titlebar/mac/MacTitleBar.kt:147\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/custom/titlebar/mac/MacTitleBar.kt"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"8625f848c597ac1ac6b0a5a01d6c0b95ed78bf7fd42bb039718bd392b8eb0691"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/ShowAddDownloadDialogs.kt:69-86 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/ShowAddDownloadDialogs.kt:99-116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/ShowAddDownloadDialogs.kt:69\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/ShowAddDownloadDialogs.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"a05a4918daad06e649401217c3046d4f47213ef00f83b84ef736ee68f157715a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt:394-411 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt:512-529 \u2014 before extracting anything, compare \u0060downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt\u0060 and \u0060downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa813f5188c144ad1fd0a8503dd85009480459a21236e56c911431b10ebc81a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/queue/DownloadQueue.kt:333-350 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/queue/ManualDownloadQueue.kt:198-215 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/queue/DownloadQueue.kt"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a69dedd64198880a8cfd0f02c6a4b574689d92ac3341483e857d5c88faa2df4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt:133-149 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/about/AboutPage.kt:359-375 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/updater/NewUpdatePage.kt:121-137 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/updater/NewUpdatePage.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt:133\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f40aae7d350fa1f66a9d0329c30db3fe3e08bde73a9352f195277e07c857ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt:302-318 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/category/NewCategoryPage.kt:249-265 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/category/NewCategoryPage.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt:302\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"602ebda0cd35f469dece088b265724557c2062b088fece5486378c1f81c29720"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:186-202 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:237-252 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 258 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:186\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3923e9bebd1c1c59c31e76bfa2ad8d35d92ad97ef760aebfcebd24498f069b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/enterurl/EnterURLPage.kt:183-199 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/enterurl/EnterNewURLPage.kt:200-216 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/enterurl/EnterURLPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/enterurl/EnterNewURLPage.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/enterurl/EnterURLPage.kt"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"241e3505a0cfbd3ab547e240eb4153f549c120322a7dcfa9ddc55d3e83521c55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt:234-250 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/queue/Queues.kt:135-151 \u2014 before extracting anything, compare \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/queue/Queues.kt\u0060 as WHOLE FILES: this scan already matched 4 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt:234\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c7a6fae4a57f59106c0668f35c6b9b8d36993fd12f8a335c964837f30bcd4de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/perhostsettings/PerHostSettingsPage.kt:265-281 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/settings/SettingsPage.kt:74-90 \u2014 before extracting anything, compare \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/perhostsettings/PerHostSettingsPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/settings/SettingsPage.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/perhostsettings/PerHostSettingsPage.kt:265\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/perhostsettings/PerHostSettingsPage.kt"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffbaffc5acaf1229f29d3705a37328c575280cb81b3b10c1fa4b9c9898672291"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): shared/app/src/androidMain/kotlin/com/abdownloadmanager/shared/ui/theme/PlatformThemeDefinitions.android.kt:29-45 | shared/app/src/desktopMain/kotlin/com/abdownloadmanager/shared/ui/theme/PlatformThemeDefinitions.desktop.kt:30-46 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/androidMain/kotlin/com/abdownloadmanager/shared/ui/theme/PlatformThemeDefinitions.android.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e199251010d69f94b9e17dd0030a03cafa32ceca776f3c2895f818d7b9b2c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:600-615 | android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:276-291 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:584-599 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:323-338 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6ece5fafe1f33cb10d94db422fe3aee282a63f3db5933e75f2042072a097fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/enterurl/EnterURLPage.kt:135-151 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:237-252 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/enterurl/EnterNewURLPage.kt:152-168 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/enterurl/EnterURLPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/enterurl/EnterNewURLPage.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/enterurl/EnterURLPage.kt:135\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/enterurl/EnterURLPage.kt"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a89b0f5724c597546023ffad6a7f2246d03c1493622ba8617e2937a97b2da10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/SelectQueue.kt:149-164 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/SelectQueue.kt:185-200 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/SelectQueue.kt:149\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it 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, \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/SelectQueue.kt:201\u0060 calls \u0060Spacer\u0060, \u0060height\u0060 and \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/SelectQueue.kt:165\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/SelectQueue.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"a720031f8894b7c6ab1aeb6e13a2cea41e2cc3c4bd4ca4e98ee8bb64be3d187b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt:209-224 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/category/NewCategoryPage.kt:156-171 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/category/NewCategoryPage.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b0acc833ff61f7236276391fc5db4388f84d2fd8e9a604eabedc4c11c9e18a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt:233-248 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/category/NewCategoryPage.kt:180-195 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/category/NewCategoryPage.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"19aca4b6e7341934dcadf8653a2d8a7edcc3e7136d87baeeaeb3e33513853365"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt:259-273 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/checksum/FileChecksumPage.kt:255-270 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/checksum/FileChecksumPage.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 160 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b47cab3dfbc5cba889c9f23ee7ab62dbbe24ff8739e411bf121b66f4d670757"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/enterurl/EnterURLPage.kt:107-122 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/enterurl/EnterNewURLPage.kt:106-121 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/enterurl/EnterURLPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/enterurl/EnterNewURLPage.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/enterurl/EnterURLPage.kt:107\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060component\u0060 to \u0060AndroidEnterNewURLComponent\u0060 in one and \u0060DesktopEnterNewURLComponent\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/enterurl/EnterURLPage.kt:123\u0060 calls \u0060SolidColor\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/enterurl/EnterNewURLPage.kt:122\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/enterurl/EnterURLPage.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"d434a01ff9adcf73dc931c7009eb8010a2683e91e59d543e07b37315c098f991"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:613-628 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt:700-715 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49b42be4545536f3844b9bf8c9f850eba85d6101df59dfc747d48e647db0a67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt:79-93 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/queue/Queues.kt:212-227 \u2014 before extracting anything, compare \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/queue/Queues.kt\u0060 as WHOLE FILES: this scan already matched 4 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt:79\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt:78\u0060 calls \u0060hoverable\u0060, \u0060background\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/queue/Queues.kt:212\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":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1fc1ba51796f5dad2624b9f1b8df8a1403f2faebb1bac37c4bf6fe6dc7a6be5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): downloader/core/src/androidMain/kotlin/ir/amirab/downloader/utils/SparseFile.android.kt:10-25 | downloader/core/src/desktopMain/kotlin/ir/amirab/downloader/utils/SparseFile.desktop.kt:26-41 \u2014 before extracting anything, compare \u0060downloader/core/src/androidMain/kotlin/ir/amirab/downloader/utils/SparseFile.android.kt\u0060 and \u0060downloader/core/src/desktopMain/kotlin/ir/amirab/downloader/utils/SparseFile.desktop.kt\u0060 as WHOLE FILES: 82% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"downloader/core/src/androidMain/kotlin/ir/amirab/downloader/utils/SparseFile.android.kt"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"7357e080e2b2fe636cba9c4a9569eb9752d1c9908ffdcd7ac65de94ea44231e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt:83-97 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt:84-98 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt\u0060 as WHOLE FILES: this scan already matched 3 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt:83\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060ConfigTemplate\u0060 names \u0060com.abdownloadmanager.android.ui.configurable.ConfigTemplate\u0060 in one and \u0060com.abdownloadmanager.desktop.ui.configurable.ConfigTemplate\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/SizeConfigurableRenderer.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d67e0e8c148cc3c3079b81a7c1dbc0c1e98f94ff2f144963d1549f462d3e7fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/widget/Tray.kt:72-86 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/widget/Tray.kt:107-121 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/widget/Tray.kt:72\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/widget/Tray.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"d076d5db4df7801d04fd64b4608983e48468423f73f88dec3d5a181dd6280741"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/queue/DownloadQueue.kt:182-195 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/queue/ManualDownloadQueue.kt:139-153 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060downloader/core/src/commonMain/kotlin/ir/amirab/downloader/queue/DownloadQueue.kt:182\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/queue/DownloadQueue.kt"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"193fa476a1180bd716f6bbc0bfd7d8084f37ce5044852310984071bf41638af7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/hls/edit/HLSEditDownloadChecker.kt:53-67 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/http/edit/HttpEditDownloadChecker.kt:54-68 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/hls/edit/HLSEditDownloadChecker.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8e8df846d0565168ecd2ae9a057add572f0e8bb66bed28c0c22b4b4e55248b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/util/ui/MyColors.kt:141-155 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/util/ui/MyColors.kt:211-225 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/util/ui/MyColors.kt:141\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/util/ui/MyColors.kt"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf5540a76a402ff2d775114a7c326f477abb65245ab93d4a3989e49e4967b6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201314 lines \u00D7 4): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt:62-75 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/checksum/FileChecksumPage.kt:122-129 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/enterurl/EnterNewURLPage.kt:79-92 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/CompletedDownloadPage.kt:73-86 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/CompletedDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt:62\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"b790a8caa90262be458a52bce19932a6d0ebf25cc13d763ea1def16a9993ed25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/FolderConfigurableRenderer.kt:53-66 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/SoundConfigurableRenderer.kt:57-70 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/StringConfigurableRenderer.kt:29-42 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/FolderConfigurableRenderer.kt:53\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060FolderConfigurable\u0060 in one and \u0060SoundConfigurable\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":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/FolderConfigurableRenderer.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6712b5bffb3cadca88fd40ddeea9cf4a633e437d10cae00737d3500badbedc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:155-168 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:138-151 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt: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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"f630287d1f362e153695e470e33fc03fdd6a8c0b32527289a61c8faaf1b1537a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:122-135 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:136-149 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 258 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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, \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:135\u0060 calls \u0060Column\u0060, \u0060weight\u0060 and \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:121\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"920be6230f55ace651dd17ecc7cfad492dba46de65070ec595cc72ab58e5f980"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/RenderDownloadItem.kt:196-208 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/TableDownloadItem.kt:167-180 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/RenderDownloadItem.kt:196\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/RenderDownloadItem.kt"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"8464fadf0e0ee5f7aa90cd8706fd4bc8ca2be69657285d21d2ef4a12d5ec012e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:575-588 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt:665-678 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:575\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9e5e002c1eb9d38093bb7beef9d4c7e22f6672de26da8b91fa8b22e2049fc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt:153-166 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/updater/NewUpdatePage.kt:141-154 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/updater/NewUpdatePage.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt:153\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"3269a615713569dd95f8a8a3e0110100079baef89f79fa0e4bf0e17ee114f86d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/SoundConfigurableRenderer.kt:44-57 | android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/StringConfigurableRenderer.kt:33-46 \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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/SoundConfigurableRenderer.kt:44\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060SoundConfigurable\u0060 in one and \u0060StringConfigurable\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/SoundConfigurableRenderer.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd38d758511c231e0cc1dd3d3252b4fcebb0c5ad992bd08a11373a5a3e25b93f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt:573-586 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt: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 \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt:573\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19375cdc1f073be25ced16f3237c73b2b8ffd3397db112667f8905924cd4774"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/FloatConfigurableRenderer.kt:38-50 | android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/IntConfigurableRenderer.kt:47-60 | android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/LongConfigurableRenderer.kt:46-58 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/FloatConfigurableRenderer.kt: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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060FloatConfigurable\u0060 in one and \u0060IntConfigurable\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/FloatConfigurableRenderer.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1f860024b51b9500680e3e34d45b4a78512a594201801a19030fe07c33146e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/translators/TranslatorsPage.kt:316-328 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/credits/translators/TranslatorsPage.kt:237-249 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/translators/TranslatorsPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/credits/translators/TranslatorsPage.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/translators/TranslatorsPage.kt:316\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/translators/TranslatorsPage.kt"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c764786b2dbaf3826724e3fe80fc3e8a6d31fedc1fff16461afc0865f2ab10b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:298-310 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:345-357 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 258 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:298\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060component\u0060 to \u0060AndroidEditDownloadComponent\u0060 in one and \u0060DesktopEditDownloadComponent\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"f423882d4efbd19baaf6ab68b91eca2b6e061086d05b41eaee66ed2c420849f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/TimeConfigurableRenderer.kt:100-112 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/TimeConfigurableRenderer.kt:72-83 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/TimeConfigurableRenderer.kt:100\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/TimeConfigurableRenderer.kt"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39f0382b2c882fdb7bdcfbdde6337c94a4e675d9a075ea293f975babdb5b682"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt:517-529 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt:651-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 \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt:517\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"553a71119a882cb34ed4be162bfe7a54459d1a777b76272733f7b8ae884de27d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/ThemeConfigurableRenderer.kt:41-53 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/platform/renderer/FontConfigurableRenderer.kt:32-44 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/ThemeConfigurableRenderer.kt:41\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060ThemeConfigurable\u0060 in one and \u0060FontConfigurable\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":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/ThemeConfigurableRenderer.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa57962f58657f9e31418d81a37308acfa41b016aba21c317732538a05025ef8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:383-394 | android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:193-204 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:243-254 \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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:383\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060null\u0060 to \u0060visible = canAddToDownloads \u0026\u0026 fileInfo !=\u0060 in one and \u0060visible = canEditDownload \u0026\u0026 fileInfo !=\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7032997019ff523d251f75e510a401fd20cfeefa1df7c79b6de5467c6f000af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/multiple/AddMultiItemPage.kt:266-277 | android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:165-176 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/multiple/AddMultiItemPage.kt:266\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/multiple/AddMultiItemPage.kt"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f006ba0313a61e0b61315d87121244676bcb9750a62eba3fd6743c7823fa590"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:120-131 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:104-115 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:120\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"877727faa984726646f3766ff4caf2d781d6d4552c58a755a0002871b1c6aa84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:134-145 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:117-128 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:134\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"982edcd5e21d7c4d18b1d4aa1df2599484fae2e05002f66ce2d4e668ae564297"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/Prompts.kt:189-200 | android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/Prompts.kt:247-258 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/Prompts.kt: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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/Prompts.kt"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"30003239c456f7ab6197d15199d97371db9d37568a1c2fc0e5343943df3072bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/Prompts.kt:244-254 | android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/Prompts.kt:315-326 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/Prompts.kt:244\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/Prompts.kt"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04f3028fc297f01059622b3c6c26c4262a700d32039a7530be9472f1a101b00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt:324-338 | android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/queues/Queues.kt:118-129 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt\u0060 and \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/queues/Queues.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt:324\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"2021ae83d14c5d0926ef2c734dfe3c08b63ee625884f43dc0063269e81ebf79a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/perhostsettings/PerHostSettingsPage.kt:87-98 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/queue/QueuesPage.kt:99-110 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/perhostsettings/PerHostSettingsPage.kt:87\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/perhostsettings/PerHostSettingsPage.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a4ba5aa3cc4f724097458cdc060c58d89f72a8cbdec51f625413f83dfac5d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): shared/utils/src/androidMain/kotlin/ir/amirab/util/osfileutil/AndroidFileUtil.kt:31-42 | shared/utils/src/androidMain/kotlin/ir/amirab/util/osfileutil/AndroidFileUtil.kt:58-69 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/utils/src/androidMain/kotlin/ir/amirab/util/osfileutil/AndroidFileUtil.kt:31\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/utils/src/androidMain/kotlin/ir/amirab/util/osfileutil/AndroidFileUtil.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ae0f4b5ecd5d5b77091dd000708099a10f18ac85252aaca735411f3ea33139"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt:516-526 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt:576-586 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt:650-660 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt:516\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1f3ad6542b000f53963d074a8dcf1dccee7dd626078e0aedc039148637c38e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt:309-319 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/about/AboutPage.kt:240-250 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/about/AboutPage.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt:309\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest 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, \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/about/AboutPage.kt:239\u0060 calls \u0060verticalScroll\u0060, \u0060rememberScrollState\u0060 and \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt: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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/about/AboutPage.kt"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a28f902dd77d7904c7d3ed513a8adfe8b2d726d33cd872b1f073e703f39687"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:376-386 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:379-388 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:376\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"d88f3ece588239075ce90a46cf891d0e7d7732dcc960fee77b5b8fa4a321ce19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/LibraryDialog.kt:146-156 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/extenallibs/LibraryDialog.kt:123-133 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/LibraryDialog.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/extenallibs/LibraryDialog.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/LibraryDialog.kt"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf9997796b81b738c90774e517f2dd69c096fc39f189d21c0ba2c3f3d1a71b85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt:226-236 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt:107-117 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt\u0060 as WHOLE FILES: this scan already matched 6 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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt: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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"499aed301fc5cb4821992b4edb62e6606beaf522d05a9c21e4d527455b3c8c08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/menu/Menu.kt:95-105 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/menu/custom/SubMenu.kt:142-152 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/menu/Menu.kt\u0060 and \u0060shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/menu/custom/SubMenu.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/menu/Menu.kt:95\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest 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, \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/menu/Menu.kt:106\u0060 calls \u0060heightIn\u0060 and \u0060shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/menu/custom/SubMenu.kt:153\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/menu/Menu.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1dfeaf34e95b7774afd9c03045dd42ab7e1138bf2fe09eed58af889f8971ccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/SelectQueue.kt:36-45 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/shared/SelectQueue.kt:44-53 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/SelectQueue.kt:36\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/shared/SelectQueue.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7bd7687d4ff914d0a048c7eab6ac1fc92a286748cce700a2af951da5284e928"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/ExternalLibsPage.kt:231-240 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/extenallibs/ExternalLibsPage.kt:156-165 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/ExternalLibsPage.kt"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"90082b4ddc3e9d8f56fe2ddff0e9266685482bfeca20c923ed7de266cc04918d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/LibraryDialog.kt:90-99 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/extenallibs/LibraryDialog.kt:78-87 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/LibraryDialog.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/extenallibs/LibraryDialog.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/LibraryDialog.kt:90\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/LibraryDialog.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"42673dcacfc740a41707a81cd6ccd19289fa7f183ee4b3f5d05ac8c503cb420d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:239-248 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:288-297 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 258 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:239\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060component\u0060 to \u0060BaseEditDownloadComponent\u0060 in one and \u0060DesktopEditDownloadComponent\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:249\u0060 calls \u0060BrowserImportButton\u0060, \u0060Spacer\u0060, \u0060width\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:298\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"d519c92429a18cacadd7fb545aab4bb5400c10bbcb77fbbf7740e5c075b8b5a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:374-383 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:233-241 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:374\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"192188d67b92f511107a65500639637648b5104fd4e442d0244526f8f3301048"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt:147-155 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt:141-149 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt\u0060 as WHOLE FILES: this scan already matched 4 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DayOfWeekConfigurableRenderer.kt"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef8d1d838de35b0b1db60c12a044af431faf7dc8d398063b4a5f47fdf4649bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:427-434 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt:476-483 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"6739b180318c2dba38996a482b3252fb6bdd54de266d28526a5cc69411707be9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt:62-74 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/checksum/FileChecksumPage.kt:122-128 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/enterurl/EnterNewURLPage.kt:79-91 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/poweractionalert/PowerActionAlertWindow.kt:210-222 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/CompletedDownloadPage.kt:73-85 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/CompletedDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt:62\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/checksum/FileChecksumPage.kt:130\u0060 calls \u0060Row\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/poweractionalert/PowerActionAlertWindow.kt:223\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/CompletedDownloadPage.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"9378f68366bec02f5f4f3ffc0a63caf1fd43d30bd9b46dfe7878d7fd59e433e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt:62-68 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/batchdownload/BatchDownnload.kt:33-39 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/batchdownload/BatchDownnload.kt\u0060 as WHOLE FILES: this scan already matched 4 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/batchdownload/BatchDownnload.kt:40\u0060 calls \u0060rememberScrollbarAdapter\u0060 and \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt:69\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/batchdownload/BatchDownloadPage.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbdae45462a704aec28b0872b69bd32a0e80f8bdb5b6d2cf74051c0ab7fa56ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/singledownloadpage/DownloadStatusStringSource.kt:16-22 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/singledownloadpage/DownloadStatusStringSource.kt:41-46 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/singledownloadpage/DownloadStatusStringSource.kt:16\u0060 it does not close everything it opens, so those exact lines 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":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/singledownloadpage/DownloadStatusStringSource.kt"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9a38fe00577817b84ba6b57fa977ffd50771f081c2a56e761d342f542b0671"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): shared/utils/src/commonMain/kotlin/ir/amirab/util/coroutines/CombineFlows.kt:17-23 | shared/utils/src/commonMain/kotlin/ir/amirab/util/coroutines/CombineFlows.kt:37-43 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/utils/src/commonMain/kotlin/ir/amirab/util/coroutines/CombineFlows.kt:17\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/utils/src/commonMain/kotlin/ir/amirab/util/coroutines/CombineFlows.kt"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08365105384e3c2fffe594a4a590c5b8778fdb2308fb822c53aeef6e7c4e3ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/hls/add/HLSNewDownloadInputs.kt:93-100 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/http/add/HttpNewDownloadInputs.kt:87-94 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/hls/add/HLSNewDownloadInputs.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"9440b8f63b0422094e8c8c4ea3401003f845c941ba8a2ba84ed57f7d91752b0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/multiple/AndroidAddMultiDownloadComponent.kt:91-130 | android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AndroidAddSingleDownloadComponent.kt:117-168 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/multiple/AndroidAddMultiDownloadComponent.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"2473c70462771b941761a7481ded05de8935f3f3abe317d12da9a715acbd67a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/utils/CollectionUtils.kt:5-22 | shared/utils/src/commonMain/kotlin/ir/amirab/util/CollectionUtils.kt:5-49 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060downloader/core/src/commonMain/kotlin/ir/amirab/downloader/utils/CollectionUtils.kt:5\u0060 it begins part-way through the construct above it, so those exact 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":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/utils/CollectionUtils.kt"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf260e74040486aea26594810f13867a6c83d4d7eb071cb4edee0baad39d787"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:623-639 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:607-623 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt: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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c87714898de78f9a3fa5ff3de884ec7b601d6347ee70dfc1a3c3e19da2e4a16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:646-654 | android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:506-514 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt:630-638 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:556-564 \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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt:646\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"e32a0179e2a3a06d82e9505431052bdaa6985b6777af60ba6c70650627509165"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt:255-267 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/category/NewCategoryPage.kt:202-214 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/category/NewCategoryPage.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt:255\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e4cca6aa37841bf1a8faf020cffc244feb6083eddaa82a0799077118314d81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt:275-287 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/category/NewCategoryPage.kt:222-234 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/category/NewCategoryPage.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt:275\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/category/CategorySheet.kt"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c29c5ce923d9cc017206ed35af7f5d227b58d856be028362a882e17ed3ec32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt:442-456 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/checksum/FileChecksumPage.kt:463-477 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/checksum/FileChecksumPage.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 160 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt:442\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/checksum/FileChecksumPage.kt"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa6fbcec98a1dd050ebee474f8c9b812b273fafab0250c7d24c54d7fba39f58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/LibraryDialog.kt:159-169 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/extenallibs/LibraryDialog.kt:136-146 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/LibraryDialog.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/extenallibs/LibraryDialog.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/LibraryDialog.kt"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92d5cbe35c6ba5f58b69c1a282ff00f27ebeee578520748fa52fc39c7b5c48d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/LibraryDialog.kt:173-183 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/extenallibs/LibraryDialog.kt:150-160 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/LibraryDialog.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/extenallibs/LibraryDialog.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/LibraryDialog.kt"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9da9f69ceb52ef67f54d4476d8dcc1d22b7f08a1eef6e423727906c257cd8ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/LibraryDialog.kt:222-233 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/extenallibs/LibraryDialog.kt:199-210 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/LibraryDialog.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/extenallibs/LibraryDialog.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/LibraryDialog.kt:222\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/credits/thirdpartylibraries/LibraryDialog.kt"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe01461d1f6c1642d5b66b654840a8c24d7dd5ad57661e54d5f6737dcfce1ecd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:460-471 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt:510-521 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/editdownload/EditDownload.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 258 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt:460\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/editdownload/EditDownload.kt"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9e4f3b08ef5439833566c9e47f231dd6d30cca6599ae2b0963cd6fe17e41786"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/perhostsettings/PerHostSettingsPage.kt:153-164 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/perhostsettings/PerHostSettingsPage.kt:125-136 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/perhostsettings/PerHostSettingsPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/perhostsettings/PerHostSettingsPage.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 115 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/perhostsettings/PerHostSettingsPage.kt:153\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/perhostsettings/PerHostSettingsPage.kt"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"379e95d130ff50345935f33c7b2721dc2a758a7271014fc8ee3aec0ea9383960"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:478-489 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt:569-580 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:478\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060singleDownloadComponent\u0060 to \u0060AndroidSingleDownloadComponent\u0060 in one and \u0060DesktopSingleDownloadComponent\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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21fb9d7352f7b5b4f6f13cfd4df42a0679bc6b233b407fe8f2a45f6c2e2697a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:548-563 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt:622-637 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt:548\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a82180c26e4f559b68cfc5c045bdd5df3bc3aaad5b6ac4d4446c75205c54a41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt:289-305 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/updater/NewUpdatePage.kt:288-304 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/updater/NewUpdatePage.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt:289\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/updater/NewUpdatePage.kt"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"603c8abdd3fcffb3736ee54111d9c8283b6d6dee8209881d4c77697629fa138e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:306-322 | android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt:582-598 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:354-370 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt:594-610 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt\u0060 and \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt:306\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/DnsConfigurableRenderer.kt"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"f589ef784ed3bc9afe8b76882c13a83eefdc0b36b346f0eb2117362dfde39208"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt:566-573 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt:578-585 \u2014 before extracting anything, compare \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt\u0060 as WHOLE FILES: this scan already matched 4 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/comon/renderer/ProxyConfigurableRenderer.kt"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c0614fb18abd01cfed5832f30e522a9f1d235fd5ca184c58de0bf6a2564237"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): android/app/src/main/kotlin/com/abdownloadmanager/android/util/ABDMAppManager.kt:283-293 | desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/AppComponent.kt:991-1001 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/util/ABDMAppManager.kt:283\u0060 it begins part-way through the construct above it, so those exact 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/util/ABDMAppManager.kt"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"05442d1d8f0bebf82de0bd23ae5e26a7208ba75602e524391182188451a97314"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/custom/titlebar/mac/MacTitleBar.kt:84-97 | desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/custom/titlebar/windows/WindowsTitleBar.kt:70-83 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/custom/titlebar/mac/MacTitleBar.kt:84\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/custom/titlebar/mac/MacTitleBar.kt"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0484220b4b66de83c605124f0bf32692800cf7b9e9c471f1e8a6abe8ec9a4eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): desktop/shared/src/main/kotlin/ir/amirab/util/desktop/poweraction/PowerActionLinux.kt:6-12 | desktop/shared/src/main/kotlin/ir/amirab/util/desktop/poweraction/PowerActionMac.kt:6-12 | desktop/shared/src/main/kotlin/ir/amirab/util/desktop/poweraction/PowerActionWindows.kt:6-12 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/shared/src/main/kotlin/ir/amirab/util/desktop/poweraction/PowerActionLinux.kt"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"4432b564da4c2e3078cdc810ed82ba30b70af074785de74182892a8a5fc7caa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadItem.kt:130-137 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadItem.kt:177-184 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadItem.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed45daea2743ba38db6c467363be74bf6e2ef5ac9467b945f3a053352d0171dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt:75-83 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt:78-86 \u2014 before extracting anything, compare \u0060downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt\u0060 and \u0060downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060list\u0060 to \u0060List\u003CMediaSegment\u003E\u0060 in one and \u0060List\u003CRangedPart\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ebc3512c9a27faa2c89548eee4cf53a2b53c5598710b4e4f4c70b7c5381c598"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt:589-598 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt:705-714 \u2014 before extracting anything, compare \u0060downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt\u0060 and \u0060downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee077388f4dfee435c8a39980055848d6d3fa0ccff73d8c2597f4cc92d6a04e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt:616-624 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt:737-745 \u2014 before extracting anything, compare \u0060downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt\u0060 and \u0060downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"662a4770263175fe101e36df83dd59870f64bc741b57422cc72b57e33a8a5317"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/multiple/AddMultiDownloadActivity.kt:107-116 | android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadActivity.kt:202-211 | android/app/src/main/kotlin/com/abdownloadmanager/android/pages/downloaderror/AddSingleDownloadActivity.kt:98-107 \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 \u0060android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/multiple/AddMultiDownloadActivity.kt:107\u0060 it begins part-way through the construct above it, so those exact 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/multiple/AddMultiDownloadActivity.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"302eeea5ce9a9f84f0f81031634066879d9ae16bab708c07877f07937fec5ecf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadCredentials.kt:37-51 | downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadCredentials.kt:39-53 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadCredentials.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"867bd601810e452b8cd4309ca955cad77f167159398e397f464d019c44497c2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/hls/HLSDownloaderInUi.kt:76-87 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/http/HttpDownloaderInUi.kt:146-157 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/hls/HLSDownloaderInUi.kt:76\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/hls/HLSDownloaderInUi.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"1641c19288eca8bcc46232e24e585d2cb2feb16bb498937f872abc033c147b11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/storage/ExtraDownloadSettingsStorage.kt:66-73 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/storage/ExtraQueueSettingsStorage.kt:66-73 \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 \u0060shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/storage/ExtraDownloadSettingsStorage.kt:66\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/storage/ExtraDownloadSettingsStorage.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f52d3059b38c620710506d1535f97b679578671adcdc628582fadb74ed4fdeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/util/downloaderror/definederrors/ChangedToWebPageDownloadErrorMapper.kt:18-25 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/util/downloaderror/definederrors/ConnectionResetDownloadErrorMapper.kt:16-23 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/util/downloaderror/definederrors/ResumeSupportChangedDownloadErrorMapper.kt:16-24 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/util/downloaderror/definederrors/SSLNotTrustedErrorMapper.kt:14-23 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/util/downloaderror/definederrors/TimeoutErrorMapper.kt:15-22 | shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/util/downloaderror/definederrors/UnknownHostErrorMapper.kt:16-23 \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 6 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/util/downloaderror/definederrors/ChangedToWebPageDownloadErrorMapper.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"593d519e4804cb25f026866e410bcd50e62f948d6460154829e11e5f0cc29fac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/BrowserUtil.kt:67-82 | desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/BrowserUtil.kt:174-189 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/BrowserUtil.kt:67\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/BrowserUtil.kt:84\u0060 calls \u0060File\u0060 and \u0060desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/BrowserUtil.kt: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":"desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/BrowserUtil.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5163bcabb07c8b75a040a0ded4a09398d6edab7f76f915e76f6fe88b18f07d9"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: ABDownloadManager:desktop:mac_utils: ABDownloadManager:desktop:mac_utils: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"77934bfd2b39eef6122d43ab1c9384b5f417a5454f88e681452c01224901d238"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HomeComponent (LCOM4 11): HomeComponent\u0027s methods fall into 11 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 11 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/HomeComponent.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad03f3a3e49e3925f20ec79d2f4d209bcc92b18f20bce77c92d3ec559107777c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BaseAddMultiDownloadComponent (LCOM4 6): BaseAddMultiDownloadComponent\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":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/pages/adddownload/multiple/BaseAddMultiDownloadComponent.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"9176a9fc291e686b37a975dda969f938c6f52f14fb3410738ca1b621f969866d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BaseHomeComponent (LCOM4 4): BaseHomeComponent\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":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/pages/home/BaseHomeComponent.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4b8b3a4141db6c234abb8a502c61d83ff59ba231cb9518da30aac7f661efe1"}},{"ruleId":"D8","level":"error","message":{"text":"No automated tests: No automated tests \u2014 no test code was found in this repository. Untested code is the largest single risk to changing it safely. Start with the code you change most often: add a suite in a framework a runner can collect (JUnit (with Kotest or MockK on Kotlin)), and run it in CI so the gap cannot reopen."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3132564c6310e5d01a231f252a02d5d2f5a542c0a8fa29a14c89693f1e3df871"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/DownloadList.kt: desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/DownloadList.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in DownloadListKt.DownloadList at line 73. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 06:58:28 \u002B03:30\u0027 --until=\u00272026-11-06 06:58:28 \u002B03:30\u0027 --full-history --no-merges -- desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/DownloadList.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/DownloadList.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0eb0c7776cba9047401cac2872b7f853b6bcbf55638c48b8843352137135eb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt: desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in HomePageKt.HomePage at line 83. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 06:58:28 \u002B03:30\u0027 --until=\u00272026-11-06 06:58:28 \u002B03:30\u0027 --full-history --no-merges -- desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomePage.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18c20073d4c42f7ac5a5be41d6554fc5affcb1860e70fdc1e79dbcfd40bb647"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO remove it when its implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/utils/src/desktopMain/kotlin/ir/amirab/util/osfileutil/MacOsFileUtils.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"29246825d4d6c93e89dd878ea0e5fc5aa306d30734b03dcf5f60d7a5fcf7e2a9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO add onAfter update installed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/updater/src/commonMain/kotlin/com/abdownloadmanager/UpdateManager.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cafeedf84e11d9601e8d7a11a45d5fdca23c1c738f2f47225da41a094f72a45"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO this can be moved to a nested component to reduce system resource usage \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/singledownloadpage/BaseSingleDownloadComponent.kt"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"a551bb81a9fa97a93b15261aef49101a4416ac2093461e0e10fe1156f1ac715c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Remove this after a while \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"integration/server/src/main/kotlin/com/abdownloadmanager/integration/model/DownloadCredentialsFromIntegration.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"49fc57bdf89198db4b6caa5c7c5f85bd2fa60959324e8413443170a5381ebf94"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO probably bug here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fba0b0c65067418c32aa8e3ea2c1fb8a74618dc65b4cad6cb8fd2b7cf3f5d4e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO probably bug here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"3450d361e671418c610865e663f9f06b9cb8c53952b7017ee8a1e356ede8dcb8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO remove this later \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/di/Di.kt"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be13bbe1dad88cf3fc99173fe031753349bb2ef1b6f24e2e1430a3d457ad40a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: BUG \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/actions/onevennts/getOnDownloadCompletionAction.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c62242e774ee3eec4fddabc36ce32eca9deef50a88f32a5a9ba185b81a5dee2d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: BUG \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/actions/onevennts/getOnQueueEventActions.kt"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"df59a678deb0c8e71a9a1d6448508cbe7f80ceb82e5073245314e2583b4798ad"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO improvement make it tablet friendly \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/perhostsettings/PerHostSettingsPage.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9507338bc07ce32412fab4923f9771aed94ebac8b096fdac8df12c238d4f3d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO consider use a factory to create DownloadErrorComponent \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/downloaderror/AddSingleDownloadActivity.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"476f620a4eb9b2a88184caee7ad226f6a67dd34782fb65470da90e65ae403aff"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO consider use a factory to create AndroidAddSingleDownloadComponent \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadActivity.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8bbcd03ebbff3ca0fb9bb8bfdef02a2d025535467760efb829d99eb57203ffc"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060desktop/app/build.gradle.kts\u0060 makes this repository a deployable product (line 123)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/build.gradle.kts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4b97b9ad6032c968e554b4fa47b150a822ae5b1050f88d172b1df3f622e2e1"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060HLSNewDownloadUIChecker\u0060 spells \u0060UI\u0060 where 27 names in the project spell it \u0060Ui\u0060: 27 of 28 names in project shared/app spell the token \u0060Ui\u0060 (27 of 28; unit: names in project shared/app containing \u0060Ui\u0060). Peers: com.abdownloadmanager.shared.downloaderinui.DownloaderInUi (shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/DownloaderInUi.kt:26); DownloaderInUi.newDownloadUiChecker (shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/DownloaderInUi.kt:45); com.abdownloadmanager.shared.downloaderinui.DownloaderInUiRegistry (shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/DownloaderInUiRegistry.kt:28); DownloaderInUiRegistry.add(downloaderInUi) (shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/DownloaderInUiRegistry.kt:32); DownloaderInUiRegistry.remove(downloaderInUi) (shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/DownloaderInUiRegistry.kt:42). Rename to \u0060HLSNewDownloadUiChecker\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/hls/add/HLSNewDownloadUIChecker.kt"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9542b69da934006cd7daeb58b2f8b3d4afc32b02a24d933aeebda348e451f7e"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060itemID\u0060 spells \u0060ID\u0060 where 64 names in the project spell it \u0060Id\u0060: 64 of 65 names in project shared/app spell the token \u0060Id\u0060 (64 of 65; unit: names in project shared/app containing \u0060Id\u0060). Peers: CommonActionFactoriesKt.createMoveToQueueAction(itemId) (shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/action/CommonActionFactories.kt:270); DownloadAlreadyExists.itemId (shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/add/CanAddResult.kt:4); NewDownloadInputs.getUniqueId (shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/downloaderinui/add/NewDownloadInputs.kt:55); CategoryDialogManager.openCategoryDialog(categoryId) (shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/pagemanager/CategoryDialogManager.kt:4); FileChecksumDialogManager.closeFileChecksumPage(dialogId) (shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/pagemanager/FileChecksumDialogManager.kt:6). Rename to \u0060itemId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/pages/adddownload/multiple/BaseAddMultiDownloadComponent.kt"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"09fa49482ebfba6e2b62f6d10def2b86d206bcd08e895910a25b3d3227444885"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 4 of 22 project(s) overshoot their size bounds, lowering Project Cohesion to 6.4/10. The most over is \u0060shared/app\u0060 (22504 LoC, 688 module-visible types across 98 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1d9a8cfb5135e5e6f3e84eca226591feb8111e5b2b54f1c55f27837266f8b826"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4fbc6df3d72864219648f8a5e2a3fe4857d204776cc76785ab693bf45ade35c2"},"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":"c1f99f999f777c447a19e3c86e180b99e0a480f66660f30178b662d9bef81024"},"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":"1f857484c82a77b923d790c697e70d0c25700bc417afdd7512189095fb65bbee"},"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":"f4605f2a7b87969d6b429c047dd2b1c135e676cb8181ab6c1b570926261ed216"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-668","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06: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":"621f92ad794843c090baa4f0abb38999f5880a703d2711f46459d52bb4012019"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-668","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06: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":"2683dc59877c661d1a6d2136e1320c25a54cfd998a569ca7c797ef07a6bb72f0"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-668","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06: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":"a11cff55f65a579dd55c47d06878e80bbf77ffe9020b33d799d2bd7c26298f8b"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-668","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06: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":"d89ff8be40979a750f71a1b1785d33a78ab956aa773c1a40e692751cfa2edca2"},"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":"5f07877e9f6831b26d6b61c36879bbe08682eee0636cbd5e8700c89852c91b5e"},"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":"7b556d2a6fc74abfb93faff0a5f206ab05e17410f392f66f0091f6fb8c3d151a"},"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":"5419fd2754d07f70acb81e3f07fcb80a97afc705eb66add654f8559d85af6881"},"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":"bf3375c746e1b9fa3cc96c8ee2705ff405f01558a6e37d022a7f1bf3dabf7c0b"},"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":"071bc8adb7ae9ee28b51073674b0147b8c086ea99f009a32ecc9a9ba096c5f64"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c60ddfa9ff4321aee1b89dfac95d9c978236ee4622a6c2eb51d2a9dfd910ec4c"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"cdb83f6f4dfeb0658bcb049411c942aedc1ab0b9cf9df91a22f353597a02c60d"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-552","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06: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":"beb7c3eaf9de5b4b83049539b3b715890a51340bbe0b6ca767159faee652b43a"},"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":"665b6f81bed75f0ec29866d345e9885fd97212f01b48527419b080c15e35bf73"},"taxa":[{"id":"CWE-926","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":"443cbfc93761fbac97d79d986d271c59a514aa9579bed1f260091df7e437bced"},"taxa":[{"id":"CWE-926","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":"3db9dbcf2590431b6b775ac1ff30dfea0da0b85836ce6aedfe37f5781ecbacd0"},"taxa":[{"id":"CWE-926","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":"60d1fcf766fa338fd1a1da24edaa1ffc33937da4074a370e5acbe23ba23610ad"},"taxa":[{"id":"CWE-926","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":"079389686bcfff94edaa599447410ec7da0ab97924010f04b93b9819ee8451e2"},"taxa":[{"id":"CWE-328","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 2 of 420 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 420 of the 1104 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: compositeBuilds/plugins/installer-plugin/src/main/kotlin/ir/amirab/installer/tasks/macos/CreateDmgTask.kt, shared/app/src/desktopMain/kotlin/com/abdownloadmanager/shared/ui/widget/menu/native/NativeMenuBar.kt. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compositeBuilds/plugins/installer-plugin/src/main/kotlin/ir/amirab/installer/tasks/macos/CreateDmgTask.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a581b8900aebfa28dd5b218f1d1d42d69e76efb1406b5c8580673ead138d2d4f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/desktopMain/kotlin/com/abdownloadmanager/shared/ui/widget/menu/native/NativeMenuBar.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac22f31d54ff6e264a544435cedf928d84d64eeb42fbd561366d5f2c3e7270a"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: main.kt \u2194 HomeComponent.kt: \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/actions/main.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomeComponent.kt\u0060 change together 56% of the time (10 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u0060f46627c9\u0060 Add Per Host Settings (#820); \u00604cf0a872\u0060 add an option to create desktop entry for linux (#698); \u0060c5f540b9\u0060 add donate link in the about page and help menu \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/actions/main.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03626b8cc6052c59db1d3debc9b7a46a7bf54bf87233435c9fc50630bb20520"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AppComponent.kt \u2194 AddDownloadPage.kt: \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/AppComponent.kt\u0060 and \u0060desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060d6c14781\u0060 add Open With into the download option menu and Download Compete dial\u2026; \u0060a16c881d\u0060 improve/select queue and remember choices (#1246); \u0060754f058b\u0060 update existing download from download page (#569) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/AppComponent.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"383c8823bb3647e56aa2940455f23fe504ff041f96f6751399a0273f8fa1bdea"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","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":"d1dbe27ef2715e2e2b865aec9e6a0e2469daabf02e683435ffc6f505887f7220"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9cdbe7a8f17307963c5ec65c265f4449fed3397521cc66ea5a04385343151af4"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"be75da1e6e1605df59564c75e2ac11ac7eff5a6fa86a82b7a20de266580ea611"},"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":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 4/7 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060desktop/app\u0060, \u0060integration/server\u0060, \u0060shared/app\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add spotbugs with find-sec-bugs (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":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060HttpClient(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/utils/singleInstance/Comunication.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"059b23d70831e5e1a7d893732ef1aff2a5918fd81fdfe6a8fd7d96f0cce64543"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isEnabled \u0026\u0026 LocalMenuDisabledItemBehavior.current == MenuDisabledItemBehavior.Filter\u0060 appears character-identically in 2 files \u2014 android/app/src/main/kotlin/com/abdownloadmanager/android/ui/menu/Menu.kt, shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/ui/widget/menu/custom/SubMenu.kt. 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/ui/menu/Menu.kt"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd16fcf0dd7a8805c01f2c7636e6947f9fd95f4d91d728aaccbde1cbbdd218f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!permissionState.requiresRational \u0026\u0026 rejectedOnce\u0060 appears character-identically in 2 files \u2014 android/app/src/main/kotlin/com/abdownloadmanager/android/pages/onboarding/permissions/PermissionsPage.kt, android/app/src/main/kotlin/com/abdownloadmanager/android/ui/configurable/android/renderer/PermissionConfigurableRenderer.kt. 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/onboarding/permissions/PermissionsPage.kt"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7b7c3ff74c7765a2d36ffc22387fcc1c0a2efab0b3759ce85b39cd196c39c80"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ExceptionUtils.isNetworkError(e) || ExceptionUtils.isResponseError(e)\u0060 appears character-identically in 2 files \u2014 downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt, downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt. 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":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c97ff2d790b022e2d6d274ebe99415a13fb49e6f867dc600aa6ad404ae51482"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060canAddResult is CanAddResult.DownloadAlreadyExists \u0026\u0026 onDuplicateStrategy == null\u0060 appears character-identically in 2 files \u2014 android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt, desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/addDownload/single/AddDownloadPage.kt. 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/add/single/AddSingleDownloadPage.kt"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"c762aa640b33df7baaa9dae938b4c8b7ce15e412c5247955376fda9dfc7f82cd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060currentDraggingItem != null \u0026\u0026 !it.contains(currentDraggingItem)\u0060 appears character-identically in 2 files \u2014 android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/HomeComponent.kt, desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/queue/QueueInfoComponent.kt. 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/HomeComponent.kt"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91bb5dcbfd7d9924eb3e1b916344afe5de5dc669c746941e2d9a2cb5be53f39"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060e is DownloadValidationException \u0026\u0026 e.isCritical()\u0060 appears character-identically in 2 files \u2014 downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt, downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt. 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":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec38c88ff7ff15b87ba3ee3b85f8b414f83ea413b9c9d8722efe3169d1d66cd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isInFirstResume \u0026\u0026 failedDownloadTries == 0 \u0026\u0026 shouldRetryIfInitialFailed()\u0060 appears character-identically in 2 files \u2014 downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt, downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/http/HttpDownloadJob.kt. 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":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSDownloadJob.kt"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f111fd5ba0ccc3d78a3271bbb9c4519db4279479777e2fecbd216844c772e45"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isStatusSelected \u0026\u0026 currentTypeCategoryFilter == category\u0060 appears character-identically in 2 files \u2014 android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt, desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt. 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"680e7221b91a0dcc6aeb26eac2534833a4a1d1df8a449ed19a5ebe71c1226936"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isStatusSelected \u0026\u0026 currentTypeCategoryFilter == null\u0060 appears character-identically in 2 files \u2014 android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt, desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/sections/category/Categories.kt. 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/sections/Categories.kt"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"591b3f5bff0c3b355fa4d74621a6477354b3a4ddbd23ca0f381a1f9f398e6f44"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060itemState is ProcessingDownloadItemState \u0026\u0026 itemState.percent != null\u0060 appears character-identically in 2 files \u2014 android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ShowDownloadDialogs.kt, desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ShowDownloadDialogs.kt. 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ShowDownloadDialogs.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfaf937993655fa6d96ab68cf6a4960a674c019edf08c3e60738ef706d1179ee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060progress == null \u0026\u0026 status is DownloadJobStatus.IsActive\u0060 appears character-identically in 3 files \u2014 android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/RenderDownloadItem.kt, android/app/src/main/kotlin/com/abdownloadmanager/android/pages/singledownload/ProgressDownloadPage.kt, desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/singleDownloadPage/ProgressDownloadPage.kt. 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":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/home/RenderDownloadItem.kt"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aac5bc5eca8c61874e3c0e19d3d7efaafb1ba0eb7684e0c68a80d97f700adea"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rememberFolderAsDefault.value \u0026\u0026 isFolderChangedResult.value.isChanged\u0060 appears character-identically in 2 files \u2014 shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/pages/adddownload/multiple/BaseAddMultiDownloadComponent.kt, shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/pages/adddownload/single/BaseAddSingleDownloadComponent.kt. 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":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/pages/adddownload/multiple/BaseAddMultiDownloadComponent.kt"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d7dd36a02cd76623a23e7ca4750c5a1c67f79b1fb1915f9f815d1845b5574a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060stop || !currentCoroutineContext().isActive\u0060 appears character-identically in 2 files \u2014 downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSPartDownloader.kt, downloader/core/src/commonMain/kotlin/ir/amirab/downloader/part/HttpPartDownloader.kt. 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":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/downloaditem/hls/HLSPartDownloader.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"2799dd624e69440482217217e31db1f39981b072037fb38f81f9767c951d4319"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060windowState.isMinimizedOrNull == false \u0026\u0026 windowState.placementOrNull == WindowPlacement.Floating\u0060 appears character-identically in 2 files \u2014 desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomeWindow.kt, desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/settings/SettingWindow.kt. 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":"desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomeWindow.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"567804eb66b55c509f7e88a73ef726f85f0fba93341b15266f7354f2f7622000"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/utils/src/commonMain/kotlin/ir/amirab/util/CallAwait.kt"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5faa30d42c213c9babc4b762b7592b59a1b13575358fccf0b536f4dfe639d5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/pages/adddownload/single/BaseAddSingleDownloadComponent.kt"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f8a771718f8078e65b229cfa67915e53b8d39b73a5fcb0ff92d84185b773a5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/pages/adddownload/single/BaseAddSingleDownloadComponent.kt"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"77fba881f15e4e2c5c8057b86533e77239b5cc4766b0cacba8b8a49a0866bc42"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"downloader/core/src/commonMain/kotlin/ir/amirab/downloader/destination/DestWriter.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"472102500a74f65cdd3dc41d74e0d874ef4afcb691f9d22eddd180b719fb76bd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/app-utils/src/main/kotlin/com/abdownloadmanager/desktop/window/custom/titlebar/linux/LinuxSystemButtonsProvider.kt"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe933f726eb591ae350a57cbb0111f2532299a4c460fa37e08cebfa379ee626"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/abdownloadmanager/android/pages/qrcode/QRCodeTextReader.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b0b242037535386e028631f81983e0c4149446fc821b11bc9e6064ca852f4d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getSubnet\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/app/src/commonMain/kotlin/com/abdownloadmanager/shared/util/IPUtils.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b94e29243475054f8c6562f0fef5f3e70082bb23a3b594db6ca5a41cd863683"}}],"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-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-328","guid":"f0ffc869-97c3-dc5c-8825-be1159f1fc5f","name":"Reversible One-Way Hash","shortDescription":{"text":"Reversible One-Way Hash"},"helpUri":"https://cwe.mitre.org/data/definitions/328.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-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-552","guid":"3492436b-eca2-9c54-9ba3-5dade427c903","name":"Files or Directories Accessible to External Parties","shortDescription":{"text":"Files or Directories Accessible to External Parties"},"helpUri":"https://cwe.mitre.org/data/definitions/552.html"},{"id":"CWE-668","guid":"e2cb99db-6d24-b056-b0d0-885a733ec403","name":"Exposure of Resource to Wrong Sphere","shortDescription":{"text":"Exposure of Resource to Wrong Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/668.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-926","guid":"0d9b5579-5549-555a-8a97-f9cc14f3ad4a","name":"Improper Export of Android Application Components","shortDescription":{"text":"Improper Export of Android Application Components"},"helpUri":"https://cwe.mitre.org/data/definitions/926.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":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":29,"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."]}]}