{"$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":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"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":"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":"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":"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":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D2","level":"warning","message":{"text":"YearCalendarMonthsKt.YearCalendarMonths (cognitive 25): YearCalendarMonthsKt.YearCalendarMonths has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18 (21 pts), loops 2 (3 pts), match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c014ac4d2c12daba5c3cd192eaec47436aac882e86869d402137b689457339"}},{"ruleId":"D2","level":"warning","message":{"text":"YearCalendarMonthsKt.YearCalendarMonths (cognitive 25): YearCalendarMonthsKt.YearCalendarMonths has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18 (21 pts), loops 2 (3 pts), match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e10f9f5d970283027d5767aca33e2bc99427f039781b53c9a93bcdeb9692af2"}},{"ruleId":"D2","level":"warning","message":{"text":"CalendarPageSnapHelper.findSnapView (cognitive 18): CalendarPageSnapHelper.findSnapView has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarPageSnapHelper.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"15567cc0b80fe8d68609e30c0d0b7f4ab855849682549f2b42a7330b3df5e84f"}},{"ruleId":"D2","level":"warning","message":{"text":"CalendarMonthsKt.CalendarMonths (cognitive 16): CalendarMonthsKt.CalendarMonths has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), loops 2 (3 pts), match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose/src/main/java/com/kizitonwose/calendar/compose/CalendarMonths.kt"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e9f22f2820d2c27d9233b3229ee20a5ecc860ca8579c141b505b8e6b7d9307"}},{"ruleId":"D2","level":"warning","message":{"text":"CalendarMonthsKt.CalendarMonths (cognitive 16): CalendarMonthsKt.CalendarMonths has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), loops 2 (3 pts), match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarMonths.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc3cd1e4840820b081f5ea7851b11c77030814ee27b87c036b10a4402edacd29"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: YearCalendarMonthsKt.YearCalendarMonths: MethodTooLong \u2014 YearCalendarMonths runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a4beb1e54d3e8ae92c830217c27b60f5d051e22073841e44de2131766b9659"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: YearCalendarMonthsKt.YearCalendarMonths: MethodTooLong \u2014 YearCalendarMonths runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"41788dae3c9fceeca49a90c3bdaa583e9aa0f3d481f4801aafa30bf08f6d0932"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: YearCalendarView: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"view/src/main/java/com/kizitonwose/calendar/view/YearCalendarView.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2ae02572dff96ba9b39a930b2b36d0a35ad2408eae04a02e18857c236d1461"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:177-221 | compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:546-621 | compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt:177-221 | compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt:546-621 \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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54d25cb214919fe1bfecf7405300ab461fd390e25b2b7d5cf02318c6c6b7a0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:394-417 | compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:497-520 | compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt:394-417 | compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt:497-520 \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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae406ed789469593264e8cb4151c7455488e99e28eb1b2915bcd0150dbcb6d63"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarMonths.kt:37-123 | compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt:52-175 | compose/src/main/java/com/kizitonwose/calendar/compose/CalendarMonths.kt:36-122 | compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt:52-175 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarMonths.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0dd8d314f50987da30b13271451cd7b2cb5e977f9f3c1a2c3a2ecf7664a3130"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (55 corresponding lines): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendar.kt:43-97 | compose/src/main/java/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendar.kt:42-96 \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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendar.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"df81e051bedfc79d74f63b8d5d4682a8ef33013567116eeb0f6ce57cd1bd0bab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt:30-75 | compose/src/main/java/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt:29-74 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e65eeda7ea1d78e4bc5432307536ffe34646a347e1f46a5a5080fb6d10599e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt:334-360 | compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt:334-360 \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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"741cee0855317ea5f6ec8ef95cf75e13982a5259373f6e6e8f9ef2361024c3f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): view/src/main/java/com/kizitonwose/calendar/view/internal/monthcalendar/MonthCalendarAdapter.kt:197-219 | view/src/main/java/com/kizitonwose/calendar/view/internal/weekcalendar/WeekCalendarAdapter.kt:158-176 | view/src/main/java/com/kizitonwose/calendar/view/internal/yearcalendar/YearCalendarAdapter.kt:245-273 \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":"view/src/main/java/com/kizitonwose/calendar/view/internal/monthcalendar/MonthCalendarAdapter.kt"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec66cceeb5a8b5917fc95a4abae8f09615e504fea6687018321ec626c6467e65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/data/MonthData.kt:50-65 | data/src/main/java/com/kizitonwose/calendar/data/MonthData.kt:51-66 \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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/data/MonthData.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"428c1d58ae3e18f7cdc3682dd7ec67e8bb7821e43f55080d6f0bba14413e3eb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): view/src/main/java/com/kizitonwose/calendar/view/CalendarView.kt:220-257 | view/src/main/java/com/kizitonwose/calendar/view/WeekCalendarView.kt:185-216 \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":"view/src/main/java/com/kizitonwose/calendar/view/CalendarView.kt"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"df677cb8a4e2d60628891e416211a3d0964140a8a0e61b8803388e6f21ca5499"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): view/src/main/java/com/kizitonwose/calendar/view/internal/monthcalendar/MonthViewHolder.kt:24-41 | view/src/main/java/com/kizitonwose/calendar/view/internal/yearcalendar/YearMonthHolder.kt:47-68 \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":"view/src/main/java/com/kizitonwose/calendar/view/internal/monthcalendar/MonthViewHolder.kt"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"19383ee2ce852e9ff6f80263b55988d5738cc715d7aabab1a678924e9b6c395f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): view/src/main/java/com/kizitonwose/calendar/view/internal/monthcalendar/MonthCalendarAdapter.kt:113-154 | view/src/main/java/com/kizitonwose/calendar/view/internal/yearcalendar/YearCalendarAdapter.kt:137-169 \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":"view/src/main/java/com/kizitonwose/calendar/view/internal/monthcalendar/MonthCalendarAdapter.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"9926cc3db1c36dd9cefde99ebb968ae76f39543f0a9e58c82587adc03edb13d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): view/src/main/java/com/kizitonwose/calendar/view/internal/monthcalendar/MonthCalendarAdapter.kt:57-79 | view/src/main/java/com/kizitonwose/calendar/view/internal/weekcalendar/WeekCalendarAdapter.kt:59-81 \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":"view/src/main/java/com/kizitonwose/calendar/view/internal/monthcalendar/MonthCalendarAdapter.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2f22ac40bd9efb69449e3d4923fd55b951dd7e47c52eec994bc34aad7ecabf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/data/MonthData.kt:71-83 | data/src/main/java/com/kizitonwose/calendar/data/MonthData.kt:72-84 \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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/data/MonthData.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"83205ff4535df6074853e850ca867ec9ce0994b92d809ab17da82696907cc9ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/core/CalendarMonth.kt:18-29 | core/src/main/java/com/kizitonwose/calendar/core/CalendarMonth.kt:18-29 \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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/core/CalendarMonth.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"53100306cdce3ac2343f05cb948ddeced68ff9947d340f920514f8d32b15ccaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarLayoutManager.kt:44-60 | view/src/main/java/com/kizitonwose/calendar/view/internal/yearcalendar/YearCalendarLayoutManager.kt:37-53 \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":"view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarLayoutManager.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6272f2e78e703c5016d1fe5f740fa05d2a173fdb07fbd07c751cb16fcc592c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/core/CalendarYear.kt:16-27 | core/src/main/java/com/kizitonwose/calendar/core/CalendarYear.kt:18-29 \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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/core/CalendarYear.kt"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb68796a8028362fe491dfdf6d2d03ae6a72c2ffd996fd2ff6d1686937541158"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/core/Week.kt:13-23 | core/src/main/java/com/kizitonwose/calendar/core/Week.kt:13-23 \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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/core/Week.kt"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"15fd0c158c792306e5f76a6aa06509bb40a0c37bc8789a7a188a1b699e964ca2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): view/src/main/java/com/kizitonwose/calendar/view/CalendarView.kt:456-474 | view/src/main/java/com/kizitonwose/calendar/view/YearCalendarView.kt:666-683 \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":"view/src/main/java/com/kizitonwose/calendar/view/CalendarView.kt"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dfadfc9fed667ef1e50248f487007e9449c214fab40e79e14d21a9063217b7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/data/YearData.kt:17-28 | data/src/main/java/com/kizitonwose/calendar/data/YearData.kt:15-26 \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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/data/YearData.kt"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd14228cc9e59ce0bd6a5aeb5180dc9b4dd3f985fd2fda86a00328cb3649093c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarLayoutManager.kt:62-73 | view/src/main/java/com/kizitonwose/calendar/view/internal/yearcalendar/YearCalendarLayoutManager.kt:55-61 \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":"view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarLayoutManager.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6ae3afdf9fcc8e0e7266243c43e539f43c30cf1425e87f92ec2738d487df35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt:59-79 | compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt:59-79 \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":"compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea25d906bf0f9ec08f5427c372b991fa8d141d652f98d9dfd8490d93ef5d1f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/data/MonthData.kt:33-42 | data/src/main/java/com/kizitonwose/calendar/data/MonthData.kt:34-43 \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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/data/MonthData.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"38620d86e83a796d12e3a0a4c009101f950704ff9b274a775cca67043fa26aa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): data/src/main/java/com/kizitonwose/calendar/data/WeekData.kt:19-26 | compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/data/WeekData.kt:22-28 \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":"data/src/main/java/com/kizitonwose/calendar/data/WeekData.kt"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"88540aa7c9583f915022886bf9b75e706f7403c7183f67dc8c1084cca2074f4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/data/WeekData.kt:47-55 | data/src/main/java/com/kizitonwose/calendar/data/WeekData.kt:46-54 \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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/data/WeekData.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65784976ff6270890c5b95808ebfea1cb5faba3c9b2e80592144d2666425a4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarLayoutManager.kt:37-42 | view/src/main/java/com/kizitonwose/calendar/view/internal/yearcalendar/YearCalendarLayoutManager.kt:30-35 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarLayoutManager.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"d175fc52bf5220a7affb95e1bde040fc3b808c9f7d75623fab222087d8510cce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (120 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt:56-175 | compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt:56-175 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 216 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt:56\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"0487d34f69e3dd7ce92baf07a4b04d6bdbb86beb2bafb337e0770ae9c99c1f0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (83 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarMonths.kt:41-123 | compose/src/main/java/com/kizitonwose/calendar/compose/CalendarMonths.kt:40-122 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarMonths.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/CalendarMonths.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 137 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarMonths.kt:41\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarMonths.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3edb0ed78b293eaac664e7686ffb6c020d360a2f0c0a1477c6f6deca27fa5f0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:562-620 | compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt:562-620 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:562\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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab74e4cf38b1a43d1254cd6332ab52c183b2760b931cc6fefcc9968af035e556"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:178-221 | compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt:178-221 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"109a8404536a6953ec3f62b9178a9d79777b2729f26b3cef027bf6bcb3e26949"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendar.kt:55-97 | compose/src/main/java/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendar.kt:54-96 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendar.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendar.kt\u0060 as WHOLE FILES: 98% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 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 \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendar.kt:55\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendar.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"c38674d9b18344aac5ba8eb8e1b5e4f5a4cfa9dfe0111466a1ad7b1042f2b00f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt:388-429 | compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt:388-429 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the 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: \u0060YearMonth\u0060 names \u0060java.time.YearMonth\u0060 in one and \u0060kotlinx.datetime.YearMonth\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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"2998ccd8eb32d58f74915dd1f378a667b29d8e4eef6620ac54a104e7229a5fad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearItemPlacementInfo.kt:36-70 | compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearItemPlacementInfo.kt:36-70 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearItemPlacementInfo.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearItemPlacementInfo.kt\u0060 as WHOLE FILES: 100% 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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearItemPlacementInfo.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"58ee2fb68624482544cf32e568cbcd37222d151c4cc7f109e0e3c1315ba4bac2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt:188-216 | compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt:188-216 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 216 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc701f25f812ef5610399ff6168fc3006ab170608055214e6641b4a2faea325"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/ItemPlacementInfo.kt:27-51 | compose/src/main/java/com/kizitonwose/calendar/compose/ItemPlacementInfo.kt:27-51 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/ItemPlacementInfo.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/ItemPlacementInfo.kt\u0060 as WHOLE FILES: 100% 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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/ItemPlacementInfo.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d598ff1bd7a08fed4b313d7d54bb9bec33b07bd53a39aeb137ecdda480ee6e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt:51-75 | compose/src/main/java/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt:50-74 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt:51\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"0afdba37947bde17250039d384406f8fd945753aa88db4449766238c37990958"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt:337-360 | compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt:337-360 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt:337\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"5066654267564b35a7f6f15b18c474bc607d8a325a544e2fcad580ae0dac8034"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarMonths.kt:70-92 | compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt:116-138 | compose/src/main/java/com/kizitonwose/calendar/compose/CalendarMonths.kt:69-91 | compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt:116-138 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarMonths.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/CalendarMonths.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 137 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarMonths.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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarMonths.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da81623bb8a1ebd7cd772c75ece3a62fccaab86f64e23a1673b4e0a185aa7f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 4): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarMonths.kt:54-75 | compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt:72-93 | compose/src/main/java/com/kizitonwose/calendar/compose/CalendarMonths.kt:53-74 | compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt:72-93 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarMonths.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/CalendarMonths.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 137 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarMonths.kt:54\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarMonths.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"16580d53086685f80fcb41b0927b6029796d960852e527e817f794392de3fed9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:394-414 | compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt:394-414 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:394\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"74649593d93653782caff1e3f8bf9ac3cd39345ba3d512c877f92f4e5c039f48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:497-517 | compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt:497-517 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:497\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"4185928f2dd523c37b9159e96b6658a8953594293783890c715edf8f3fdb8ecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarState.kt:58-77 | compose/src/main/java/com/kizitonwose/calendar/compose/CalendarState.kt:55-74 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarState.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/CalendarState.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarState.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae13eadc685509a4754fada3d8e2921b7f8609cb4629367f022743d86592e117"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt:31-49 | compose/src/main/java/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt:30-48 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt:31\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"5048a094abb9533a3d39a82cef1dd3e5afa0d6e814fbc079101bc3d0f51e0ca3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:190-207 | compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:581-598 | compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt:190-207 | compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt:581-598 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:190\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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf7b7bd51dc78f0526383cc5d087e80184c6fd56d54e210dab868e00ca919f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt:364-381 | compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt:364-381 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt:364\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060YearMonth\u0060 names \u0060java.time.YearMonth\u0060 in one and \u0060kotlinx.datetime.YearMonth\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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"deaf65145c134cba09a382684f989fe9178fd0afda71cc79083361f3511755a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:403-417 | compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:506-520 | compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt:403-417 | compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt:506-520 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:403\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f72d2fb6e7401c0c352412519cd48324ac14fc87b061b15292faee8b127967"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): view/src/main/java/com/kizitonwose/calendar/view/CalendarView.kt:280-294 | view/src/main/java/com/kizitonwose/calendar/view/YearCalendarView.kt:447-461 \u2014 before extracting anything, compare \u0060view/src/main/java/com/kizitonwose/calendar/view/CalendarView.kt\u0060 and \u0060view/src/main/java/com/kizitonwose/calendar/view/YearCalendarView.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"view/src/main/java/com/kizitonwose/calendar/view/CalendarView.kt"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dfafa40c18aadd8e11da5775a00019ee290055e0d0b35b7c86997259b1ad216"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarPageSnapHelper.kt:40-53 | view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarPageSnapHelperLegacy.kt:24-37 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarPageSnapHelper.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4f8ebcc043fcf7181ca1caabd169f713a669425c1d5fddd71ff5e124d53893a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarState.kt:311-324 | compose/src/main/java/com/kizitonwose/calendar/compose/CalendarState.kt:308-321 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarState.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/CalendarState.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarState.kt"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"43dd873df83b7c6a720ea2d75a52f05e92aa03eb148670879a5ea4be2973692d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState.kt:302-314 | compose/src/main/java/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState.kt:300-312 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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: \u0060LocalDate\u0060 names \u0060java.time.LocalDate\u0060 in one and \u0060kotlinx.datetime.LocalDate\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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState.kt"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"208496a9e7e93fda1cb018f1e7d3acb6d1353c84d66955df2c2f106d59230b95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): view/src/main/java/com/kizitonwose/calendar/view/internal/ItemRoot.kt:62-74 | view/src/main/java/com/kizitonwose/calendar/view/internal/yearcalendar/YearRoot.kt:112-124 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060view/src/main/java/com/kizitonwose/calendar/view/internal/ItemRoot.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":"view/src/main/java/com/kizitonwose/calendar/view/internal/ItemRoot.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c829fa4684f089486255e0f3b3f40fd02ac900f72bd79beb0c6d872de8069d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/data/MonthData.kt:55-65 | data/src/main/java/com/kizitonwose/calendar/data/MonthData.kt:56-66 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/data/MonthData.kt:55\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060YearMonth\u0060 names \u0060java.time.YearMonth\u0060 in one and \u0060kotlinx.datetime.YearMonth\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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/data/MonthData.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"61831a2d3cdaff4dd7cb0c2546bbef4ebf823603cf4a776aa936358adeed8670"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendar.kt:44-53 | compose/src/main/java/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendar.kt:43-52 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendar.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendar.kt\u0060 as WHOLE FILES: 98% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 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 \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendar.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendar.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"711369ca00619deb5b0fc61209efff3fa27b688df1e08fbe9dd04e0c91f0c1bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): view/src/main/java/com/kizitonwose/calendar/view/internal/monthcalendar/MonthCalendarAdapter.kt:203-210 | view/src/main/java/com/kizitonwose/calendar/view/internal/yearcalendar/YearCalendarAdapter.kt:251-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. 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":"view/src/main/java/com/kizitonwose/calendar/view/internal/monthcalendar/MonthCalendarAdapter.kt"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"45aaf832148b1a564295c605e6ca77af5da4648d2299fa03a1330fc60123e343"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): view/src/main/java/com/kizitonwose/calendar/view/internal/monthcalendar/MonthCalendarAdapter.kt:212-219 | view/src/main/java/com/kizitonwose/calendar/view/internal/yearcalendar/YearCalendarAdapter.kt:224-231 \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 \u0060view/src/main/java/com/kizitonwose/calendar/view/internal/monthcalendar/MonthCalendarAdapter.kt:212\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"view/src/main/java/com/kizitonwose/calendar/view/internal/monthcalendar/MonthCalendarAdapter.kt"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd4a6f3a179dbc806fc1a698b3507ca104eb7aff18c104715e9fb1fafef8e8c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/core/CalendarMonth.kt:22-29 | core/src/main/java/com/kizitonwose/calendar/core/CalendarMonth.kt:22-29 \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 \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/core/CalendarMonth.kt:22\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/core/CalendarMonth.kt"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"e596a020a8286ced40675635a9e482f91704ab2059436af8b9d78ef58816b615"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarDefaults.kt:23-50 | compose/src/main/java/com/kizitonwose/calendar/compose/CalendarDefaults.kt:23-50 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarDefaults.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/CalendarDefaults.kt\u0060 as WHOLE FILES: 100% 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 \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarDefaults.kt:23\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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarDefaults.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2c0386f1c3defad2547a58216ae07a0312ccab71f52ab18461b9a0ecd89e6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:83-97 | compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt:83-97 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:83\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"97741a53a2bf0665592c98b452b6a56943aba2948d9befea8e211652cf4ab122"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:146-160 | compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt:146-160 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:146\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d4166d59de8d39d1629934591877833ce44341caea26a48ecc3638d9382a031"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:262-274 | compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt:262-274 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:262\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"3837a5604e63a7cac8c08a5d82ffe990e1fca8e1a6557901b3af1b81c8c852e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:305-314 | compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt:305-314 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/Calendar.kt\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt:305\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/Calendar.kt"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00831815199bd5aea334254d1eaa3c99a4b5ebec8bfb635fdc9be4f2cf99cc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarMonths.kt:142-150 | compose/src/main/java/com/kizitonwose/calendar/compose/CalendarMonths.kt:141-149 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarMonths.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/CalendarMonths.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 137 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarMonths.kt"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"14027176477faaad15c343b7c513daed7d4cfcf68c36300f224b59f4067acfcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarState.kt:221-234 | compose/src/main/java/com/kizitonwose/calendar/compose/CalendarState.kt:218-231 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarState.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/CalendarState.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/CalendarState.kt"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c447a06727e0c950bf96dc1b47375d055edee963e1b46a0d747d224ab463d57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt:82-92 | compose/src/main/java/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt:81-91 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt:82\u0060 it begins part-way through the construct above it, so those exact 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: \u0060DayOfWeek\u0060 names \u0060java.time.DayOfWeek\u0060 in one and \u0060kotlinx.datetime.DayOfWeek\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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"695e37ac2290c7c1635c048861a6231186d97658afb3c165dcfae228d6a0f09a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState.kt:49-67 | compose/src/main/java/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState.kt:46-64 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState.kt\u0060 as WHOLE FILES: 93% 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 \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState.kt:49\u0060 it begins part-way through the construct above it, so those exact 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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"6866916eed2fc49f39318c52abbf9992931a59f466584f254fcb1a1865b552ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState.kt:191-198 | compose/src/main/java/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState.kt:188-195 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState.kt\u0060 as WHOLE FILES: 93% 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState.kt"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e2d506481852cc527ec0bae91d3b0d9fa0f85c053d48d535c29d447e651816"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState.kt:55-73 | compose/src/main/java/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState.kt:53-71 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState.kt:55\u0060 it begins part-way through the construct above it, so those exact 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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec3afc30a31c17bd43d0bb03cfc446381e6a2b92ac4707108a76fed8ee25e01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState.kt:216-223 | compose/src/main/java/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState.kt:214-221 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState.kt"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5baef80ea8d7871df2df69121d01c68c5e6242e7124d155574d4fae1be1f43a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt:242-253 | compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt:242-253 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 216 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"810b17962a138d0075a0d79193be3d6e27e619481f376a36a10fef88521bb28a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt:276-285 | compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt:276-285 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 216 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8dfa6f02ae38219c182d2f60acdaed03985a8f564ccde09a6099fd5b18ada6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt:223-236 | compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt:223-236 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e35532e8b094792f00f048b42c558cab17beb36f008f80b0a621d240c36ec7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/core/CalendarMonth.kt:31-36 | core/src/main/java/com/kizitonwose/calendar/core/CalendarMonth.kt:31-36 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/core/CalendarMonth.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a49d867b73b8206cb276b49adf1f066aea646eeca1d53bf7009800ae90c999"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/core/CalendarYear.kt:29-34 | core/src/main/java/com/kizitonwose/calendar/core/CalendarYear.kt:31-36 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/core/CalendarYear.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"42241991c489241a6a2bb39ea9c98d79fd020786d4e5bcccbb05580c3b041b85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/core/Extensions.kt:23-28 | core/src/main/java/com/kizitonwose/calendar/core/Extensions.kt:16-21 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060DayOfWeek\u0060 names \u0060java.time.DayOfWeek\u0060 in one and \u0060kotlinx.datetime.DayOfWeek\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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/core/Extensions.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0890153e0dfa6604415a5afc2205289b454a10d30f2844ca295d037204a8333a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/core/Week.kt:25-29 | core/src/main/java/com/kizitonwose/calendar/core/Week.kt:25-29 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/core/Week.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"237ce2c7c4e2fa4f9fbbebab234ba131b3af6e23e392b35daaa2d4a7e1c85387"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/data/DataStore.kt:11-20 | data/src/main/java/com/kizitonwose/calendar/data/DataStore.kt:11-20 \u2014 before extracting anything, compare \u0060compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/data/DataStore.kt\u0060 and \u0060data/src/main/java/com/kizitonwose/calendar/data/DataStore.kt\u0060 as WHOLE FILES: 94% 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. 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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/data/DataStore.kt"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"48049bb917d617c2dfae8d148780179410e23ef806fdad56732a4c1c15d9c0bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): compose/src/main/java/com/kizitonwose/calendar/compose/CalendarState.kt:323-329 | compose/src/main/java/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState.kt:221-227 \u2014 before extracting anything, compare \u0060compose/src/main/java/com/kizitonwose/calendar/compose/CalendarState.kt\u0060 and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState.kt\u0060 as WHOLE FILES: 83% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose/src/main/java/com/kizitonwose/calendar/compose/CalendarState.kt"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd6ec91d05398fbbf848a491ab0c75f8310972972ec3011d96631d721d9b343"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): view/src/main/java/com/kizitonwose/calendar/view/CalendarView.kt:379-385 | view/src/main/java/com/kizitonwose/calendar/view/YearCalendarView.kt:557-563 \u2014 before extracting anything, compare \u0060view/src/main/java/com/kizitonwose/calendar/view/CalendarView.kt\u0060 and \u0060view/src/main/java/com/kizitonwose/calendar/view/YearCalendarView.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060view/src/main/java/com/kizitonwose/calendar/view/CalendarView.kt:379\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"view/src/main/java/com/kizitonwose/calendar/view/CalendarView.kt"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"f36b2e1c5751886f01606fa41bf087dd114bcd94c647a3d8252e64f9805e4b16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarPageSnapHelper.kt:171-176 | view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarPageSnapHelperLegacy.kt:48-53 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarPageSnapHelper.kt"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"5826875d83d97a4923e3946669d9e6e5c5ad9426e3183a7cfe49099565e06a6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarPageSnapHelper.kt:178-183 | view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarPageSnapHelperLegacy.kt:55-60 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarPageSnapHelper.kt"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"8974850b0d932c989afff0d31e7da19763d70f28104bd6a871d73fbfd4b7b559"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): view/src/main/java/com/kizitonwose/calendar/view/internal/monthcalendar/MonthCalendarAdapter.kt:95-102 | view/src/main/java/com/kizitonwose/calendar/view/internal/yearcalendar/YearCalendarAdapter.kt:112-119 \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":"view/src/main/java/com/kizitonwose/calendar/view/internal/monthcalendar/MonthCalendarAdapter.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"acaf42aa27e4bc9dbedb42c96b2361935242a2dca4251c9cd9ec28c66bf7e27a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): view/src/main/java/com/kizitonwose/calendar/view/CalendarView.kt:265-277 | view/src/main/java/com/kizitonwose/calendar/view/WeekCalendarView.kt:224-236 | view/src/main/java/com/kizitonwose/calendar/view/YearCalendarView.kt:432-444 \u2014 before extracting anything, compare \u0060view/src/main/java/com/kizitonwose/calendar/view/CalendarView.kt\u0060 and \u0060view/src/main/java/com/kizitonwose/calendar/view/YearCalendarView.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"view/src/main/java/com/kizitonwose/calendar/view/CalendarView.kt"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"94504540c1f3b128cbea9c120a4ed95c6c61df390a6bb1abc6bb8410b98dffdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): view/src/main/java/com/kizitonwose/calendar/view/CalendarView.kt:487-493 | view/src/main/java/com/kizitonwose/calendar/view/WeekCalendarView.kt:439-445 | view/src/main/java/com/kizitonwose/calendar/view/YearCalendarView.kt:696-702 \u2014 before extracting anything, compare \u0060view/src/main/java/com/kizitonwose/calendar/view/CalendarView.kt\u0060 and \u0060view/src/main/java/com/kizitonwose/calendar/view/YearCalendarView.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060view/src/main/java/com/kizitonwose/calendar/view/CalendarView.kt:487\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"view/src/main/java/com/kizitonwose/calendar/view/CalendarView.kt"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb6e6433f9ef0009813bf107eaa6aa45c0fb2677c6a07bacc593d6b8fdf4183"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarLayoutManager.kt:94-101 | view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarLayoutManager.kt:103-110 | view/src/main/java/com/kizitonwose/calendar/view/internal/yearcalendar/YearCalendarLayoutManager.kt:73-80 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. 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":"view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarLayoutManager.kt"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8be437b54ba0a16bfee2d03428176e35363e4ce7edc3a7e418d0e9376cd61b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): view/src/main/java/com/kizitonwose/calendar/view/internal/monthcalendar/MonthCalendarAdapter.kt:81-89 | view/src/main/java/com/kizitonwose/calendar/view/internal/weekcalendar/WeekCalendarAdapter.kt:83-91 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060holder\u0060 to \u0060MonthViewHolder\u0060 in one and \u0060WeekViewHolder\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":"view/src/main/java/com/kizitonwose/calendar/view/internal/monthcalendar/MonthCalendarAdapter.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f50255616b82b5731b15de86111aa25e2611f23527c4216de8e84a8bb63a4b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): view/src/main/java/com/kizitonwose/calendar/view/internal/monthcalendar/MonthCalendarAdapter.kt:227-235 | view/src/main/java/com/kizitonwose/calendar/view/internal/yearcalendar/YearCalendarAdapter.kt:281-289 \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 \u0060view/src/main/java/com/kizitonwose/calendar/view/internal/monthcalendar/MonthCalendarAdapter.kt:227\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"view/src/main/java/com/kizitonwose/calendar/view/internal/monthcalendar/MonthCalendarAdapter.kt"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"678902ff89d06204f3965c6149d0649b3adb1dfc8abef4bd1eb4685a12904a67"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 70 shared lines): compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:72-190 | compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.kt:43-139 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9Page.kt:76-194 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9PageAnimatedVisibility.kt:43-139 \u2014 These 4 members are variants of one another: a block of 70 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a004c9e0d4257e4c44df6f92b1b4b6759159a7e2070a40bb7372d7b0b333608"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 42 shared lines): compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt:50-138 | compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt:150-237 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2PageHighlight.kt:55-135 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2PageHighlight.kt:147-226 \u2014 These 4 members are variants of one another: a block of 42 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 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":"compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a6000cda075d2baabd5ce656a8c2b7f270dddd07edec97cd4eb407effa1994"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (59 shared lines): compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt:184-248 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2Page.kt:189-253 \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":"compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbefc4dfe096a9571deb9f24ea575f3432090ce85e9477bb159f2ad788c0bcfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt:54-159 | compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt:42-95 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example10Page.kt:54-147 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example11Page.kt:47-101 \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":"compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4685261e5f6b1a52c68e845666bfdb7b6f76461c63ed81e32cb65926f2e5d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (87 corresponding lines): sample/src/main/java/com/kizitonwose/calendar/sample/view/Example10Fragment.kt:73-159 | sample/src/main/java/com/kizitonwose/calendar/sample/view/Example9Fragment.kt:69-169 \u2014 These two members are one piece of code written twice and then edited apart: 87 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample/src/main/java/com/kizitonwose/calendar/sample/view/Example10Fragment.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"be79fcb1cdc794c67db5b42402f58accf782ce94e364915ad4a22dd3d8d06f03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (88 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Example8Page.kt:57-144 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example8Page.kt:59-147 \u2014 These two members are one piece of code written twice and then edited apart: 88 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example8Page.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e117a56bc792d8df3461366079c1578b08e79a1b83c4ce1a222725e27e406bba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (89 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt:66-162 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example3Page.kt:76-164 \u2014 These two members are one piece of code written twice and then edited apart: 89 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf4fc0e6c6cf5df311039f6011c0e968727802566100e1176d580cc4d706303"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (93 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Flight.kt:25-117 | sample/src/main/java/com/kizitonwose/calendar/sample/shared/Flight.kt:20-112 \u2014 These two members are one piece of code written twice and then edited apart: 93 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Flight.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d34f2afda70463d8074601680dceca2997638fa11da6542047567846693f882"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt:72-130 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example6Page.kt:73-131 \u2014 These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b962168e5df8b5cd14ec1236b2089df4f4e2839605a587f56269045f15e15c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (64 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt:62-125 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2Page.kt:64-130 \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":"compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"024e36af89b65dc0588f3028954e9f728d425597244234ae192f59a4af2920ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Example1Page.kt:38-89 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example1Page.kt:42-93 \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":"compose-multiplatform/sample/src/commonMain/kotlin/Example1Page.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c4e9f4dd1a4885ae7c7b348f7e288979ceb1a044bf56e65d328b633ef039ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt:171-213 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example10Page.kt:158-200 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"204ce7c3e001919a6bd661a58539451a682f887f7b97be55668e0ae5d235a44f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Example4Page.kt:41-94 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example4Page.kt:44-99 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example4Page.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9790487b29c6c6252b666668d59eb2b04326af94b58724668fe86de02f7cb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/App.kt:141-170 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/CalendarComposeActivity.kt:103-132 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/App.kt"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"996f9cb6fb11f08a6a441da9c598d60339716b3703e928973aa314e67a3b2cf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Example7Page.kt:38-90 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example7Page.kt:40-86 \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":"compose-multiplatform/sample/src/commonMain/kotlin/Example7Page.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c5456ad0106f8c7b42e72c2c663c59db2066052c2c563478b330d4d4eeebda1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt:237-276 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example3Page.kt:239-278 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a836b160dbe8e3238fdc00afd7a4f2e9f7299a0007e5e0058bd7ae2ea1896e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Example7Page.kt:104-141 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example7Page.kt:95-137 \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":"compose-multiplatform/sample/src/commonMain/kotlin/Example7Page.kt"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"60675e6bbc7b9b8a747721e27c181a3a347dc0ca311ea30f97351f8931a10c25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Example5Page.kt:35-67 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example5Page.kt:41-77 \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":"compose-multiplatform/sample/src/commonMain/kotlin/Example5Page.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d2f2446c4ee717d2fc9a7f9c3df7e9a511f3317910b6dc750b581f5c1946371"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Example5Page.kt:76-112 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example5Page.kt:82-118 \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":"compose-multiplatform/sample/src/commonMain/kotlin/Example5Page.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e470a4b2e262e3ee8b3019c4bf9b36262eafff601630d44d0eeb3ae94356f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt:279-318 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example3Page.kt:281-324 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5696c8bcc36f5dd4a94346e9726913b0652463a8be080519bc622491a10d696"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Example4Page.kt:97-126 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example4Page.kt:102-131 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example4Page.kt"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"d602806cce25c9212f1174166bf454881638db06ac100fe0ddb2172e7210f389"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:215-243 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9Page.kt:219-247 \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":"compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd9e57d724fb30b33171c4fc221a7a1ef36bd819525d231ddfdcf3ab8944075"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt:154-178 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example11Page.kt:160-184 \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":"compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f65037d4faee2bcfaf1d02c0e5c123709e4f169482a8571efb83787c5520204"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): sample/src/main/java/com/kizitonwose/calendar/sample/view/Example1Fragment.kt:83-107 | sample/src/main/java/com/kizitonwose/calendar/sample/view/Example1Fragment.kt:114-142 \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":"sample/src/main/java/com/kizitonwose/calendar/sample/view/Example1Fragment.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd306f571ff1b73d245d214c17493dc5e1ce4138d3a03e061b99001ea69906f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 28\u002B corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Example1Page.kt:111-138 | compose-multiplatform/sample/src/commonMain/kotlin/Example8Page.kt:263-295 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example1Page.kt:115-142 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example8Page.kt:256-288 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 28 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example1Page.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"408d46029e634bb55d7be2080899de26daa6d649986315ce30336bc17033346f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): sample/src/main/java/com/kizitonwose/calendar/sample/view/Example1Fragment.kt:144-165 | sample/src/main/java/com/kizitonwose/calendar/sample/view/Example8Fragment.kt:112-133 \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":"sample/src/main/java/com/kizitonwose/calendar/sample/view/Example1Fragment.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"011d8de331ee5f0257824b1b6e472c9acae0cb5a484c56c283378c0dbe9a6c8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:269-294 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9Page.kt:273-298 \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":"compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ccf5fb83b02bbc3117c9c862c382ff71688786db9ef766b567784dd736317a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/SimpleCalendarTitle.kt:73-90 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/SimpleCalendarTitle.kt:76-96 \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":"compose-multiplatform/sample/src/commonMain/kotlin/SimpleCalendarTitle.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee21b1144f873d069f3a40b5d869b8ce76ce236d65c8b9c0d3966c851d2218c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:301-319 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9Page.kt:305-323 \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":"compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5cc51831d2285aad87898590a135f278207429b031d9b02524fb66ba03e119"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt:28-36 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2PageHighlight.kt:33-41 \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":"compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb7090f1f2b6d418502592eb35ceca1a392f03606baa43f7b28bde9c72e5e0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Example8Page.kt:218-235 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example8Page.kt:211-228 \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":"compose-multiplatform/sample/src/commonMain/kotlin/Example8Page.kt"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"02372a52df131e7a3e1b317a0c8aefb11252dad7a41cfb6c3f61268d413394f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt:41-49 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Utils.kt:43-51 \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":"compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"de3e170ec1149cabd9ad5f5191e3b81bf010cd640a0c67f79b8ef58135bc44bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): sample/src/main/java/com/kizitonwose/calendar/sample/view/BaseFragment.kt:41-58 | sample/src/main/java/com/kizitonwose/calendar/sample/view/BaseFragment.kt:60-75 \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":"sample/src/main/java/com/kizitonwose/calendar/sample/view/BaseFragment.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"153153eafaaf994a30bc5a64a74eab39de82ec3b7192ae87dea2f0385a97f668"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt:194-207 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example6Page.kt:195-208 \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":"compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"827a75bc6811f8ae38003b12219f9018b6f6041cb44d71d44cd4e2f99af83a6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): sample/src/main/java/com/kizitonwose/calendar/sample/view/Example10Fragment.kt:186-200 | sample/src/main/java/com/kizitonwose/calendar/sample/view/Example2Fragment.kt:148-162 | sample/src/main/java/com/kizitonwose/calendar/sample/view/Example6Fragment.kt:148-161 | sample/src/main/java/com/kizitonwose/calendar/sample/view/Example9Fragment.kt:172-186 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample/src/main/java/com/kizitonwose/calendar/sample/view/Example10Fragment.kt"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a83473f316c8f3d2556de20388e67eb09bba3d44539d2d1d4124353c3fa340"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 13\u002B corresponding lines): sample/src/main/java/com/kizitonwose/calendar/sample/HomeActivity.kt:32-45 | sample/src/main/java/com/kizitonwose/calendar/sample/view/CalendarViewActivity.kt:49-62 | sample/src/main/java/com/kizitonwose/calendar/sample/view/Example1Fragment.kt:266-279 | sample/src/main/java/com/kizitonwose/calendar/sample/view/Example3Fragment.kt:292-304 | sample/src/main/java/com/kizitonwose/calendar/sample/view/Example4Fragment.kt:271-284 | sample/src/main/java/com/kizitonwose/calendar/sample/view/Example5Fragment.kt:213-226 | sample/src/main/java/com/kizitonwose/calendar/sample/view/Example8Fragment.kt:152-165 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample/src/main/java/com/kizitonwose/calendar/sample/HomeActivity.kt"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1aaa666774816717a61c767341781c0b24e3f5a5c9de5e0c028998d73bd69de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/ContinuousSelectionHelper.kt:44-49 | sample/src/main/java/com/kizitonwose/calendar/sample/shared/ContinuousSelectionHelper.kt:50-55 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/ContinuousSelectionHelper.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd873cf01ae3759e4a1276b8894eaa33d7012ecd6caabfa00e45356d15e5bd52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/ContinuousSelectionHelper.kt:55-60 | sample/src/main/java/com/kizitonwose/calendar/sample/shared/ContinuousSelectionHelper.kt:61-66 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/ContinuousSelectionHelper.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f8dae988113acd5cfa8d875da9e083295834da5c421cb2952e6b1c54d8aca8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt:63-69 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example6Page.kt:64-70 \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":"compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"521329f5bf5eab4e26c3e9f754a4d1274420fdcc7847acf181f2cb6ebe4a828a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (93 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:98-190 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9Page.kt:102-194 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9Page.kt\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:98\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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: \u0060CalendarHeader\u0060 names \u0060Example9PageSharedComponents.CalendarHeader\u0060 in one and \u0060com.kizitonwose.calendar.sample.compose.Example9PageSharedComponents.CalendarHeader\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c4f9ef9d8d810cc720a363c94ab7132b0b952722ea35a1d686a727c7fcbbfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (83 lines \u00D7 2): sample/src/main/java/com/kizitonwose/calendar/sample/view/Example10Fragment.kt:76-158 | sample/src/main/java/com/kizitonwose/calendar/sample/view/Example9Fragment.kt:72-154 \u2014 before extracting anything, compare \u0060sample/src/main/java/com/kizitonwose/calendar/sample/view/Example10Fragment.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/view/Example9Fragment.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample/src/main/java/com/kizitonwose/calendar/sample/view/Example10Fragment.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f28ca1ba3bc31d99d33272b6bdea4306716beedf702f247d86200f3bc5ed956"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt:82-130 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example6Page.kt:83-131 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example6Page.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt:82\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c6f6c471cab0e2d373f84105c9c55e4dbcd402ed1053f9f166f81e1cd6a7b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt:171-215 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example3Page.kt:173-217 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example3Page.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"6704f12a44f5b3819d227fc863348de5185ce13126bc820f965c58cd9377b030"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41\u201342 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt:117-158 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example10Page.kt:107-147 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example10Page.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 198 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt:161\u0060 calls \u0060OptIn\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example10Page.kt:149\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb6c0a056995ff71c724fac4255668edc1ac1eae912cf897b663a316352c3096"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt:54-95 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example11Page.kt:60-101 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example11Page.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt:54\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c1eb14dc97a760d542ec9d015b90f9219c39a408ea36a3119a4872d574700d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (70 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.kt:70-139 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9PageAnimatedVisibility.kt:70-139 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9PageAnimatedVisibility.kt\u0060 as WHOLE FILES: this scan already matched 8 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.kt:70\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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: \u0060CalendarHeader\u0060 names \u0060Example9PageSharedComponents.CalendarHeader\u0060 in one and \u0060com.kizitonwose.calendar.sample.compose.Example9PageSharedComponents.CalendarHeader\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e09e36c3631df8b2a298503b00aa4715221150f31e72b2109d214267ab57d60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example8Page.kt:107-144 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example8Page.kt:110-147 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example8Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example8Page.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example8Page.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":"compose-multiplatform/sample/src/commonMain/kotlin/Example8Page.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"1665c69083a26a750e0bcbcbdffc87637908b2c5b9df91e5b5406e0d5d93f23d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201333 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt:162-194 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2PageHighlight.kt:158-186 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2PageHighlight.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt:162\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"385f6adadb734a81480a81e4c8724bfc9f84307d1ab0fcc92f9ae18f09ce69ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201332 lines \u00D7 4): compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt:107-138 | compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt:206-237 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2PageHighlight.kt:106-135 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2PageHighlight.kt:197-226 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2PageHighlight.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.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":"compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"191511a406b90c8632ab43041579e11cb0ee9e7c3560062a9f8e5254f7164f6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt:183-213 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example10Page.kt:170-200 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example10Page.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 198 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt:183\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4b336f2d97b8e5246e8717e318581ed50ded19e6b45fe509ea941cb8e81f50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt:78-108 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example3Page.kt:89-119 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example3Page.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.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 before the matched lines, \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example3Page.kt:88\u0060 calls \u0060StatusBarColorUpdateEffect\u0060 and \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt:77\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada4f12cfae5f60e7b57c021c245f87225933f1a37f4277b854a8aeff39af35a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt:69-97 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2Page.kt:72-101 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2Page.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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt:69\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2Page.kt:71\u0060 calls \u0060StatusBarColorUpdateEffect\u0060 and \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt:68\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac39db803a20705ce3aa0d29322737117eede9726d4e2a349e71897e5a80a91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/ListPage.kt:88-117 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/ListPage.kt:90-119 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/ListPage.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/ListPage.kt\u0060 as WHOLE FILES: 98% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 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":"compose-multiplatform/sample/src/commonMain/kotlin/ListPage.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"692c95e2e79322ce3a412eed11d9b0d2ed81b65b9f2cdb1b6d65b1e153794325"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/PageAnimation.kt:17-45 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/PageAnimation.kt:19-47 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/PageAnimation.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/PageAnimation.kt\u0060 as WHOLE FILES: 100% 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/PageAnimation.kt"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea18a1add430ec89877b3e58b6cdd468f819c76b562125ca74838dfa23b90e20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt:99-126 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example11Page.kt:105-132 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example11Page.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1866c0f335f710113e10ef0a04b9db9ff4e550af4f62e27d23db23442c23b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt:140-167 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example6Page.kt:141-168 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example6Page.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a8e60c3e82fa872a899b3223592db879538cc71a89dffd255dde714fcfe343"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/SimpleCalendarTitle.kt:39-65 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/SimpleCalendarTitle.kt:42-68 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/SimpleCalendarTitle.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/SimpleCalendarTitle.kt\u0060 as WHOLE FILES: 97% 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":"compose-multiplatform/sample/src/commonMain/kotlin/SimpleCalendarTitle.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"32715f20210401f047e0c80f32e14ba01b7405ce4ad6a904d63611ac51e0455c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt:82-107 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example10Page.kt:80-105 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example10Page.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 198 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt:82\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7597eb5d01d51fa1b596656aa1079bf30a4e34ff73d8f6c8a18025bea364d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt:134-159 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2Page.kt:139-164 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2Page.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":"compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b50337ef139f0a3bbd6b70343e377763eed71a5a9156317a86f53ccf5d51b8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt:221-245 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example10Page.kt:208-232 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example10Page.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 198 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"eecaa9a50a020bf2af8c866899bf152c7b838d209a1c9c324b9c426730723f28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt:224-248 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2Page.kt:229-253 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2Page.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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt:224\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0505e5c03eb30d25869b51c4a0a82629da976963ef9744209fcb0e759443b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt:254-277 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example10Page.kt:241-264 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example10Page.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 198 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ccefeac66f397e7893ccabbaa57f76a682d062357739023dcfc893a15682d6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example1Page.kt:39-62 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example1Page.kt:43-66 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example1Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example1Page.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example1Page.kt:39\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060YearMonth\u0060 names \u0060java.time.YearMonth\u0060 in one and \u0060kotlinx.datetime.YearMonth\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example1Page.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"6711bf862603b5d7d33c86689ea0e52d71c808c2f0cc9cb13bd1c1fb5d2b1eb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt:253-276 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example3Page.kt:255-278 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example3Page.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt:253\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e135ca200a7f1900ed492a2686399454c8f5664986e6d73f6425a7c455f4c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt:295-318 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example3Page.kt:301-324 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example3Page.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt:295\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5890d25765aa462355f40e105978bf037b71dad6755e2f5dd06433263b37701"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example8Page.kt:156-179 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example8Page.kt:159-182 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example8Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example8Page.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"compose-multiplatform/sample/src/commonMain/kotlin/Example8Page.kt"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c3d4edfaa1d64f54b8922ea2d53122f136e08470da6591a611da801c2c231d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt:256-278 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2Page.kt:261-283 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2Page.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":"compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a1b2a9c0037926cd07287a42c34a84d2a57cfe9f7ccfbaebe8fc283aabe555"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt:270-292 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example6Page.kt:271-293 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example6Page.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a6aff8b13d1919f38d17129e0010999103eea1d48e05cb06e5991920a37708"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/PageAnimation.kt:51-73 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/PageAnimation.kt:53-75 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/PageAnimation.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/PageAnimation.kt\u0060 as WHOLE FILES: 100% 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/PageAnimation.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26bdc28732f8c7590225d20f188acd1bae5bac5e1640c2ebb632b6148f64ed6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:154-174 | compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.kt:101-121 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9Page.kt:158-178 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9PageAnimatedVisibility.kt:101-121 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt\u0060 and \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:154\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: \u0060Day\u0060 names \u0060Example9PageSharedComponents.Day\u0060 in one and \u0060com.kizitonwose.calendar.sample.compose.Example9PageSharedComponents.Day\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"804a1397202b7b14d6a8cdd30fa65337d24881a8983d13cf59ed0b924bb0438f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt:105-125 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2Page.kt:110-130 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2Page.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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt:105\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc074b2194f919f367e226437027f12e6250afa274938dd3ad3d06fc13f04413"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example5Page.kt:77-97 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example5Page.kt:83-103 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example5Page.kt:77\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060LocalDate\u0060 names \u0060java.time.LocalDate\u0060 in one and \u0060kotlinx.datetime.LocalDate\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 before the matched lines, \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example5Page.kt:79\u0060 calls \u0060ofPattern\u0060 and \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example5Page.kt:73\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example5Page.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"017626637daafee5a3cf0b5e719422feeabdb52803edd10c066b04cba03e9ca0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt:242-262 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example6Page.kt:243-263 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example6Page.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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: \u0060LocalDate\u0060 names \u0060java.time.LocalDate\u0060 in one and \u0060kotlinx.datetime.LocalDate\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64223501589a7c20eb942d0406dea88406ab29a20c52988f190ee511beaebac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example7Page.kt:121-141 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example7Page.kt:117-137 \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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example7Page.kt:121\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example7Page.kt"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a98958a3a75842ac1f45b865b415b23d225a1ae424209ed86ed3bf070bcfcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:84-104 | compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.kt:56-76 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt\u0060 and \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:84\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe78cf6409797b4eb4d50165e50c6a920c21ea799c87ab0191144742352eabf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt:238-258 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Utils.kt:249-269 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Utils.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1bcd0951b37afea85d737b07e46bb8739eba5467e5eef16f24966e6ded21af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9Page.kt:88-108 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9PageAnimatedVisibility.kt:56-76 \u2014 before extracting anything, compare \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9PageAnimatedVisibility.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9Page.kt:88\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":"sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9Page.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c223f94d5200014e90af612aa10983643f46401b749ce435a39e0999150c6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example1Page.kt:70-89 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example1Page.kt:74-93 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example1Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example1Page.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example1Page.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":"compose-multiplatform/sample/src/commonMain/kotlin/Example1Page.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dee07f5464bd1c1e98a5174dc470088c105ba18c19bbe312a50ad35ff117619"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt:50-68 | compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt:150-168 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt:50\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2f08e225a5e831b9f35806ab5d1e2145ce732a2c9b6279beaedb2c7748af97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/App.kt:142-159 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/CalendarComposeActivity.kt:104-121 \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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/App.kt:142\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/App.kt"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b40f2f9cadf1efc24d83478f3e329662a73480550a64f681b50a06d6f631414"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt:185-202 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2Page.kt:190-207 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2Page.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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt:185\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"b684ce87c1535ede09cf83d283ba81c562c9f392b0febfde90a136933be403c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example4Page.kt:46-63 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example4Page.kt:49-66 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example4Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example4Page.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example4Page.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":"compose-multiplatform/sample/src/commonMain/kotlin/Example4Page.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"d94329c8ff3671fee546c1b7936c00c0afaff524d0bffbbff9ecec2762795483"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example7Page.kt:44-61 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example7Page.kt:46-62 \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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example7Page.kt:44\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example7Page.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f9b2b40f026605e496d5433c48ef19a2178f0728652a97b76ee265726cc49a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt:65-81 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example10Page.kt:63-78 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example10Page.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 198 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt:65\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"138a7999b5ba4d69c56df034a5ed6e9b4ea2ddcd7e3809ce964ba5fe7758072c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt:130-146 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example11Page.kt:136-152 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example11Page.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a50bf1c6d9cd715369b423fb1e6df7c72a95f624855119929a3bc8104180740"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt:62-78 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2PageHighlight.kt:66-80 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2PageHighlight.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt:62\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe57562a01f3ec1a574f559842b0e89f69678d8bdeb06bea53d1dff559e79ad6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.kt:47-63 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9PageAnimatedVisibility.kt:47-63 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9PageAnimatedVisibility.kt\u0060 as WHOLE FILES: this scan already matched 8 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.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: \u0060LocalDate\u0060 names \u0060java.time.LocalDate\u0060 in one and \u0060kotlinx.datetime.LocalDate\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e410ddd2b90faeaad08419062f485af952f1819726f65cdc8703eb6b6b0c84e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.kt:148-164 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9PageAnimatedVisibility.kt:148-164 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9PageAnimatedVisibility.kt\u0060 as WHOLE FILES: this scan already matched 8 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. Note first that the copies are not typed on the same thing: \u0060MonthAndWeekCalendarTitle\u0060 names \u0060Example9PageSharedComponents.MonthAndWeekCalendarTitle\u0060 in one and \u0060com.kizitonwose.calendar.sample.compose.Example9PageSharedComponents.MonthAndWeekCalendarTitle\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab9b37272b17e8f3163cbeac15c63eed036c49dad40548a467779ca73b519335"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2PageHighlight.kt:55-71 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2PageHighlight.kt:147-163 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2PageHighlight.kt:55\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2PageHighlight.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd599230f6d11679150231bd10cf64c769418975270b1cdb42f4abcf5bf2fdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 4): compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:73-95 | compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.kt:44-67 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9Page.kt:77-99 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9PageAnimatedVisibility.kt:44-67 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt\u0060 and \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:73\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060LocalDate\u0060 names \u0060java.time.LocalDate\u0060 in one and \u0060kotlinx.datetime.LocalDate\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea38aa8659dd87dbdfab3f7e6dd2f542eab01de64e4b05f0ab5fe6d8e3b11be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:127-142 | compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.kt:82-97 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9Page.kt:131-146 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9PageAnimatedVisibility.kt:82-97 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt\u0060 and \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:127\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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: \u0060Day\u0060 names \u0060Example9PageSharedComponents.Day\u0060 in one and \u0060com.kizitonwose.calendar.sample.compose.Example9PageSharedComponents.Day\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d11801cf9459000ee880c4df532ec27226e860d15b05c83934979ab93a6855d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt:163-178 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example11Page.kt:169-184 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example11Page.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.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":"compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"115fd6d77327aed336e77825424a217701557b51ff495c46018047a7767e0129"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example1Page.kt:93-108 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example1Page.kt:97-112 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example1Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example1Page.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"compose-multiplatform/sample/src/commonMain/kotlin/Example1Page.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"078538c56fea1c66057c2a6bde8e202bc38ee13d013eca0785bebc284839c8be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt:204-219 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2Page.kt:209-224 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2Page.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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt:204\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f5fa3f9606eb395e70d476e6cb712955c1b67e2ea33e563e7f446b5a24892d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt:80-95 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2PageHighlight.kt:82-95 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2PageHighlight.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt:80\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"97325b7639397a0f2507db4d492bfb9ee677843c7cf42be72afd504cf9462caa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example4Page.kt:103-118 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example4Page.kt:108-123 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example4Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example4Page.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example4Page.kt:103\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example4Page.kt"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b7f322285e3d7b17dc035ccd9a99fb9ebab0f7c16ba4f214d1fe1796cc508e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example4Page.kt:130-145 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example4Page.kt:135-150 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example4Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example4Page.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example4Page.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e89e0c05e965bbe02f72e2f4b90437038bae0a69e2d04ffb435024716057f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Format.kt:30-45 | sample/src/main/java/com/kizitonwose/calendar/sample/shared/Utils.kt:42-55 \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":"compose-multiplatform/sample/src/commonMain/kotlin/Format.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d4b0e0d970f1e08dee17ac45753bd0eb4a9ebbeee05ab326e5eb1ded8db31a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example5Page.kt:36-50 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example5Page.kt:42-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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example5Page.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. Note first that the copies are not typed on the same thing: \u0060LocalDate\u0060 names \u0060java.time.LocalDate\u0060 in one and \u0060kotlinx.datetime.LocalDate\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example5Page.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8876490c83c2d13deefa1fbe19f3f5a7bbf035307b6571d59f364ceacc61620"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:157-170 | compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.kt:85-98 | compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.kt:104-117 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9Page.kt:161-174 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9PageAnimatedVisibility.kt:85-98 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9PageAnimatedVisibility.kt:104-117 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt\u0060 and \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:157\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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: \u0060Day\u0060 names \u0060Example9PageSharedComponents.Day\u0060 in one and \u0060com.kizitonwose.calendar.sample.compose.Example9PageSharedComponents.Day\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"8584eb1afc6372a213dd0d68d344dd44beef9cf18036def3bac639f6f5e1f279"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 4): compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt:58-71 | compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt:158-171 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2PageHighlight.kt:63-74 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2PageHighlight.kt:155-166 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2PageHighlight.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt:58\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59e15eaa6214c13854e3c2bb33ef01e011ff5fe9f16736ccd6036f83edbb638"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): sample/src/main/java/com/kizitonwose/calendar/sample/view/Example10Fragment.kt:100-113 | sample/src/main/java/com/kizitonwose/calendar/sample/view/Example2Fragment.kt:104-117 | sample/src/main/java/com/kizitonwose/calendar/sample/view/Example9Fragment.kt:96-109 \u2014 before extracting anything, compare \u0060sample/src/main/java/com/kizitonwose/calendar/sample/view/Example10Fragment.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/view/Example9Fragment.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060sample/src/main/java/com/kizitonwose/calendar/sample/view/Example10Fragment.kt:100\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample/src/main/java/com/kizitonwose/calendar/sample/view/Example10Fragment.kt"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"847febbf57f1677ef36c4ceac1db032ba8aed7f31045e2708313e4fe0519edaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt:136-149 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example3Page.kt:148-161 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example3Page.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt:136\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8975e220a003049d210c19fc8c7ff218fafd2b70d96fcab4e24333b8d82e97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt:125-137 | compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt:67-79 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example10Page.kt:114-126 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example11Page.kt:73-85 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example10Page.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 198 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2838644ee373798808c0cc43ccf58f7cc54a48fec7304aff17399c39e104d9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/ContinuousSelectionHelper.kt:26-38 | sample/src/main/java/com/kizitonwose/calendar/sample/shared/ContinuousSelectionHelper.kt:32-44 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/ContinuousSelectionHelper.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/shared/ContinuousSelectionHelper.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":"compose-multiplatform/sample/src/commonMain/kotlin/ContinuousSelectionHelper.kt"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5536a3390531092180c1898ddd1706cfbaf4847e119c26f38de9c43984bee118"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt:163-175 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2Page.kt:168-180 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2Page.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":"compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6b27be4b6561e6ca0d8617c20316f21df15bf2aa58f42765900cd7c13ad288"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt:222-234 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example3Page.kt:224-236 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example3Page.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82f0e9c4fc77df422335556323660399bf1a94419cd0e89b7ecb1621756bdba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example8Page.kt:202-214 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example8Page.kt:196-208 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example8Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example8Page.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example8Page.kt:202\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example8Page.kt"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f50e8951f621169aa27f642c26f46116b4a5b7f5ea08d3e8d7cfe4699110b8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt:208-220 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Utils.kt:219-231 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Utils.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"f111c1c0031367bdef7726189cffe0f9b51a3be806bd9b49699dec373fffa04f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt:223-235 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Utils.kt:234-246 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Utils.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ade34131beef2ab1acf7b62e7c762c4cb784b26df334d4a3a0a429375eb8bb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt:113-124 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example11Page.kt:119-130 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example4Page.kt:117-128 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example11Page.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt:113\u0060 it begins part-way through the construct above it, so those exact 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, \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example4Page.kt:129\u0060 calls \u0060HorizontalDivider\u0060 and \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt:125\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1cf32927980c048046a76968f7406bbda5ae7d7a7c514988dc720120c92c5f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): sample/src/main/java/com/kizitonwose/calendar/sample/view/Example10Fragment.kt:83-94 | sample/src/main/java/com/kizitonwose/calendar/sample/view/Example2Fragment.kt:86-97 | sample/src/main/java/com/kizitonwose/calendar/sample/view/Example9Fragment.kt:79-90 \u2014 before extracting anything, compare \u0060sample/src/main/java/com/kizitonwose/calendar/sample/view/Example10Fragment.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/view/Example9Fragment.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060sample/src/main/java/com/kizitonwose/calendar/sample/view/Example10Fragment.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample/src/main/java/com/kizitonwose/calendar/sample/view/Example10Fragment.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"327779960960b77ca7c063092eeb6bbdad825968cf045cd6910c9af4f10db815"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example8Page.kt:273-284 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example8Page.kt:266-277 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example8Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example8Page.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example8Page.kt:273\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example8Page.kt"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"abcf657ed5f3ffc2e48283f440492140208bcc3277b92d39c6ea31b9cfdae8f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:303-314 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9Page.kt:307-318 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9Page.kt\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:303\u0060 it does not close everything it opens, so those exact 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: \u0060WeekModeToggle\u0060 names \u0060Example9PageSharedComponents.WeekModeToggle\u0060 in one and \u0060com.kizitonwose.calendar.sample.compose.Example9PageSharedComponents.WeekModeToggle\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"a292e2f8837bb14553c4b254ed442bd3010e096065deacbe0c31b46a7a2a2edd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt:262-272 | compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt:163-173 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example10Page.kt:249-259 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example11Page.kt:169-179 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example10Page.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 198 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt:262\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de0d55a1e7cbd7bccc9816ed40c264c5bcb6eb5badb9f5cd203afbbf68511ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt:67-77 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example3Page.kt:77-87 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example3Page.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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: \u0060YearMonth\u0060 names \u0060java.time.YearMonth\u0060 in one and \u0060kotlinx.datetime.YearMonth\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, \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example3Page.kt:88\u0060 calls \u0060StatusBarColorUpdateEffect\u0060 and \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt:78\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example3Page.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee096919180097dc18602ce82b412027a354be0eb44719788c89e9fd0ea0ac85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:176-185 | compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.kt:125-134 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9Page.kt:180-189 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9PageAnimatedVisibility.kt:125-134 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt\u0060 and \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9PageAnimatedVisibility.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:176\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3c5caafc406f656be696f724fa6da1b5a542a19415c47ef423791797d58984"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt:160-169 | compose-multiplatform/sample/src/commonMain/kotlin/Example1Page.kt:117-126 \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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt:160\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example11Page.kt"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"abcb9bbe82f1c2634025f36813b48af075a8d68a92000c11a7f657e51719bc1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example1Page.kt:120-129 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example1Page.kt:124-133 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example1Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example1Page.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example1Page.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example1Page.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"32cdf6c3b22384bcfc25020f37483e917b3841660882c53cd0cad7e6640f12db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:216-225 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9Page.kt:220-229 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9Page.kt\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:216\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"92bb8762248d7fed1771564870ab2396c2838c4c24380198a17d5f985a9d4e7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example11Page.kt:166-175 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example1Page.kt:121-130 \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 \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example11Page.kt:166\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example11Page.kt"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f78d63d7b33bcc74d66f2d04a12e7cc45390f199f36c61f59318b343aac025"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt:172-180 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example10Page.kt:159-167 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example10Page.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 198 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt:172\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example10Page.kt"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff164e76dde4046c4c61a616dadb695a920bb8f622e70688839e1b22d779657"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt:29-36 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2PageHighlight.kt:34-41 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2PageHighlight.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example2PageHighlight.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"756a47a4210b505fddd1abea6a6cf2d2f1c49aa5855b4347a71af96039975264"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt:42-49 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Utils.kt:44-51 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Utils.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"db756393ccc66defefcfac7883a65060a668e993c490f63200e98f1c67715b1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): sample/src/main/java/com/kizitonwose/calendar/sample/view/Example3Fragment.kt:275-282 | sample/src/main/java/com/kizitonwose/calendar/sample/view/Example5Fragment.kt:194-201 \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 \u0060sample/src/main/java/com/kizitonwose/calendar/sample/view/Example3Fragment.kt:275\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060sample/src/main/java/com/kizitonwose/calendar/sample/view/Example5Fragment.kt:192\u0060 calls \u0060create\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/view/Example3Fragment.kt:273\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":"sample/src/main/java/com/kizitonwose/calendar/sample/view/Example3Fragment.kt"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"a43cf39d818d0425f1c31aad2c5a70c1e0ad4ae8a9e4a073dec453be93db2386"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt:201-207 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example6Page.kt:202-208 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example6Page.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"a44328823f2c5d4437ee5d7d2a8a12ac9c4b8d5a83daa1a5a2213c1dc6ae1238"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): sample/src/main/java/com/kizitonwose/calendar/sample/view/Example1Fragment.kt:98-103 | sample/src/main/java/com/kizitonwose/calendar/sample/view/Example8Fragment.kt:69-75 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060view\u0060 to \u0060View) = DayViewContainer(view) override fun bind(container: DayViewContainer\u0060 in one and \u0060View) : ViewContainer(view\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":"sample/src/main/java/com/kizitonwose/calendar/sample/view/Example1Fragment.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce4f46a4870d679ae4619fdf506861c8fe5b6d2569965aef76ab5bb83193dcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt:63-68 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2Page.kt:65-70 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2Page.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: \u0060LocalDate\u0060 names \u0060java.time.LocalDate\u0060 in one and \u0060kotlinx.datetime.LocalDate\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, \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example2Page.kt:71\u0060 calls \u0060StatusBarColorUpdateEffect\u0060 and \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.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":"compose-multiplatform/sample/src/commonMain/kotlin/Example2Page.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14ca8227ee79d3ac5f394ff0e305a7968a1f406701575f8746ba44b26308619"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example8Page.kt:58-63 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example8Page.kt:60-65 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example8Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example8Page.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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: \u0060LocalDate\u0060 names \u0060java.time.LocalDate\u0060 in one and \u0060kotlinx.datetime.LocalDate\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, \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example8Page.kt:66\u0060 calls \u0060StatusBarColorUpdateEffect\u0060, \u0060colorResource\u0060 and \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example8Page.kt:64\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example8Page.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a7600ac7809ead36c805e76ad300a8dfe5aa3d4c792c55711ad56f0a9822d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Scaffold.kt:14-25 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Scaffold.kt:16-27 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Scaffold.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Scaffold.kt\u0060 as WHOLE FILES: 100% 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Scaffold.kt"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0363419bd496e12511499c0551cf99cea4d65dc4c001be6495ad02c00efaa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt:170-182 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example6Page.kt:171-183 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example6Page.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f969d14ff2e004b3dd8f6bee080e9df7b9530cfee678ac10f593b5f9e26fc26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt:210-219 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example6Page.kt:211-220 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example6Page.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ae9047d9b1168bb619a7ddf43116d9a665f9da867b3dc52cc8ead7a10069c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt:222-234 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example6Page.kt:223-235 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example6Page.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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: \u0060DayOfWeek\u0060 names \u0060java.time.DayOfWeek\u0060 in one and \u0060kotlinx.datetime.DayOfWeek\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example6Page.kt"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a09613d6b1e60358b4955efb0d88332b7584a357e575e4e20eb912cf5bfefa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:197-206 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9Page.kt:201-210 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9Page.kt\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:197\u0060 it begins part-way through the construct above it, so those exact 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: \u0060MonthAndWeekCalendarTitle\u0060 names \u0060Example9PageSharedComponents.MonthAndWeekCalendarTitle\u0060 in one and \u0060com.kizitonwose.calendar.sample.compose.Example9PageSharedComponents.MonthAndWeekCalendarTitle\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d808b99aabcc6f9a795c5e768fcdb00f0fddb608b58e4ae33c76ae03c0696e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt:246-261 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9Page.kt:250-265 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Example9Page.kt\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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: \u0060CalendarHeader\u0060 names \u0060Example9PageSharedComponents.CalendarHeader\u0060 in one and \u0060com.kizitonwose.calendar.sample.compose.Example9PageSharedComponents.CalendarHeader\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":"compose-multiplatform/sample/src/commonMain/kotlin/Example9Page.kt"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec23b929eaf9747924a83f3221e6493f29908759764884c64366a70af1006dec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt:57-66 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Utils.kt:59-68 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Utils.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt:57\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"6536d0f53aa48de63b27a218634f6439e54f821455281c6639c4781e48df8cf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt:90-100 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Utils.kt:101-111 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Utils.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba8c3a6cb13471efec110ca706110523eb5652a042f7ad6b05ed7ef3a6c54d63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt:109-117 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Utils.kt:120-128 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Utils.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac70dea44002a29fc9b9b9e3d74bda56dafbd1587748497ff58871bb3109595a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt:123-131 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Utils.kt:134-142 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Utils.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"8380d3eaf3c63c96a307deac29ff9629a4478a2d3116ec7ff0ef0efd69a8b9ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt:143-151 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Utils.kt:154-162 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Utils.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt:143\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c641fc8f42ba5349f7016f486e640148f543845a52828a1a99ddf7b14c920a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt:162-170 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Utils.kt:173-181 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Utils.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt:162\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca32d42adf5e65c56d5c0030b81c4527e38101e012956c10f791e525b2eb7d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt:178-186 | sample/src/main/java/com/kizitonwose/calendar/sample/compose/Utils.kt:189-197 \u2014 before extracting anything, compare \u0060compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt\u0060 and \u0060sample/src/main/java/com/kizitonwose/calendar/sample/compose/Utils.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compose-multiplatform/sample/src/commonMain/kotlin/Utils.kt"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"2947932b9cda09c830d15b98b6a73bb2216f57c8a2d4a28d420155f234a2b827"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: :core: :core: abstractness 0.07, instability 0.00, distance 0.93 \u2014 zone of pain \u2014 concrete and depended on by 3 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"2c169ab358d9ef7b8aa3cb879c1f7e85b6a8f6804912a9a734828ed1d7a04167"}},{"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":"f588b5064be19cb3e40295583eaf06f266a230502531a1fac503c403660deb57"},"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":"063e3fecdaf8bab79f68cd3c9abb6fa3a431858bb9cec53aea621fa75c5e6cdd"},"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":"43377f34b65708e63adc1e9ad8d09d356f601727f37ece54d69088739b1a353d"},"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":"78d7408317be484cd47970b0b8ece5f49ad54e0fee3a43d78f0757e857c1f82a"},"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":"552d6e17660c959c79fe793651dda1f11f68a4d7b3d6699b09b3b50917c52941"},"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":"098e286d5039a594ebb202a8fe896fef970a576d24c836d7c0bd99f3dd750133"},"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":"a0a20461456d7c998106e290ce2afc290863d1fe5de4301ced4f5e061c4b9253"},"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":"da3f4af0fbedf6066ef59613a01f45853e02c0c00dbcf596411180b25fc8fc75"},"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":"e76e90320b0343c9702b6e324e9bc94a36e0ab5c07e049ca623cc864850a6274"},"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":"40aa90274f0cbaab3b428570448aeae2572a46846c8aa258aa91086905e7243f"},"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":"ef421d0c36f81eb2058de20d8fb252e8fb5b52e8ea37ee7e580f19ae22d5f7c1"},"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":"961022a507c48e5137f14c7e201effda47d029c41219ee074fc739a3e3340246"},"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":"15988c412423b6458de769332b7791e1611a090c8d640cecde93e6e6a7446f01"},"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":"cc1c0a144eafab43cbe10e0db7c975f9d951726854fd7e6ab6436abba97fa5c2"},"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":"92ba1d6636abacf07ee5cbf0ad16d77165c911a9236b69c1206e7ec773d85d55"},"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":"6431330ebcf04cf06d4edd3dff959e3a14d321002a809b2ff264405939354e0a"},"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":"640fb1b45b208319f1790fbc54b8861179eb0c74150ddb0eaa50c70a0428b4ca"},"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":"3922797ee3f6099a46aba0a5afae67953fbe9992fb9ff0c0cf2c5f9ffb23bb72"},"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":"57858dfadfb7838f0251577f0feac4cae7c81cbd66df5e2a5bb6f3511d5c76f8"},"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":"a4b3f90c0a7fb767488dab8bf22626caffd12658c9dd7ed4611653a1d5d0b6de"},"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":"e2eb723e4382cc37f969537cba275d161824f9ddf61ad1b2042b173443e34ae6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"82d4db11d69e10c9e8d5da7f1fc12a69bfa8c59b2ecd7e1c31afb1cd38085f6a"},"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":"f2cc264470d630a5747628b6be16fcc3d979bc0744990f55e37e5e59f04cecae"},"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":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dd63c5e0e483315b448d2d78de5b73e6abd40a1dea5dc18c3b5fefa74e772dd5"},"properties":{"dependency":{"package":"proxy-addr","version":"2.0.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cf841452e9d3180238b7c7de69036c3192cc888e18f3388dc5a0048726f9a483"},"properties":{"dependency":{"package":"shell-quote","version":"1.8.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"08d4a4a314003b6de65d8bfbacdece8d1533b2233004c5aa85491c738087d9d7"},"properties":{"dependency":{"package":"websocket-driver","version":"0.7.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c74c42f434cb63e34c3d076512097faad7181a2261fcb11d73b1d8130919a356"},"properties":{"dependency":{"package":"body-parser","version":"1.20.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6059abdc03cd779dc02a7bb00a46a635535ca7cbabcb339662be3c7e65607dc0"},"properties":{"dependency":{"package":"body-parser","version":"1.20.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bd0e2c2c20a3823c2643d4ce3c8a2fd826ced4aff639c8b4af4d796b0c442026"},"properties":{"dependency":{"package":"brace-expansion","version":"1.1.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0779da1210f0c74231540d05b3685f813faa1d0483a312933bb34173af2dc31f"},"properties":{"dependency":{"package":"brace-expansion","version":"2.0.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5d5923740a03ae9df779fd48e38d43895e38fbfa9ca95bf1bcc21918754c63f7"},"properties":{"dependency":{"package":"browserslist","version":"4.25.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f2b87008df91993b97ea95740b8477ed38444179b91a0e16262778668da4cd0a"},"properties":{"dependency":{"package":"compression","version":"1.7.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"43c130f31a15e91cfb73490061504e7af59331d76eae5a0bb0fdfdca3608eec1"},"properties":{"dependency":{"package":"cross-spawn","version":"7.0.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ac7e41d00b9b2568ec0836e1cef5e6fb6e2e61d7f6bd3b6e0910988d6d6ea3b2"},"properties":{"dependency":{"package":"engine.io","version":"6.5.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6a2925db8f5e647cbc4e6291c998939513d682a436176c70f5f223836493cdcc"},"properties":{"dependency":{"package":"flatted","version":"3.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8e708ca4c98dc77df55e85ffe9101e3de1688c3d105f6f213858485f7566ca3e"},"properties":{"dependency":{"package":"glob","version":"10.4.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"094a5ad27afb3798ffaf2d91ab48f2acfb0f08efb997dafcbbd9600cb15cdf67"},"properties":{"dependency":{"package":"js-yaml","version":"4.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ab4228830d7d2c7a06affb2cee9c3b7183bdc8b575a208a9bca782e3a13b5572"},"properties":{"dependency":{"package":"launch-editor","version":"2.11.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8e3900411fe572f32940f903050782d20f1dd23fd46cafeb96bcf590b91b9d4c"},"properties":{"dependency":{"package":"lodash","version":"4.17.21","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6cbed9c67694d4e5177efbc378a5d876477f8ea4d1159f6a3984b753a85eef7f"},"properties":{"dependency":{"package":"minimatch","version":"3.1.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3a87e50e2fb313b2c048e1870f30fb6b662027adda4bc7678d1b9b8d3f3114ec"},"properties":{"dependency":{"package":"minimatch","version":"9.0.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2c7ed4fc72f5e60148d35085bca77eb2db7cfb458a5369817955f72b77b0904e"},"properties":{"dependency":{"package":"node-forge","version":"1.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0eb6317240253f61399bfa28436dce67c2733521eb771b64c3c87ccb0915414a"},"properties":{"dependency":{"package":"path-to-regexp","version":"0.1.12","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2a9a9eaaf00da8ea142b579f40f04c38d7064a5b6bc93e9ece4367e9dc08cd49"},"properties":{"dependency":{"package":"picomatch","version":"2.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"10e1e4f82a9508ae69e75968a8fa02c448af5d4192445e9aa3873b32aa01e6f0"},"properties":{"dependency":{"package":"serialize-javascript","version":"6.0.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4dafe2fbe5dc278339e4569b5ed0d841efedee0d782adc74996734c7f3439d7f"},"properties":{"dependency":{"package":"socket.io-parser","version":"4.2.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ed55a2fe556754bb7431fe56572678ed4f0ed671b5777731925b1f10a7b7ff21"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0a3ed700e0787076381641842045f6785701b40d05ebdd09f6e8b43b6a654d36"},"properties":{"dependency":{"package":"tmp","version":"0.2.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4470205a049b9cda46a69fb86f4d0d386caa955ac53a6ee4412f653e5817ca26"},"properties":{"dependency":{"package":"webpack-dev-middleware","version":"7.4.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3eae84a3d4c8ffd2864d39cc74509e65598cda2793c18305c17a3b2b795eb9af"},"properties":{"dependency":{"package":"ws","version":"8.18.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e68ada0a7ee755d37796db046f84bd644681b43a999f1034a8f23051ffe16275"},"properties":{"dependency":{"package":"ws","version":"8.17.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b4bef650a5801f18ac68e6126127c86254fb84a115166c38679cb5718af77924"},"properties":{"dependency":{"package":"ajv","version":"8.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6f1e10eb8971b4ec8dc2a7e3cc14134d8a1a79d02aa69e2f4b2d016fd5cd8def"},"properties":{"dependency":{"package":"follow-redirects","version":"1.15.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"68181470a9b5f42507bc50f766b38c559905abf00d68b5a7c384d4f3ecaa4fa2"},"properties":{"dependency":{"package":"http-proxy-middleware","version":"2.0.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"61b49893f845e28fca4b3a68de8f76c7e7921675a1ead205e969e83208bda27c"},"properties":{"dependency":{"package":"micromatch","version":"4.0.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"971e883d12d93e6fe2f8ed6900ce21fc43753f40855ec60571d6321553eb767e"},"properties":{"dependency":{"package":"qs","version":"6.11.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"377d6bb1d9b6f140d563dac4f022b681063d066d2fa0850c3ea1be92f81230fa"},"properties":{"dependency":{"package":"qs","version":"6.13.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"235afddd4c1ab0e05257726c208de4aba6136e51f4fc5990b5e027e0ffde55a0"},"properties":{"dependency":{"package":"uuid","version":"8.3.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"08f23ba5e5a37e6523629de0fe7a38b2aef30257dff262ee5dfe58dcb7aec585"},"properties":{"dependency":{"package":"webpack-dev-server","version":"5.2.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dfba6026f4a35ac8140729297615b026177a87109196f3022332a39ab6616c87"},"properties":{"dependency":{"package":"cookie","version":"0.4.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9c8b24b9032d61c6f95823555671ecea49732783a59ed4f22d060ef0aa72eb06"},"properties":{"dependency":{"package":"diff","version":"7.0.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"85f42b4cda48558dcff36dd927eab0a61817375939066affa5f5e4aa4c88d907"},"properties":{"dependency":{"package":"on-headers","version":"1.0.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bf40b8aa03d380f21c390651ea3f7fcee6cb95b012e2cdf0d83e55b8a55bf324"},"properties":{"dependency":{"package":"webpack","version":"5.100.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: Build.kt \u2194 CalendarDefaults.kt: \u0060buildSrc/src/main/java/com/kizitonwose/calendar/buildsrc/Build.kt\u0060 (context buildSrc) and \u0060compose/src/main/java/com/kizitonwose/calendar/compose/CalendarDefaults.kt\u0060 (context compose) sit in DIFFERENT parts of the tree yet change together 71% of the time (10 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u00605f4fb729\u0060 Prepare version 2.6.0-beta04; \u00607ad0f348\u0060 Prepare version 2.5.4; \u0060b3569e61\u0060 Prepare versions 2.6.0-beta03-A|2.6.0-alpha04-MP \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"buildSrc/src/main/java/com/kizitonwose/calendar/buildsrc/Build.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8710ea35e50d6dde8135efc9025dd78954a414c525f3a88276b6091e7babd1"}},{"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":"3ecf2657495604baa12d27f500fa18b0f02b6afd1b0af27ba8bfb79b5cc9b17c"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3aaa9af9736faf91ad6edf1182680fc764ecbc0e3f451663761f6f53f283db53"},"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":"P1","level":"note","message":{"text":"CI build step not evidenced: A CI pipeline exists but no build step was matched \u2014 changes may merge without the build ever running. A build step may be invoked directly as a command, or declared as a task that a runner named in the pipeline resolves."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"251015acef1a259fcc13b7c60660cc8917ccb3ae8056cb5165ae03312dd586e8"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 3 public types in \u0060com.kizitonwose.calendar.view.internal.ScrollAction\u0060 are marked as implementation by their own namespace, folder or name: \u0060Forward\u0060 (view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarPageSnapHelper.kt:187, \u0060internal\u0060), \u0060Backward\u0060 (view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarPageSnapHelper.kt:188, \u0060internal\u0060), \u0060Layout\u0060 (view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarPageSnapHelper.kt:189, \u0060internal\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarPageSnapHelper.kt"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"0afc47f0c5906f669c300409dd28d1a756710d87e096efcc8f459a3863fcf6c4"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 5 public types in \u0060com.kizitonwose.calendar.view.internal\u0060 are marked as implementation by their own namespace, folder or name: \u0060CalendarPageSnapHelperKt\u0060 (view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarPageSnapHelper.kt:1, \u0060internal\u0060), \u0060CustomViewClassKt\u0060 (view/src/main/java/com/kizitonwose/calendar/view/internal/CustomViewClass.kt:1, \u0060internal\u0060), \u0060DayHolderKt\u0060 (view/src/main/java/com/kizitonwose/calendar/view/internal/DayHolder.kt:1, \u0060internal\u0060), \u0060ExtensionsKt\u0060 (view/src/main/java/com/kizitonwose/calendar/view/internal/Extensions.kt:1, \u0060internal\u0060), \u0060ItemRootKt\u0060 (view/src/main/java/com/kizitonwose/calendar/view/internal/ItemRoot.kt:1, \u0060internal\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"view/src/main/java/com/kizitonwose/calendar/view/internal/CalendarPageSnapHelper.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b83f58625706917692b27a3775da79f4596374e1cc5b48713145042ad4fa4d"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.kizitonwose.calendar.view.internal.yearcalendar\u0060 is marked as implementation by its own namespace, folder or name: \u0060YearRootKt\u0060 (view/src/main/java/com/kizitonwose/calendar/view/internal/yearcalendar/YearRoot.kt:1, \u0060internal\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"view/src/main/java/com/kizitonwose/calendar/view/internal/yearcalendar/YearRoot.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8e546ca8f929b94cd598b291da7632ced4bb11a8e2083d37f3bd2493553a2a"}},{"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 2 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/check.yml"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(orientation == HORIZONTAL \u0026\u0026 pageSnapHelper !== horizontalSnapHelper) || (orientation == VERTICAL \u0026\u0026 pageSnapHelper !== verticalSnapHelper)\u0060 appears character-identically in 2 files \u2014 view/src/main/java/com/kizitonwose/calendar/view/CalendarView.kt, view/src/main/java/com/kizitonwose/calendar/view/YearCalendarView.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":"view/src/main/java/com/kizitonwose/calendar/view/CalendarView.kt"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"702c96c79f2b962185bf147fb28f7496356224722c6b4d7210edc7cbebcee0ae"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060adapter == null || layoutManager == null\u0060 appears character-identically in 3 files \u2014 view/src/main/java/com/kizitonwose/calendar/view/CalendarView.kt, view/src/main/java/com/kizitonwose/calendar/view/WeekCalendarView.kt, view/src/main/java/com/kizitonwose/calendar/view/YearCalendarView.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":"view/src/main/java/com/kizitonwose/calendar/view/CalendarView.kt"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"7185e074a6700d25c126bd53c1df7cad003cc1a9a15eee8b8a64f57f026dd5f3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060calView.scrollPaged \u0026\u0026 calView.layoutParams.height == WRAP_CONTENT\u0060 appears character-identically in 2 files \u2014 view/src/main/java/com/kizitonwose/calendar/view/internal/monthcalendar/MonthCalendarAdapter.kt, view/src/main/java/com/kizitonwose/calendar/view/internal/yearcalendar/YearCalendarAdapter.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":"view/src/main/java/com/kizitonwose/calendar/view/internal/monthcalendar/MonthCalendarAdapter.kt"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e14fef96cb8e1ab988b5e0b14e30d725a349c545bd9335a44e5f43fa6a7935"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060currentCoroutineContext().isActive \u0026\u0026 itemCoordinates == null\u0060 appears character-identically in 4 files \u2014 compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/ItemPlacementInfo.kt, compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearItemPlacementInfo.kt, compose/src/main/java/com/kizitonwose/calendar/compose/ItemPlacementInfo.kt, compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearItemPlacementInfo.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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/ItemPlacementInfo.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a53cd8a3fcd4563081bf77d33c39faefc7158170ca3b417195611d42c836f6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060monthIndex == 0 \u0026\u0026 dateRow == 0 \u0026\u0026 dateColumn == 0\u0060 appears character-identically in 2 files \u2014 compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt, compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee3955f18f1d06ca7fa2a07a9daeb3d7dd8ea56285e239628594fb654854045d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060other == null || this::class != other::class\u0060 appears character-identically in 3 files \u2014 compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/core/CalendarMonth.kt, compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/core/CalendarYear.kt, compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/core/Week.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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/core/CalendarMonth.kt"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"386115b76abb01b08fd8c7575596fcd918653b311ffc43c8ed2aef248dde5c05"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060weekHeaderPosition == HeatMapWeekHeaderPosition.End \u0026\u0026 weekHeader != null\u0060 appears character-identically in 2 files \u2014 compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt, compose/src/main/java/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d346e5718938747bb8cbae2e0de29abb1ebb21c5a78ee729d64c2c71afa62d2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060weekHeaderPosition == HeatMapWeekHeaderPosition.Start \u0026\u0026 weekHeader != null\u0060 appears character-identically in 2 files \u2014 compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt, compose/src/main/java/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.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":"compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendar.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"765e3f620457598ab1ccb2494075732ae1bd0b91524a75748b38dbcee2b559ff"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-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-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"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":69,"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."]}]}