{"$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":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"C1","name":"Data Protection","shortDescription":{"text":"Data Protection"},"helpUri":"https://codehealth.canine.dev/dimensions/C1"},{"id":"C4","name":"Data Retention","shortDescription":{"text":"Data Retention"},"helpUri":"https://codehealth.canine.dev/dimensions/C4"},{"id":"DM10","name":"One transaction, one aggregate","shortDescription":{"text":"One transaction, one aggregate"},"helpUri":"https://codehealth.canine.dev/dimensions/DM10"},{"id":"DM11","name":"Constructible invalid state","shortDescription":{"text":"Constructible invalid state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM11"},{"id":"DM4","name":"Rich vs anemic model","shortDescription":{"text":"Rich vs anemic model"},"helpUri":"https://codehealth.canine.dev/dimensions/DM4"},{"id":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"id":"DM9","name":"Scattered domain decisions","shortDescription":{"text":"Scattered domain decisions"},"helpUri":"https://codehealth.canine.dev/dimensions/DM9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"ImageGenScreenKt.ImageGenScreen (cyclomatic 475): ImageGenScreenKt.ImageGenScreen has cyclomatic complexity 475 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1d8a6c9156a3ba63129a6f9165280340a32d8e273ff8aa8c14a81c36e3e527"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentService.executeToolCall (cyclomatic 323): AgentService.executeToolCall has cyclomatic complexity 323 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":11014}}}],"partialFingerprints":{"codehealthFindingId/v1":"77649615daf50d82763016c96416f1ced3e080f468b1d33e89d37d021386706f"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentService.sendMessage (cyclomatic 317): AgentService.sendMessage has cyclomatic complexity 317 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":8199}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf99710105534c9d7366729beffdb0367dcb35240aa13b6773e6fc63fa118c5"}},{"ruleId":"D1","level":"warning","message":{"text":"LlamaService.startServer (cyclomatic 257): LlamaService.startServer has cyclomatic complexity 257 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaService.kt"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16894c56b690f2d4f6236233610eccc14ac38cfb1d7ded051a80d99ae0a12b9"}},{"ruleId":"D1","level":"warning","message":{"text":"MasterModeScreenKt.MasterModeScreen (cyclomatic 239): MasterModeScreenKt.MasterModeScreen has cyclomatic complexity 239 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"47dcbe93f8597f2239cf839cb81b7717f0950ac8ae65c3cbc5d77c0131514c8f"}},{"ruleId":"D1","level":"warning","message":{"text":"LlamaChatScreenKt.LlamaChatScreen (cyclomatic 155): LlamaChatScreenKt.LlamaChatScreen has cyclomatic complexity 155 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/LlamaChatScreen.kt"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8bf5d93ca3805b5ff066b992e0d14433c1a73621ddab9cf57bfa0f21a26132"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeHarnessController.dispatchInternal (cyclomatic 150): NativeHarnessController.dispatchInternal has cyclomatic complexity 150 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"9996ef26596e89a261e36b57d9ba56201ff9e0365c7eb8fd401de2f88b4192b1"}},{"ruleId":"D1","level":"warning","message":{"text":"TamaScreenKt.TamaScreen (cyclomatic 137): TamaScreenKt.TamaScreen has cyclomatic complexity 137 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea90f3184e7ae1b411e3af3d1690598df59a6ba27832b57451590d838a1236e8"}},{"ruleId":"D1","level":"warning","message":{"text":"MasterModeScreenKt.RemoteMasterCard (cyclomatic 132): MasterModeScreenKt.RemoteMasterCard has cyclomatic complexity 132 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":3845}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e163fcbcf79a3194af18a06d2555648ae4351c112af33f6dfab5450b5bd113"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentService.validateToolCall (cyclomatic 124): AgentService.validateToolCall has cyclomatic complexity 124 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":16676}}}],"partialFingerprints":{"codehealthFindingId/v1":"360e9b882618d9f99e4028363b2fd9e989dd9e91d9e1c91aaf3dc7a947ff8c68"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentWorkspaceScreenKt.AgentWorkspaceScreen (cyclomatic 122): AgentWorkspaceScreenKt.AgentWorkspaceScreen has cyclomatic complexity 122 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"0897e11162700089a2196237812e246e590d8463daa4553e072f8d2e4a991268"}},{"ruleId":"D1","level":"warning","message":{"text":"SdDistributedScreensKt.SdDistributedMasterScreen (cyclomatic 120): SdDistributedScreensKt.SdDistributedMasterScreen has cyclomatic complexity 120 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f88963f14fe700e2cc8bf5a653a67ab216aa1cfff7d81fe1274d01c021bf1d"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessAgentRouteKt.HarnessCapturedAgentRoute (cyclomatic 113): HarnessAgentRouteKt.HarnessCapturedAgentRoute has cyclomatic complexity 113 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAgentRoute.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"e773fdebea54d80d8ff7c7381defe4554f654acd81052f1a5bfbfe3cb9ce1dfe"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowsScreenKt.WorkflowsScreen (cyclomatic 112): WorkflowsScreenKt.WorkflowsScreen has cyclomatic complexity 112 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"92dc4406d32386afdb75b56dc2278461e81b6fab4f39375da4f14bd9783aea94"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentRuntimeProfileControlsKt.AgentRuntimeProfileControls (cyclomatic 108): AgentRuntimeProfileControlsKt.AgentRuntimeProfileControls has cyclomatic complexity 108 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentRuntimeProfileControls.kt"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c3bd66207f2eed2ebd33bf4e8928dcbeda8f330d0203b0f0de025779f07b39"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoGenScreenKt.VideoGenScreen (cyclomatic 104): VideoGenScreenKt.VideoGenScreen has cyclomatic complexity 104 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f214c4c8cf215e2dd4f2a15ebbcd1bcefdd0d0a38c63604288e86e381487b4"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeChatToolRuntime.executeToolCall (cyclomatic 96): NativeChatToolRuntime.executeToolCall has cyclomatic complexity 96 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":1507}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de23dd37a061536ae3ddaa242926647101a8789800c3f8c964b039ea74fc58a"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessScreenKt.NativeHarnessScreen (cyclomatic 93): HarnessScreenKt.NativeHarnessScreen has cyclomatic complexity 93 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6c7acbcd41bd3903b2045363abb4ca3852923486a622b9d2f58ba401d53726"}},{"ruleId":"D1","level":"warning","message":{"text":"SDModelsScreenKt.InstalledSDModelsTab (cyclomatic 91): SDModelsScreenKt.InstalledSDModelsTab has cyclomatic complexity 91 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac79f7328d8409d22a2967dfadad9823ffb3313c9f8089ada060a790c8df90c2"}},{"ruleId":"D1","level":"warning","message":{"text":"LLMSettingsScreenKt.LlmSettingsContent (cyclomatic 88): LLMSettingsScreenKt.LlmSettingsContent has cyclomatic complexity 88 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e5e098a06206ff66a1b4257c31ae5d538ea20a067dd7bda1ed692a9a698ca4"}},{"ruleId":"D1","level":"warning","message":{"text":"OnnxImageGenScreenKt.OnnxImageGenScreen (cyclomatic 86): OnnxImageGenScreenKt.OnnxImageGenScreen has cyclomatic complexity 86 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f32ae5955900d46593a4c3b29d1a12c2d1ed03399f01e27da4b4b479d89d2c"}},{"ruleId":"D1","level":"warning","message":{"text":"AdventureGateScreenKt.AdventureGateBattleView (cyclomatic 79): AdventureGateScreenKt.AdventureGateBattleView has cyclomatic complexity 79 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":2657}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba24ff5dc7a9f9d4d8a772614345a8d0dc92cb907c48332a3672d16e6c659193"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteServerFormKt.RemoteServerForm (cyclomatic 79): RemoteServerFormKt.RemoteServerForm has cyclomatic complexity 79 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/RemoteServerForm.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"617e365d17ed9f8d072ecfa4aee0c1618d6f70f7467430a47b385788f91168f3"}},{"ruleId":"D1","level":"warning","message":{"text":"DownloadService.startDownloadInternal (cyclomatic 76): DownloadService.startDownloadInternal has cyclomatic complexity 76 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DownloadService.kt"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"e988b61f3b5f59ba96a48e07d87c88b14548a81c074530ecdd152d36e12f9947"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentDialogsKt.AgentSettingsDialog (cyclomatic 76): AgentDialogsKt.AgentSettingsDialog has cyclomatic complexity 76 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e7ab56614dac9279865fd6b32770e2e984d31e568c4ba6b30286e91777a83b"}},{"ruleId":"D1","level":"warning","message":{"text":"PDFToolboxScreenKt.PDFToolboxScreen (cyclomatic 76): PDFToolboxScreenKt.PDFToolboxScreen has cyclomatic complexity 76 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"cddbda295bd21d0bba0892561709f249fdb779a995c84e14e5e98f8bb5a79bf8"}},{"ruleId":"D1","level":"warning","message":{"text":"SdArtifactInspector.classifyEvidence (cyclomatic 75): SdArtifactInspector.classifyEvidence has cyclomatic complexity 75 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdArtifactInspector.kt"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"e32f430ce10c531884f1638c04260a9dd88501ed90ecbb751760b70149909bdf"}},{"ruleId":"D1","level":"warning","message":{"text":"SdCliSupportKt.buildSdCommandArgs (cyclomatic 74): SdCliSupportKt.buildSdCommandArgs has cyclomatic complexity 74 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdCliSupport.kt"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"5728b868ed4678414356d4ad9d6f752bb274c85cc59ba38e2fb95fece33a2ec1"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelSourceRepository.runtimeModelTypeFor (cyclomatic 73): ModelSourceRepository.runtimeModelTypeFor has cyclomatic complexity 73 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt"},"region":{"startLine":2426}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d54dfef0aba10bf82c54ddf278580781e865b5ccd46c045356f22d1c93e23e"}},{"ruleId":"D1","level":"warning","message":{"text":"ArcadeScreenKt.ArcadeScreen (cyclomatic 73): ArcadeScreenKt.ArcadeScreen has cyclomatic complexity 73 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"2101942b29cf437cce90c5962831d852ed9c0d65b53ee77267798f3030e895bf"}},{"ruleId":"D1","level":"warning","message":{"text":"TamaCanonicalActions.request (cyclomatic 72): TamaCanonicalActions.request has cyclomatic complexity 72 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaCanonicalActions.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b49c2c414329e49cc46615735a037d153b2b66e1524786ac29b15b0e4e2049b"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoCommandBuilderKt.buildVideoCommandArgs (cyclomatic 70): VideoCommandBuilderKt.buildVideoCommandArgs has cyclomatic complexity 70 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoCommandBuilder.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f41d7654554c60419c97e97eacef1a447e9064b04ebf9dd3415745467a0675e8"}},{"ruleId":"D1","level":"warning","message":{"text":"TermuxScreenKt.TermuxScreen (cyclomatic 70): TermuxScreenKt.TermuxScreen has cyclomatic complexity 70 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd4694be1e858f2a4674261346ad247d19dcf3d8014d53c0f1c3edd2b5436e7"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioTranscriptionScreenKt.AudioTranscriptionScreen (cyclomatic 69): AudioTranscriptionScreenKt.AudioTranscriptionScreen has cyclomatic complexity 69 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e9cf2c6a90efde818b79e33caab41674efb65ba5f44e690465bb0b3aa3b8a6"}},{"ruleId":"D1","level":"warning","message":{"text":"LlamaServerChatService.performChatWithToolsStreaming (cyclomatic 66): LlamaServerChatService.performChatWithToolsStreaming has cyclomatic complexity 66 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerChatService.kt"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29cd954def8e53a73ab932171dffb07c686ee632e0e7e00c0f8e0174fd00feb"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioLibraryScreenKt.AudioLibraryScreen (cyclomatic 65): AudioLibraryScreenKt.AudioLibraryScreen has cyclomatic complexity 65 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/library/AudioLibraryScreen.kt"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"8047ed3ecae341b304a7dd7de53eb8e1725739b23d594145ea24167de5465eff"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessInstallationsBindingKt.rememberHarnessInstallations (cyclomatic 64): HarnessInstallationsBindingKt.rememberHarnessInstallations has cyclomatic complexity 64 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessInstallationsBinding.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b98a4800dc7940a96d0df0fa31c27473842fbb792b5dbf0e365fae4363e9af29"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessRuntimeTransferKt.HarnessRuntimeTransferDialog (cyclomatic 64): HarnessRuntimeTransferKt.HarnessRuntimeTransferDialog has cyclomatic complexity 64 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeTransfer.kt"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"b369d45a1d26ca802df7331131557c9c49e10bff1161dd9dce2c9c58499c33ea"}},{"ruleId":"D1","level":"warning","message":{"text":"app.renderChatControls (cyclomatic 63): app.renderChatControls has cyclomatic complexity 63 (threshold 15). Of this number, 56 points are the body\u0027s own statements and 7 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/ai_servers_webui/app.js"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08a3909730417873e9b2714ed03839a19dacaee7b2e1159f11e48f4104ceb8d"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChatListKt.ChatMessageBubble (cyclomatic 62): AgentChatListKt.ChatMessageBubble has cyclomatic complexity 62 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentChatList.kt"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c174953a99d8c9d9b795bec96951dbe1cfcbe5286aed279b0f27fbdcf9c1794"}},{"ruleId":"D1","level":"warning","message":{"text":"Downloader.download (cyclomatic 61): Downloader.download has cyclomatic complexity 61 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/Downloader.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f2dbe7d4c059fc87b06162755bc05ec1552fe8b67aefe2fbe1540ae966ee41"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowsScreenKt.Txt2ImgUpscaleWorkflowContent (cyclomatic 59): WorkflowsScreenKt.Txt2ImgUpscaleWorkflowContent has cyclomatic complexity 59 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":5833}}}],"partialFingerprints":{"codehealthFindingId/v1":"82387fcfcf186dfb58e3de1b555fa30bd2969a3173fcbe919778d95f0641cb7b"}},{"ruleId":"D1","level":"warning","message":{"text":"BundleItemBuilderKt.buildBundleItems (cyclomatic 58): BundleItemBuilderKt.buildBundleItems has cyclomatic complexity 58 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/BundleItemBuilder.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f3da312c7a0d837297340ef71f74ca899de152b54a8868a61b2d9b4c53dc83"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessOriginalWebViewKt.HarnessOriginalWebView (cyclomatic 57): HarnessOriginalWebViewKt.HarnessOriginalWebView has cyclomatic complexity 57 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessOriginalWebView.kt"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d7b275e853af4c908874037659360933f9b8f8313f9faf2c50627fac444307"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessTerminalScreenUiKt.HarnessTerminalScreen (cyclomatic 57): HarnessTerminalScreenUiKt.HarnessTerminalScreen has cyclomatic complexity 57 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessTerminalScreenUi.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b2580f3f4163cd567bd4e17d5f6589a57db35d0dac2cf4e3fc8ba69d935b68"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowsScreenKt.MangaTranslationWorkflowContent (cyclomatic 57): WorkflowsScreenKt.MangaTranslationWorkflowContent has cyclomatic complexity 57 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":1497}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8aadf1fa3c2d989ce046ea600ecd965e51e53ab2eac59f5763cb100452ed839"}},{"ruleId":"D1","level":"warning","message":{"text":"NotesManagerScreenKt.NotesManagerScreen (cyclomatic 57): NotesManagerScreenKt.NotesManagerScreen has cyclomatic complexity 57 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a30ad88bd225a89ed8d0ccde238b73fbca8282aca23e981aa270619d0136494"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessBridgeOperations.invoke (cyclomatic 56): HarnessBridgeOperations.invoke has cyclomatic complexity 56 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessBridgeOperations.kt"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea078a3484ee577c7dc642a01e7e829baa1745a217acc1e1f75f75a42e3e7c84"}},{"ruleId":"D1","level":"warning","message":{"text":"LlamaClientService.streamNativeToolResponse (cyclomatic 54): LlamaClientService.streamNativeToolResponse has cyclomatic complexity 54 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":1908}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d42f9361961109439c5170c02812c01e9997322f0f3bc749f6b0c00f78a5ef4"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeHarnessSettingsSchemaKt.normalizeHarnessSettingsSchema (cyclomatic 54): NativeHarnessSettingsSchemaKt.normalizeHarnessSettingsSchema has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessSettingsSchema.kt"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c77b083aec7331b69a0611fc413e73348c9da91c96df59078c1fbcf55850d67"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoSumupScreenKt.VideoSumupScreen (cyclomatic 54): VideoSumupScreenKt.VideoSumupScreen has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoSumupScreen.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd84b4aeebf53f03e32472535650cf087a781215ee2ac823cab3fc75028f0a21"}},{"ruleId":"D1","level":"warning","message":{"text":"LlamaService.onStartCommand (cyclomatic 52): LlamaService.onStartCommand has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaService.kt"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5335b20783f7cfc80672a1fe487601fd8d980413e4e7667cbd5ca0f1692eaa0"}},{"ruleId":"D1","level":"warning","message":{"text":"WorldFarmMaintenance.complete (cyclomatic 52): WorldFarmMaintenance.complete has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/WorldFarmMaintenance.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"489882c51195268ca6c58ad756024e0545520d8ef94bbcec180b3c65c0ced8df"}},{"ruleId":"D1","level":"warning","message":{"text":"MangaPaintedMaskEditorKt.PaintedMaskEditorContent (cyclomatic 52): MangaPaintedMaskEditorKt.PaintedMaskEditorContent has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/MangaPaintedMaskEditor.kt"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"692cb0ee66d3c57e5fd85d57624a990de4525c4a3bc544b0716f2b11c5b8a5cd"}},{"ruleId":"D1","level":"warning","message":{"text":"GeneralSettingsScreenKt.GeneralSettingsScreen (cyclomatic 52): GeneralSettingsScreenKt.GeneralSettingsScreen has cyclomatic complexity 52 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdbc05bdfef39ea13d9c7899429158f7cc7e97c1e561c9df705955af65cc1f82"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolHttpServer.routeApi (cyclomatic 51): ToolHttpServer.routeApi has cyclomatic complexity 51 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"b68d2e8202c651facf36db8cf20662e3acde193144ed880d45582b93a532fb18"}},{"ruleId":"D1","level":"warning","message":{"text":"LlamaClientService.startGeneration (cyclomatic 51): LlamaClientService.startGeneration has cyclomatic complexity 51 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"47bb8fab8d57e411c5401bfb268853f4723e0f9e78da3e6ba6a08b8722abbfc5"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelManagerScreenKt.InstalledTab (cyclomatic 51): ModelManagerScreenKt.InstalledTab has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b553aec998bac939574d0e8cc330f0b9332f2db0e7b66f6ff7b4b9b24bcfa4"}},{"ruleId":"D1","level":"warning","message":{"text":"WearCompanionStore.sendRpc (cyclomatic 51): WearCompanionStore.sendRpc has cyclomatic complexity 51 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"165040cf46da4cb715b0d474e72cff83217c227c3dd35e3419b9031b6a45efe2"}},{"ruleId":"D1","level":"warning","message":{"text":"UnifiedNotificationManager.showTaskNotification (cyclomatic 50): UnifiedNotificationManager.showTaskNotification has cyclomatic complexity 50 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dda810d5b1651456a62c7db32672fdac273b6cbdf99be0218fe7a8edbce7afd"}},{"ruleId":"D1","level":"warning","message":{"text":"TermuxFileManagerScreenKt.TermuxFileManagerScreen (cyclomatic 50): TermuxFileManagerScreenKt.TermuxFileManagerScreen has cyclomatic complexity 50 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/TermuxFileManagerScreen.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e00fb4dad73ac0c931849c044d5165cb25085814dc45fbaa1cbc5fb788a870"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessTermuxTransportViewKt.harnessTermuxKeySequence (cyclomatic 49): HarnessTermuxTransportViewKt.harnessTermuxKeySequence has cyclomatic complexity 49 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessTermuxTransportView.kt"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"83a8fee73f6f97bd81719bc1422ca1b1c8c8fb1d3a75c450564ab180cdc71d45"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeChatVideoSupportKt.prepareNativeChatVideoPayloads (cyclomatic 49): NativeChatVideoSupportKt.prepareNativeChatVideoPayloads has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/chat/NativeChatVideoSupport.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"041032d1e5d67e3499da5546a6e1f674eed5c9cd55b5c0615c9df82025a1ed2f"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentService.getAgentTools (cyclomatic 48): AgentService.getAgentTools has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":17281}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a14174b5d580c515e64654be9b4c926bdf2cae469873983d869d70e52069df"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteMasterServer.handleClient (cyclomatic 48): RemoteMasterServer.handleClient has cyclomatic complexity 48 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteMasterServer.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"64228b74627c1ccd8001bb844bd5cdb1e12b18883bb7c57e842bab2e434839ee"}},{"ruleId":"D1","level":"warning","message":{"text":"AdventureGateScreenKt.AdventureGateScreen (cyclomatic 46): AdventureGateScreenKt.AdventureGateScreen has cyclomatic complexity 46 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: AdventureGateScreenKt.formatLogEntry (cyclomatic 49) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb5105866694c42ae943dec8e9c3867236dcce22573f643d8da4ade80a8d757"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentDialogsKt.AgentGlobalOverrideCard (cyclomatic 46): AgentDialogsKt.AgentGlobalOverrideCard has cyclomatic complexity 46 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":2695}}}],"partialFingerprints":{"codehealthFindingId/v1":"4239b73d18c36b3c118be6dd66471ff5044490c32bfe2c80665815a57d7b9f82"}},{"ruleId":"D1","level":"warning","message":{"text":"TamaNotificationReceiver.handleAlarm (cyclomatic 45): TamaNotificationReceiver.handleAlarm has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/notifications/TamaNotificationReceiver.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"112a78b4b79eee1410e4efbc7f32fd3364ebfee8c28b7a5f1322893b5b980451"}},{"ruleId":"D1","level":"warning","message":{"text":"TamaChatScreenKt.TamaChatScreen (cyclomatic 45): TamaChatScreenKt.TamaChatScreen has cyclomatic complexity 45 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"228f11701e262aec05cfd2a01638a558443be2515668fd3bce7b4a332a1caa25"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoInterpolationScreenKt.VideoInterpolationScreen (cyclomatic 45): VideoInterpolationScreenKt.VideoInterpolationScreen has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoInterpolationScreen.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10dab94e7720fcdb7dd97b02705154a59575288b84a80524dbb62940a65f377"}},{"ruleId":"D1","level":"warning","message":{"text":"LlamaAppKt.LlamaApp (cyclomatic 44): LlamaAppKt.LlamaApp has cyclomatic complexity 44 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/LlamaApp.kt"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"d20491cf0bf6569a53ffee6def5f68a1fe7f8c073b945eaf45cb37a796a35e01"}},{"ruleId":"D1","level":"warning","message":{"text":"KiwixCatalogClient.parseOpdsXml (cyclomatic 43): KiwixCatalogClient.parseOpdsXml has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/KiwixCatalogClient.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"99543406ece5aa70dfd33bbf5527bc13bbeb3f65e3ea49bf7a879a0a1917b338"}},{"ruleId":"D1","level":"warning","message":{"text":"TamaScreenKt.TamaPetDisplay (cyclomatic 43): TamaScreenKt.TamaPetDisplay has cyclomatic complexity 43 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":4784}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfbd16b8b476e956b969315cccce2612fe144d204c58ddfa38ddb26d601ea4b3"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteSummaryBackendEditorKt.RemoteSummaryBackendEditor (cyclomatic 43): RemoteSummaryBackendEditorKt.RemoteSummaryBackendEditor has cyclomatic complexity 43 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/RemoteSummaryBackendEditor.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad43e7f91cd0dd597e45c80a7d5544be142a3a2e3a1571e37477c707842c078"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelRepository.getModelDir (cyclomatic 42): ModelRepository.getModelDir has cyclomatic complexity 42 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"09cdcb7e18cb18a8e809b2c13f7b62e4b4b73bcc712def839111c2678630d961"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoRecognitionSummaryService.run (cyclomatic 42): VideoRecognitionSummaryService.run has cyclomatic complexity 42 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoRecognitionSummaryService.kt"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc84a005115ba67fb452effb30fbc9966bc7c31ec543e94911ebc687fc54db26"}},{"ruleId":"D1","level":"warning","message":{"text":"LlamaChatListScreenKt.LlamaChatListContent (cyclomatic 42): LlamaChatListScreenKt.LlamaChatListContent has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaChatListScreen.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa60c7fc29764dd8b294cea3ace934ec608daf31be5e1e28678454bd2bf7f483"}},{"ruleId":"D1","level":"warning","message":{"text":"MusicWorkspaceKt.MusicWorkspace (cyclomatic 42): MusicWorkspaceKt.MusicWorkspace has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/music/MusicWorkspace.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcbeac664a67a692fe20fb3525a28ee01b1e4509264b5fb961bcae7caa96a73e"}},{"ruleId":"D1","level":"warning","message":{"text":"PDFSummaryScreenKt.PDFSummaryScreen (cyclomatic 42): PDFSummaryScreenKt.PDFSummaryScreen has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFSummaryScreen.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d163cdca11a69b9ca170c2979d351d74ecda3074b2db2e96d90a5022e3bd22"}},{"ruleId":"D1","level":"warning","message":{"text":"BinaryRepository.findTieredBinary (cyclomatic 41): BinaryRepository.findTieredBinary has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea83e69e629b5de2ab50f094ab1067467574060854f8616bd779c3497cfadd1"}},{"ruleId":"D1","level":"warning","message":{"text":"SdModelSupportKt.inferSdFamily (cyclomatic 41): SdModelSupportKt.inferSdFamily has cyclomatic complexity 41 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdModelSupport.kt"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8dd10228d436c45abce47fd42dccb0ca0d8db023f9533addd82db87c023d53"}},{"ruleId":"D1","level":"warning","message":{"text":"FarmDroneDataKt.runPlantingDroneTick (cyclomatic 41): FarmDroneDataKt.runPlantingDroneTick has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/data/FarmDroneData.kt"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b1b1bb6356c3e4ab0683efe0709096d781859f1679e01006b96dbc6cd4fd9b"}},{"ruleId":"D1","level":"warning","message":{"text":"FarmScreenKt.FarmScreen (cyclomatic 41): FarmScreenKt.FarmScreen has cyclomatic complexity 41 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmScreen.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1cad00d059d6b25d4f7a586cc4387591a948bf654b3963deea992cb8310b91"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatMessageItemKt.LlamaMessageItem (cyclomatic 41): ChatMessageItemKt.LlamaMessageItem has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageItem.kt"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"a881196d0ad1616ddfa4d61205d61f58594c4aed9b4496b771f24ef9e684d2d8"}},{"ruleId":"D1","level":"warning","message":{"text":"DatasetProjectScreenKt.ReviewTab (cyclomatic 41): DatasetProjectScreenKt.ReviewTab has cyclomatic complexity 41 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt"},"region":{"startLine":1323}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9dd898a6903507b9cb19d411bcd28bcd452674599fd6a140105cb5c6d97196"}},{"ruleId":"D1","level":"warning","message":{"text":"PDFService.recognizeBitmapWithLlamaOcr (cyclomatic 40): PDFService.recognizeBitmapWithLlamaOcr has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":3461}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde43de6282c1b6c5119756286e21ef6659aa20ce31eb012f19bcd44cdf4955d"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeHarnessSchemaKt.parseHarnessSchemaFields (cyclomatic 40): NativeHarnessSchemaKt.parseHarnessSchemaFields has cyclomatic complexity 40 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessSchema.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f7ba730927bf8af4565f327938b55dfc1451f70f1602263fc5bd4a66b7fb5c"}},{"ruleId":"D1","level":"warning","message":{"text":"SDModelsScreenKt.inferSelectionType (cyclomatic 40): SDModelsScreenKt.inferSelectionType has cyclomatic complexity 40 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":2431}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c602c8795561c36a701c44616306a48de79b73b6040112d990cd0f872f87f1d"}},{"ruleId":"D1","level":"warning","message":{"text":"EasyModelsScreenKt.EasyModelsScreen (cyclomatic 40): EasyModelsScreenKt.EasyModelsScreen has cyclomatic complexity 40 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/easy/EasyModelsScreen.kt"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"b548beaf9cf81d6e44f73ad15ebdf42f21a9d9d8c58c8caeacdeaed1fa9bf3a7"}},{"ruleId":"D1","level":"warning","message":{"text":"DistributedLlamaLaunchResolver.resolve (cyclomatic 39): DistributedLlamaLaunchResolver.resolve has cyclomatic complexity 39 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DistributedLlamaLaunchProfile.kt"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa1bcef20787e652fc0eb802c8a5ed93c0510807ce26a9ec0d63546ed2ab3b6"}},{"ruleId":"D1","level":"warning","message":{"text":"ProcessController.start (cyclomatic 39): ProcessController.start has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ProcessController.kt"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ead4e6f8fa83cb867530e353712a7ddf705087ba537f7ab4a40c7d19f24fa0"}},{"ruleId":"D1","level":"warning","message":{"text":"TamaChatScreenKt.TamaChatBubble (cyclomatic 39): TamaChatScreenKt.TamaChatBubble has cyclomatic complexity 39 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"a091d745a77135f7cf8ec356539377763e3f9f34076a4563942c0656148c99cd"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoUpscalerScreenKt.VideoUpscalerScreen (cyclomatic 39): VideoUpscalerScreenKt.VideoUpscalerScreen has cyclomatic complexity 39 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoUpscalerScreen.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cbb006d783cd8ab097e0212a1a78cae5ef97aade3f749a65027e8dfabce59be"}},{"ruleId":"D1","level":"warning","message":{"text":"MainActivityKt.localizedTamaLocationLabel (cyclomatic 39): MainActivityKt.localizedTamaLocationLabel has cyclomatic complexity 39 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":3165}}}],"partialFingerprints":{"codehealthFindingId/v1":"281175b1522c3fdaaf05e9d23ba9a038d42d134fa535807b52579ba136963183"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelSourceRepository.startBundleDownloadQueue (cyclomatic 38): ModelSourceRepository.startBundleDownloadQueue has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e21d876fe241c425528d070c2a45e414024750320152949b27d4cb4d316824"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessComposerKt.HarnessComposer (cyclomatic 37): HarnessComposerKt.HarnessComposer has cyclomatic complexity 37 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessComposer.kt"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ccd0852767f7db361bbf7723feafccafd99655453f8ad0db63cc75474ad6d0f"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessProjectActionDialogKt.HarnessProjectActionDialog (cyclomatic 37): HarnessProjectActionDialogKt.HarnessProjectActionDialog has cyclomatic complexity 37 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessProjectActionDialog.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"1148c4e4cc85b97d0ff2b488bde2f13e42e60574b3b2f14a3b34760519851ddb"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeHarnessTurnDetailsKt.projectNativeHarnessTurnUsage (cyclomatic 37): NativeHarnessTurnDetailsKt.projectNativeHarnessTurnUsage has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessTurnDetails.kt"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cadef1ffbc570098169b9268a790f385df4429ae9acfa44936ad1121e8b6d0c"}},{"ruleId":"D1","level":"warning","message":{"text":"selection.initSelection (cyclomatic 37): selection.initSelection has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 1 of the 37 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 175, 155). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/file_station_webui/js/selection.js"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc58221b5be171f3c590742b1c30401f618e965a94369564644e82e722ff322"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioGenerationService.localizeError (cyclomatic 36): AudioGenerationService.localizeError has cyclomatic complexity 36 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/AudioGenerationService.kt"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"246dd7586e154d1a4e32c009a9f64672098287c25da2cc2c07009f324f16a4aa"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelArtifactFinalizer.finalizePrepared (cyclomatic 36): ModelArtifactFinalizer.finalizePrepared has cyclomatic complexity 36 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactFinalizer.kt"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab55ddd1d78325177b1544f15912c8a7a4147cc2ca87f71420b661a1b514d6d"}},{"ruleId":"D1","level":"warning","message":{"text":"OllamaRepository.inspectModelfile (cyclomatic 36): OllamaRepository.inspectModelfile has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/repository/OllamaRepository.kt"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf905f9de9bcd5657216408d06724aa85eb842d047402e6a364d2912d2cc48c"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentRuntimeDispatchResolver.resolve (cyclomatic 36): AgentRuntimeDispatchResolver.resolve has cyclomatic complexity 36 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/runtime/AgentRuntimeProfileSupport.kt"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c375c6591985a3fae2f272e954a34cc494416a1aa8aff295ed1f56925aa0b2"}},{"ruleId":"D1","level":"warning","message":{"text":"SdModelSupportKt.inferSdVariant (cyclomatic 36): SdModelSupportKt.inferSdVariant has cyclomatic complexity 36 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdModelSupport.kt"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3b0d2c0fc07d787698db48c21ef1998bbdfa24285acd1209672fbfb88f3288"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentService.nextHintForTool (cyclomatic 36): AgentService.nextHintForTool has cyclomatic complexity 36 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":17230}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb3e1fe43b1e29e290de3b86ae08898e049dc70acd5259c3f9aec1a26d3bf7b"}},{"ruleId":"D1","level":"warning","message":{"text":"AdventureGateCombatEngine.resolveSpeedRound (cyclomatic 36): AdventureGateCombatEngine.resolveSpeedRound has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateCombatEngine.kt"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e94aafac5bf20dd965de79d4374867da49a50702949cb1cf863688e2e7c4b0"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessExtensionsPanelsKt.HarnessPluginsCard (cyclomatic 36): HarnessExtensionsPanelsKt.HarnessPluginsCard has cyclomatic complexity 36 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessExtensionsPanels.kt"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d131e1fa9ec78af8c4411ff3433b95aa68c72d964940bceacd3257a974d401"}},{"ruleId":"D1","level":"warning","message":{"text":"QuadtrixCommandBuilder.trainingArgs (cyclomatic 35): QuadtrixCommandBuilder.trainingArgs has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/quadtrix/QuadtrixRuntime.kt"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeef67df4a8c7930af4fd3b11504d9cd9ba72a7eb42ce8b7e4dd5af9772a0ecb"}},{"ruleId":"D1","level":"warning","message":{"text":"ProcessController.getCommand (cyclomatic 35): ProcessController.getCommand has cyclomatic complexity 35 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ProcessController.kt"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07fc783d2486baa778dcea6f68a1d27d0919224c6bfb89fdb900118df031bca"}},{"ruleId":"D1","level":"warning","message":{"text":"WhisperService.transcribe (cyclomatic 35): WhisperService.transcribe has cyclomatic complexity 35 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/WhisperService.kt"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac37a79a2c774843c54eb6826db1da2fa39eba1bc65b2a52710bf8d2c7cc121c"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeChatToolAwarenessMessagesKt.nativeChatToolAwarenessMessages (cyclomatic 35): NativeChatToolAwarenessMessagesKt.nativeChatToolAwarenessMessages has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/chat/NativeChatToolAwarenessMessages.kt"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff501aec39d8a2dd29d129a73ae998c490ac2e86f8cad0c28fb7c6edd33aa50"}},{"ruleId":"D1","level":"warning","message":{"text":"AdventureScreenKt.AdventureScreen (cyclomatic 35): AdventureScreenKt.AdventureScreen has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureScreen.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"135a2121e57048c72361ded566085a554f314f15911bc09c1210a0a7c25daaa9"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentRuntimeSupport.resolveFinishTaskPayload (cyclomatic 34): AgentRuntimeSupport.resolveFinishTaskPayload has cyclomatic complexity 34 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentRuntimeSupport.kt"},"region":{"startLine":1954}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4cd51525b3e69296523435c8951056bf8a79339ac87f5dfd80793641e115c1c"}},{"ruleId":"D1","level":"warning","message":{"text":"LlamaClientService.streamLlamaServerResponse (cyclomatic 34): LlamaClientService.streamLlamaServerResponse has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"94234d12ea124a0721a22fa0e669b02aa79a1303e962b63029c15a6104b0674e"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentWorkspaceScreenKt.WorkspaceTerminalDialog (cyclomatic 34): AgentWorkspaceScreenKt.WorkspaceTerminalDialog has cyclomatic complexity 34 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt"},"region":{"startLine":1780}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e117a1bc5edba3c3c8d36516c7a2f8b1270c20034603d1de111c16f880c59e9"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioWorkspaceScreenKt.AudioWorkspaceScreen (cyclomatic 34): AudioWorkspaceScreenKt.AudioWorkspaceScreen has cyclomatic complexity 34 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/AudioWorkspaceScreen.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"497775e531ae88da23f305cea6143b75b391676d7e63b3ecd80ae39d5267e9d4"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentProjectControlPlane.permittedNextActions (cyclomatic 33): AgentProjectControlPlane.permittedNextActions has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":3209}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c99a73c14f94aec1842e5c1956bbe7f752b88ecd79f56ba55fcfd7803337e2"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeHarnessController.selectModel (cyclomatic 33): NativeHarnessController.selectModel has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt"},"region":{"startLine":1406}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d213a8b862ada1212b0f8bce929ccbbe196c5174089fbfbcb84217db04a99bc"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeHarnessProjectReviewModelsKt.foldNativeHarnessWorkflows (cyclomatic 33): NativeHarnessProjectReviewModelsKt.foldNativeHarnessWorkflows has cyclomatic complexity 33 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessProjectReviewModels.kt"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"575372a0e91b1ce58b0a74cf2390bc10f0ca43b6a98b25aeee35ebfa77923be7"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowsScreenKt.TranscribeSummaryWorkflowContent (cyclomatic 33): WorkflowsScreenKt.TranscribeSummaryWorkflowContent has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":6884}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff6aca6f9076c0da18d955877be580c26f2599d3a9321c5616abccd54ea8cfe"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerProfileEditorScreenKt.ServerProfileEditorScreen (cyclomatic 33): ServerProfileEditorScreenKt.ServerProfileEditorScreen has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/ServerProfileEditorScreen.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e361c7a1b128ae0b580f0221d3ed615cf95dda6cd8ed4daa9b775c562b1429"}},{"ruleId":"D1","level":"warning","message":{"text":"SdWorkflowGateKt.evaluateSdWorkflowGate (cyclomatic 32): SdWorkflowGateKt.evaluateSdWorkflowGate has cyclomatic complexity 32 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/SdWorkflowGate.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa60211675d30bb24fa42785b79bd4cc66755acfd103e0164a819a125d44883"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentDirectRuntimeSupportKt.advanceDirectAgentState (cyclomatic 32): AgentDirectRuntimeSupportKt.advanceDirectAgentState has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentDirectRuntimeSupport.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"993cecda19c82422f38f0f4bd04ba4e99cd088df023f8ef2e79dc7ea22382da6"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentProjectControlPlane.applyDirectToolReceipt (cyclomatic 32): AgentProjectControlPlane.applyDirectToolReceipt has cyclomatic complexity 32 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"46adaf9851cdc0852ac8809e39ac6ac5c5012e157c5a3a2d2463dd6249854a82"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomToolHttpExecutor.prepare (cyclomatic 32): CustomToolHttpExecutor.prepare has cyclomatic complexity 32 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/CustomToolHttpExecutor.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb5ee9e6d8cba1b748201473945097c770dbfd6c9d7c352de48d35ee1806d12"}},{"ruleId":"D1","level":"warning","message":{"text":"QuadtrixTrainingService.runProcess (cyclomatic 32): QuadtrixTrainingService.runProcess has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/QuadtrixTrainingService.kt"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"28508383cd9a2c1305f7be0b5d8c1e85ce33c7a17c2752007749bb425bad64e6"}},{"ruleId":"D1","level":"warning","message":{"text":"TamaScreenKt.TamaControls (cyclomatic 32): TamaScreenKt.TamaControls has cyclomatic complexity 32 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":5293}}}],"partialFingerprints":{"codehealthFindingId/v1":"51258f92c566c6600b1cb9b29f2c4fba9eb9e955ab3f935267b8d7b659802ffe"}},{"ruleId":"D1","level":"warning","message":{"text":"OnnxBackgroundRemovalScreenKt.OnnxBackgroundRemovalScreen (cyclomatic 32): OnnxBackgroundRemovalScreenKt.OnnxBackgroundRemovalScreen has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxBackgroundRemovalScreen.kt"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c0261c096e4f3f3690e65977de3c15516bbfc0cfe03179257999ea3f75db5f"}},{"ruleId":"D1","level":"warning","message":{"text":"LlamaSchedulerScreenKt.LlamaScheduledTaskEditorDialog (cyclomatic 32): LlamaSchedulerScreenKt.LlamaScheduledTaskEditorDialog has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"1949a4091f3d6b5f40e31f6847a6c7007a623f9fc3b437766f12c5b093724aa8"}},{"ruleId":"D1","level":"warning","message":{"text":"LiteRtModelsScreenKt.LiteRtModelsScreen (cyclomatic 32): LiteRtModelsScreenKt.LiteRtModelsScreen has cyclomatic complexity 32 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"800dfc77715b9b6f17aac5a170767f3f420baebfb75eabe0adef63b811dd3927"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelRepository.deleteModelArtifactsInternal (cyclomatic 31): ModelRepository.deleteModelArtifactsInternal has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2694287f429bf33b5a5e454d5d8bff10fba84e74477479221f71e49b7048aa"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentControlPromptSupportKt.evidenceRecordsFromContent (cyclomatic 31): AgentControlPromptSupportKt.evidenceRecordsFromContent has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentControlPromptSupport.kt"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"273423901d27377c37e57d2249232dfc752fde94b21b0b755187a04afc9c0270"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessInlineLinksKt.harnessInlineLinks (cyclomatic 31): HarnessInlineLinksKt.harnessInlineLinks has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessInlineLinks.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad10efff4c48dc969681fc5602c99caa75eaf123baa821a8f09f2430342f4c2"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeHarnessPluginActions.install (cyclomatic 31): NativeHarnessPluginActions.install has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessPluginActions.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b47d52be29b53a10c7d30478c79bee5eda98221fba4942377f6f33c649539c7"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeHarnessTurnActions.copyAssistantTurn (cyclomatic 31): NativeHarnessTurnActions.copyAssistantTurn has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessTurnActions.kt"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"7603febca3043bd8df3d2aad813222b57c3882960ba6883b4cc379705b4d22ef"}},{"ruleId":"D1","level":"warning","message":{"text":"FastsdGalleryScreenKt.FastsdGalleryScreen (cyclomatic 31): FastsdGalleryScreenKt.FastsdGalleryScreen has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/FastsdGalleryScreen.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"30bd6b1bdd66ff4daeb48e9a77b39dae441bbb0b003f2930de28a1e79dde98ca"}},{"ruleId":"D1","level":"warning","message":{"text":"LegacyUpscaleScreenKt.LegacyUpscaleScreen (cyclomatic 31): LegacyUpscaleScreenKt.LegacyUpscaleScreen has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"324000441f3a66e6e4993e145687344b7d97bba8ed2dc75cbaad91ed673cd156"}},{"ruleId":"D1","level":"warning","message":{"text":"DatasetProjectScreenKt.SettingsTab (cyclomatic 31): DatasetProjectScreenKt.SettingsTab has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt"},"region":{"startLine":1873}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0276d77bac3dfe1589e565104da711c92af7609934123732e8573fde90c3b95"}},{"ruleId":"D1","level":"warning","message":{"text":"EasyImagesTabKt.EasyImagesTab (cyclomatic 31): EasyImagesTabKt.EasyImagesTab has cyclomatic complexity 31 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/easy/EasyImagesTab.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"0826d4f1beabdf81f9fc9f4a1f5570ae6fad0188d39d71b114b85ea52a659b14"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolHttpServer.generateWebChatReply (cyclomatic 30): ToolHttpServer.generateWebChatReply has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":3075}}}],"partialFingerprints":{"codehealthFindingId/v1":"0adb08275aa65120c868afc34dc50b0a0afa221067a5efbc4ee5f027478212e9"}},{"ruleId":"D1","level":"warning","message":{"text":"ClassicFarmPlots.apply (cyclomatic 30): ClassicFarmPlots.apply has cyclomatic complexity 30 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/ClassicFarmPlots.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"af748fa9d88f1adfd3d44d6e078329e96ecbc206c35d208bba5005eb0265176d"}},{"ruleId":"D1","level":"warning","message":{"text":"LiteRtModelRepository.packagePreferenceRank (cyclomatic 29): LiteRtModelRepository.packagePreferenceRank has cyclomatic complexity 29 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/repository/LiteRtModelRepository.kt"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff93563df3520229f50e9f3157fb06877b4fcbb7610b2f1d4d70ca4e75c24ec8"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessAppToolsSettingsKt.HarnessAppToolsSettingsDialog (cyclomatic 29): HarnessAppToolsSettingsKt.HarnessAppToolsSettingsDialog has cyclomatic complexity 29 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAppToolsSettings.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"5089d5ab85af1b593ef724c442834630791e6a33b1857a0e249ca374107c6565"}},{"ruleId":"D1","level":"warning","message":{"text":"SdArtifactInspector.detectVideoFamily (cyclomatic 29): SdArtifactInspector.detectVideoFamily has cyclomatic complexity 29 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdArtifactInspector.kt"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19bdd7240ce3740b5539713893a1328e9aa7e18075e5aebc1667306ab7be79a"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeChatToolRuntime.availableTools (cyclomatic 29): NativeChatToolRuntime.availableTools has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c090f76881b2de976d1c7099eb12d4a7a8e1dd4e7b1687e6b9cead5bdede2c"}},{"ruleId":"D1","level":"warning","message":{"text":"SubtitleBurnScreenKt.SubtitleBurnScreen (cyclomatic 29): SubtitleBurnScreenKt.SubtitleBurnScreen has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SubtitleBurnScreen.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b291549dab9900fa4faa510cbfc97ba236fd049ac9b7d946b634eafc09b0b8"}},{"ruleId":"D1","level":"warning","message":{"text":"OllamaManagerScreenKt.OllamaManagerScreen (cyclomatic 29): OllamaManagerScreenKt.OllamaManagerScreen has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ollama/OllamaManagerScreen.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8a9c07905c18fb3f3a69b4d8a4f7b6589505c41339f7fbced905198bd4167f"}},{"ruleId":"D1","level":"warning","message":{"text":"PDFToolboxScreenKt.GuidedPdfOcrTool (cyclomatic 29): PDFToolboxScreenKt.GuidedPdfOcrTool has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":1493}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf783b0dc74003e4ccbcfe7d505c8485c90cb9a7a2319034f4b19e8e5d09d87d"}},{"ruleId":"D1","level":"warning","message":{"text":"MainActivityKt.locationBackgroundAssetPath (cyclomatic 29): MainActivityKt.locationBackgroundAssetPath has cyclomatic complexity 29 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":3201}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde0a66984d6d1fb59da8c26e54e04ac15d5ce74936e684d4014fd538b3a9c16"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentRuntimeSupportKt.sanitizeTerminalTranscript (cyclomatic 28): AgentRuntimeSupportKt.sanitizeTerminalTranscript has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentRuntimeSupport.kt"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"c115dea70a1353260f733610ceba56d3908b8e06f0194a8c701d697a7d15b67f"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentService.runReflectionTool (cyclomatic 28): AgentService.runReflectionTool has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: AgentService.toolExampleJson (cyclomatic 30) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":15323}}}],"partialFingerprints":{"codehealthFindingId/v1":"f390d44b3de4ee9d08ad6ab99f87d894f27967e1cec487a53587e8813fb9c794"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessSettingsNavigationKt.HarnessSettingsNavigator (cyclomatic 28): HarnessSettingsNavigationKt.HarnessSettingsNavigator has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessSettingsNavigation.kt"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"1564ce360b9161a0c2a29267a51234d5e06a129424cbcb95c77286b5a5ce03e2"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelLibraryScreenKt.BundleEditorDialog (cyclomatic 28): ModelLibraryScreenKt.BundleEditorDialog has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: ModelLibraryScreenKt.modelLibraryErrorResource (cyclomatic 43) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryScreen.kt"},"region":{"startLine":1393}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c6a7a0eeec6c477ec3b9a8d9d0cd50a3f4dc9d60197d21d15db42aeacdf71a"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelRepository.updateModel (cyclomatic 27): ModelRepository.updateModel has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt"},"region":{"startLine":1398}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f543f230f2244426abfe544f6cb50cb08c727d2c913e48eaabe67601dd637b"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessRuntimeController.runStart (cyclomatic 27): HarnessRuntimeController.runStart has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e96e0d03d3a0a4a730d42d3a58c230fc1bd8ac635941659f41d81d882e08f03"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessRuntimeProcessKt.classifyHarnessProcessOutput (cyclomatic 27): HarnessRuntimeProcessKt.classifyHarnessProcessOutput has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeProcess.kt"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c967a643e4b77aac7885dc465913ff51174cd57627b0e637f60515e3b00a632"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessTransferCodec.stage (cyclomatic 27): HarnessTransferCodec.stage has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"115240b4d145b7d1cd38e4f2778fc0c76fe0c96015f8002fe9b006e1290032a3"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentControlPromptSupportKt.preserveToolControlContent (cyclomatic 27): AgentControlPromptSupportKt.preserveToolControlContent has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentControlPromptSupport.kt"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5ddde21a45002002e30a7263018a60c9fa79b9234482446701de56c626cf34"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoSumupService.summarizeVideo (cyclomatic 27): VideoSumupService.summarizeVideo has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoSumupService.kt"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d5c1d545e43b612be01d6e67521220ec2a16c8279ac2696ebfab48fd1338ee"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessProjectActionDialogKt.HarnessProjectBatchRemovalDialog (cyclomatic 27): HarnessProjectActionDialogKt.HarnessProjectBatchRemovalDialog has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessProjectActionDialog.kt"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d473d54c6dbf947f8b8202ba7a2d6e4c49c4f9abec162f69d882547eaecbbb"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveTranslatorScreenKt.LiveTranslatorScreen (cyclomatic 27): LiveTranslatorScreenKt.LiveTranslatorScreen has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/LiveTranslatorScreen.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"7657cdb58dccc89a83e7ee29ad39c7346a5fcf9ceec09b9e45b4d8dfc0ef35d3"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatScreenSupportKt.mimeTypeToExtension (cyclomatic 27): ChatScreenSupportKt.mimeTypeToExtension has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatScreenSupport.kt"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd91929e202fe037065a42fe8b5f1bc6e79f983a0811c6e554bb1107550f4ceb"}},{"ruleId":"D1","level":"warning","message":{"text":"CuratedModelBundlePickerKt.CuratedModelBundlePicker (cyclomatic 27): CuratedModelBundlePickerKt.CuratedModelBundlePicker has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundlePicker.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"62211f48f6f1563818532a0988556f0edf5f9729407d6ff87b5f9be1dd33cb4e"}},{"ruleId":"D1","level":"warning","message":{"text":"ZimManagerScreenKt.InstalledZimsTab (cyclomatic 27): ZimManagerScreenKt.InstalledZimsTab has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/kiwix/ZimManagerScreen.kt"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a18c8f96403919aa3d3978426609433162b85bd6cd27bf0cad618c6b95d2ce"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeBaseScreenKt.KnowledgeBaseScreen (cyclomatic 27): KnowledgeBaseScreenKt.KnowledgeBaseScreen has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae88756d95a53073ea77e4c66e7f251d8dbf45ff42c7e6f0464c8f4d627c458a"}},{"ruleId":"D1","level":"warning","message":{"text":"ExternalRouteResolver.resolve (cyclomatic 27): ExternalRouteResolver.resolve has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/navigation/ExternalRouteResolver.kt"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5b197b97c103416d66c9d8dceca76d758fff25e2c24b1db12c3e11437de96d"}},{"ruleId":"D1","level":"warning","message":{"text":"WalkthroughUiKt.WalkthroughCoach (cyclomatic 27): WalkthroughUiKt.WalkthroughCoach has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/walkthrough/WalkthroughUi.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"d66ed2ca165ffe7531e5a0d67bdbc1da5fc25d1bc779416d4748e4b3679ae8f8"}},{"ruleId":"D1","level":"warning","message":{"text":"app.wireChatControls (cyclomatic 27): app.wireChatControls has cyclomatic complexity 27 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 7 belong to 5 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/ai_servers_webui/app.js"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc435a1b940cda27ceeecd103857594131bbd74830f024452fd10da8c9d889fa"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelArtifactRecognizer.inspect (cyclomatic 26): ModelArtifactRecognizer.inspect has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: ModelArtifactRecognizer.artifactRoleForManualSelection (cyclomatic 34) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactRecognizer.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"868660228f2b8c3b6fcf9574806b5f9ecfc90494dc2d62c02ea6a099f9767ca0"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessPresetFilesDialogKt.HarnessPresetFilesDialog (cyclomatic 26): HarnessPresetFilesDialogKt.HarnessPresetFilesDialog has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessPresetFilesDialog.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"d231340f6bc0ef6c903eb373ab9b68d09fd570c6d52f7d1b4eedb4659817e735"}},{"ruleId":"D1","level":"warning","message":{"text":"SdModelSupportKt.resolveSdFamilySpec (cyclomatic 26): SdModelSupportKt.resolveSdFamilySpec has cyclomatic complexity 26 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdModelSupport.kt"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab893db21ca65dc1cfe814d7fa1cf45c61baaa24a11ebda96bdf5bb54a3130cc"}},{"ruleId":"D1","level":"warning","message":{"text":"SdPipelineResolver.resolve (cyclomatic 26): SdPipelineResolver.resolve has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdPipelineResolver.kt"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce031081c5980a986793b7f17c9d48e5bf58dfa3c49ff15792822d4eb2f34bbd"}},{"ruleId":"D1","level":"warning","message":{"text":"ManagedLlamaServerCoordinator.prepare (cyclomatic 26): ManagedLlamaServerCoordinator.prepare has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ManagedLlamaServerCoordinator.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5bc5f8a5aa58273d0fab78193b25ea873b9e5e75f8e6fa83475b0e66b06e6ff"}},{"ruleId":"D1","level":"warning","message":{"text":"MangaTranslationSupport.preflight (cyclomatic 26): MangaTranslationSupport.preflight has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"2269fed20090c98b8cd9f5a1d7fd2ac774e8b4d6dfbb8d20d153f3371c31915e"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeChatToolConfig.effectiveWithServerDefaults (cyclomatic 26): NativeChatToolConfig.effectiveWithServerDefaults has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"9afd4fe93916a80d72686cb884a58417840d687bf5857eafb422cc345f6b319e"}},{"ruleId":"D1","level":"warning","message":{"text":"TamaDailyDreamManager.queueDreamIfEligible (cyclomatic 26): TamaDailyDreamManager.queueDreamIfEligible has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaDailyDreamManager.kt"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b5d9bc3a5437ce858c0054373a328e0ba5321ef14e2801bdcc754e14f80298b"}},{"ruleId":"D1","level":"warning","message":{"text":"AdventureGateScreenKt.SkillLoadoutTreeRow (cyclomatic 26): AdventureGateScreenKt.SkillLoadoutTreeRow has cyclomatic complexity 26 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This is NOT this file\u0027s highest cyclomatic complexity: AdventureGateScreenKt.formatLogEntry (cyclomatic 49) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":2407}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fdfd88d648ab4f6178134143c951013bfc4bf57fba56e3d54be00c5e45ac615"}},{"ruleId":"D1","level":"warning","message":{"text":"AdventureGateScreenKt.gearInfoText (cyclomatic 26): AdventureGateScreenKt.gearInfoText has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: AdventureGateScreenKt.formatLogEntry (cyclomatic 49) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":4551}}}],"partialFingerprints":{"codehealthFindingId/v1":"7efcc578945f06794a4bc052e06d107e9daee6225d32c7558a4a6769e41b7405"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessModelEditorKt.HarnessEditableModelRow (cyclomatic 26): HarnessModelEditorKt.HarnessEditableModelRow has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessModelEditor.kt"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"baab4b32a05911090bedb3335f84f78e71889a75d6b447b900668d282bf9a5db"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessScreenKt.HarnessTranscriptCard (cyclomatic 26): HarnessScreenKt.HarnessTranscriptCard has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2a28f849f8db378289dd56fc85d41c1d397eac0b2184dd13d3018aa6d8696c"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeHarnessStructuredTranscriptKt.reprojectNativeHarnessLiveSkillBatch (cyclomatic 26): NativeHarnessStructuredTranscriptKt.reprojectNativeHarnessLiveSkillBatch has cyclomatic complexity 26 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessStructuredTranscript.kt"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09f134638a5820ad630d4c1d502b3a2d4cd79c2a669873dff47b3f3147c0793"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeHarnessTurnDetailsKt.mergeNativeHarnessTurnDetails (cyclomatic 26): NativeHarnessTurnDetailsKt.mergeNativeHarnessTurnDetails has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessTurnDetails.kt"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"23bb854056cfaf180bd9967a51c53bed3f7391519b186202158a2bd8d8d9dafb"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageGenModeSupportKt.resolveImageGenReadiness (cyclomatic 26): ImageGenModeSupportKt.resolveImageGenReadiness has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenModeSupport.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a5dfd3c4a8edcaab85ae95f08e546757432910e97e42db0b555175209d67508"}},{"ruleId":"D1","level":"warning","message":{"text":"PrepareCachesSheetKt.PrepareCachesSheet (cyclomatic 26): PrepareCachesSheetKt.PrepareCachesSheet has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/PrepareCachesSheet.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d536522a91ea0efff57b677896804ca1ce4b3727e15e617b104f232eec0129"}},{"ruleId":"D1","level":"warning","message":{"text":"FullHfRepositoryBrowserKt.FullHfRepositoryBrowser (cyclomatic 26): FullHfRepositoryBrowserKt.FullHfRepositoryBrowser has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/FullHfRepositoryBrowser.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c691a824119c1af2db93bcb56060b2e3972da122e9982a54e676693a8b90a892"}},{"ruleId":"D1","level":"warning","message":{"text":"OnnxModelsScreenKt.OnnxModelsScreen (cyclomatic 26): OnnxModelsScreenKt.OnnxModelsScreen has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ab02d8de258f3c630dc080dfd37483746bf0af489823aa978e8b2ce2240672"}},{"ruleId":"D1","level":"warning","message":{"text":"BenchmarkScreenKt.BenchmarkScreen (cyclomatic 26): BenchmarkScreenKt.BenchmarkScreen has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkScreen.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"7db3666f73307a72efe8f831c0140a8e0abad525077938ebdd67b4f7ed653f0a"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessInstallationTransfer.export (cyclomatic 25): HarnessInstallationTransfer.export has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessInstallationTransfer.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec934e2ce32370ef05d7d755ba47e06f7a0d10b0a59f604b6ab25e7f9dd8b11"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessRuntimePresentationKt.runtimePresentation (cyclomatic 25): HarnessRuntimePresentationKt.runtimePresentation has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This is NOT this file\u0027s highest cyclomatic complexity: HarnessRuntimePresentationKt.runtimeFailureText (cyclomatic 39) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessRuntimePresentation.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d917bdd2fb2850a6988bafdc88525c7009c5b85db4c87d2dfd91be5fe13af49d"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessTransferCodec.scanTree (cyclomatic 25): HarnessTransferCodec.scanTree has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e2e3581ad37ed69f05c1511cab5f42862d6d4685f79f422bfb72f07b50430f"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentService.approvePendingPlan (cyclomatic 25): AgentService.approvePendingPlan has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: AgentService.toolExampleJson (cyclomatic 30) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":7093}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d8262e3ffca33db0c5498e62fe35ad120f412ef6d428ac5604fc48b6c6e4624"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolHttpServer.requestNativeCancellation (cyclomatic 25): ToolHttpServer.requestNativeCancellation has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73da605f1010b1cbd12033c68b5fa94561ede76d08b3afae02612aa9b950307"}},{"ruleId":"D1","level":"warning","message":{"text":"SSHService.uploadToRemotePath (cyclomatic 25): SSHService.uploadToRemotePath has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SSHService.kt"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f6746455caf7cc01404be3be14f4c22090cc3fd7f05be56921e9f8e6661a0e"}},{"ruleId":"D1","level":"warning","message":{"text":"SubtitleBurnService.burnSubtitles (cyclomatic 25): SubtitleBurnService.burnSubtitles has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SubtitleBurnService.kt"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e8ec9c6e524dccb13832b5c64f0b8d37ce8ec425a35fb5d52f4c326d775db1"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessTaskDigest.foldEvent (cyclomatic 25): HarnessTaskDigest.foldEvent has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/HarnessTaskDigest.kt"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d86c86df39865b259b2d255fa4ebc33c842c1a1c64fe6de302679cb5e2169d3"}},{"ruleId":"D1","level":"warning","message":{"text":"GgufModelShapeReader.read (cyclomatic 25): GgufModelShapeReader.read has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ram/GgufModelShapeReader.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"7615b671f3b9fe39ee7835eb4d9d05d96c35759811f4c6d85bbc8f1e5b7f1004"}},{"ruleId":"D1","level":"warning","message":{"text":"TamaCanonicalActions.complete (cyclomatic 25): TamaCanonicalActions.complete has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaCanonicalActions.kt"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8685979058a9f7c945b37f989102865b5e3d60a6c9ff7bea34a90c3e31b0f7"}},{"ruleId":"D1","level":"warning","message":{"text":"AdventureGateCombatEngine.applyEnemyAction (cyclomatic 25): AdventureGateCombatEngine.applyEnemyAction has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateCombatEngine.kt"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec28e0b9b53bfb00838ef9b868a74066438757f7f449be01e8d3f6939205520d"}},{"ruleId":"D1","level":"warning","message":{"text":"TamaScreenKt.TamaParkEncounterDialog (cyclomatic 25): TamaScreenKt.TamaParkEncounterDialog has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"63af49c587de3053b3a545e72cadc0bae7885607a70a8de4a9d63f1fab1c1751"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessRootfsFileBrowserKt.HarnessRootfsFileBrowser (cyclomatic 25): HarnessRootfsFileBrowserKt.HarnessRootfsFileBrowser has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRootfsFileBrowser.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d11d6af7e7fb6e6cbcac6001a497d83fe8af7d4699f2f99ff26ea10ef3198f7"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessScreenKt.HarnessProviderCard (cyclomatic 25): HarnessScreenKt.HarnessProviderCard has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt"},"region":{"startLine":1419}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b488f1530bc8ee4d02e47db028fc5354059322287435c5a7eacfae653264912"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSettingsSectionsKt.ImageToolsSection (cyclomatic 25): ChatSettingsSectionsKt.ImageToolsSection has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsSections.kt"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b71e87f1b24d681480ba68a703863855b4dfd65c6eb7602a14b513dad7caf2"}},{"ruleId":"D1","level":"warning","message":{"text":"ZimManagerScreenKt.ZimShareTab (cyclomatic 25): ZimManagerScreenKt.ZimShareTab has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/kiwix/ZimManagerScreen.kt"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"6205b9e4ec5c74585aa5c43c4d392b262eb6c3609c6c716a191466a0b7c47700"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeBaseScreenKt.KnowledgeEmbeddingServerCard (cyclomatic 25): KnowledgeBaseScreenKt.KnowledgeEmbeddingServerCard has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d59e8ab45c09511bb8d52c17361c8b1ecdabbe5b12d822d17a407d79bfefa24"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessTransferPublication.prepareAndPublish (cyclomatic 24): HarnessTransferPublication.prepareAndPublish has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessTransferPublication.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1719c094ae05b55db3d46ae1890f5615baff3ad7dbcc8963d992e1419f65d34"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionService.runGenerationWithBinary (cyclomatic 24): StableDiffusionService.runGenerationWithBinary has cyclomatic complexity 24 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"c873f14753907967bd1cd064590ede3a9be0f5cdf5ede72bcf275acd174493f4"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoGenerationService.runGeneration (cyclomatic 24): VideoGenerationService.runGeneration has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"6151d043b78ec98635b81d4656538aecf69fb74cfc08c272d7e2ad9decb64539"}},{"ruleId":"D1","level":"warning","message":{"text":"TamaGameEngine.restoreTransferBundle (cyclomatic 24): TamaGameEngine.restoreTransferBundle has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":3523}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41bf8d5289f99b4322da03566405baab81eac4bb3ec66762b1bcc89c68115bd"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeHarnessSettingsReader.readModelCatalog (cyclomatic 24): NativeHarnessSettingsReader.readModelCatalog has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessSettingsReader.kt"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"42016ebbd5d5f8857726bb6c7e31fa988d041697d26d8b500f27a3e55f77a594"}},{"ruleId":"D1","level":"warning","message":{"text":"SdIpAdapterControlsKt.SdIpAdapterCard (cyclomatic 24): SdIpAdapterControlsKt.SdIpAdapterCard has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SdIpAdapterControls.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"89edc57ba840ebc27287ff4cfeae93df23575480711533fe33948111a9b83af3"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowsScreenKt.SubtitleTranslationWorkflowContent (cyclomatic 24): WorkflowsScreenKt.SubtitleTranslationWorkflowContent has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":4017}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d1be5d24cc75cf7b3ef7338f9d191c5d05e39ca88cbb2137501957a3e9d4c2"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkerModeScreenKt.WorkerModeScreen (cyclomatic 24): WorkerModeScreenKt.WorkerModeScreen has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/WorkerModeScreen.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"df73586b540aecd31af23564bf1073ae5924dc73ea89435668317862f29d9876"}},{"ruleId":"D1","level":"warning","message":{"text":"LogsScreenKt.LogsScreen (cyclomatic 24): LogsScreenKt.LogsScreen has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/logs/LogsScreen.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"5650e6e8069ffb2bb3ab05d6f158b5d0c8d80da87d52a285ac7dbc4c6e14b9e5"}},{"ruleId":"D1","level":"warning","message":{"text":"upload.run (cyclomatic 24): upload.run has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/file_station_webui/js/upload.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf1e2632bfcd45d530d8a8ab339bd07396d3cb2d47d9a30892bf3dd82235885"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelArtifactRecognizer.validateLlm (cyclomatic 23): ModelArtifactRecognizer.validateLlm has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: ModelArtifactRecognizer.artifactRoleForManualSelection (cyclomatic 34) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactRecognizer.kt"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"da294b3bb6950e33a408f72718cf330dd70ef347b3865fb03494e64fbe26e720"}},{"ruleId":"D1","level":"warning","message":{"text":"LiteRtLmWorkerClient.streamBackendChat (cyclomatic 23): LiteRtLmWorkerClient.streamBackendChat has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtLmWorkerService.kt"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a46a84f73c57836506670d8c3411678039c03444990fc3f3616d0e1dd5a771b"}},{"ruleId":"D1","level":"warning","message":{"text":"QuadtrixTrainingService.handleProgressClient (cyclomatic 23): QuadtrixTrainingService.handleProgressClient has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/QuadtrixTrainingService.kt"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4c4ed19e5e3ad7bf02ba73ece3d1787a8e48fe32e08aa77ddc66032334acbf"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoGenerationService.convertNativeOutput (cyclomatic 23): VideoGenerationService.convertNativeOutput has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"80aa2c84d7d09a7f90d73be5353ab382e0bacc7b52cffb448ff1055fc1e3a65a"}},{"ruleId":"D1","level":"warning","message":{"text":"TamaAgentService.generateAssistantReply (cyclomatic 23): TamaAgentService.generateAssistantReply has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad3b771122360eba22ff778ca5cad348be1e001f63baca2a91ac31e85897388"}},{"ruleId":"D1","level":"warning","message":{"text":"TamaGameEngine.updateForTimePassedLocked (cyclomatic 23): TamaGameEngine.updateForTimePassedLocked has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0a5435271fa759c7ab685b2e1ec0dae1d193d1e84477820f8746b0729dfdec"}},{"ruleId":"D1","level":"warning","message":{"text":"TamaMapViewKt.LocationDetailsDialog (cyclomatic 23): TamaMapViewKt.LocationDetailsDialog has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaMapView.kt"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"7733bc71b8f1f66ed2c9b27d63d04af422b70ad841213ce8593bb89fd684a86f"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeHarnessCommandHistoryKt.mergeNativeHarnessCommandRuns (cyclomatic 23): NativeHarnessCommandHistoryKt.mergeNativeHarnessCommandRuns has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessCommandHistory.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"dab641131bf1e0bcdac316e6d92d9a9124c16680894017a1771b9acf69588fc5"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeHarnessController.applyFollowFrame (cyclomatic 23): NativeHarnessController.applyFollowFrame has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt"},"region":{"startLine":2053}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b995af97473864a1c9a5b47ff3e8bb6a52f82ca2406c037b99e075aa3fcf733"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeHarnessPluginActions.cancel (cyclomatic 23): NativeHarnessPluginActions.cancel has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessPluginActions.kt"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f53784048fb37f7ea087598777f143349f18d0644bd6201784c3b122e89d7e0"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeHarnessSettingsReader.readSettings (cyclomatic 23): NativeHarnessSettingsReader.readSettings has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessSettingsReader.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8f20d85285eb6bb810c1541b5b42978baec33bfd7c53a31278ae1fa3d1b823"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowsScreenKt.WorkflowOutputGalleryCard (cyclomatic 23): WorkflowsScreenKt.WorkflowOutputGalleryCard has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":3186}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b7901802bc1c996bdba444146f848e4f16fdd43af7c6ff4b15dd832d9337db0"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowsScreenKt.MediaDubbingTranslationWorkflowContent (cyclomatic 23): WorkflowsScreenKt.MediaDubbingTranslationWorkflowContent has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":4734}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54d970c52e0d58e59519c5d912a911bee01c02bd515b10411e273f459b23e8e"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownTextKt.buildInlineAnnotated (cyclomatic 23): MarkdownTextKt.buildInlineAnnotated has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/MarkdownText.kt"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"18827f9082b778dc04715a23a2f74818c3b2565ea53449de686c5ec6ce6c2ed0"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoRuntimeOptionsEditorKt.VideoRuntimeOptionsEditor (cyclomatic 23): VideoRuntimeOptionsEditorKt.VideoRuntimeOptionsEditor has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/VideoRuntimeOptionsEditor.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cacc3332d991b0942cadff67d1843cfacb83ddbc4b458a997a49d2708d9d25c"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoUiAvailabilityKt.clearUnavailableAdvancedSelections (cyclomatic 23): VideoUiAvailabilityKt.clearUnavailableAdvancedSelections has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/VideoUiAvailability.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4083b3ee4f3a23a66f916f76c7af2f7aa6bd84d7b4f9b2690fc6f9127fd55b2"}},{"ruleId":"D1","level":"warning","message":{"text":"EasyChatTabKt.EasyChatTab (cyclomatic 23): EasyChatTabKt.EasyChatTab has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/easy/EasyChatTab.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3c744eb9ba13c56035f0dacedb18182c62c3d216304401151015f9399f9c53"}},{"ruleId":"D1","level":"warning","message":{"text":"EasyModelImporterKt.EasyModelImportSection (cyclomatic 23): EasyModelImporterKt.EasyModelImportSection has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/easy/EasyModelImporter.kt"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"77579f50997875ecc08851cc81e75647e13e0da986d4f38b1de628df5ebe99d7"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelManagerScreenKt.DiscoverTab (cyclomatic 23): ModelManagerScreenKt.DiscoverTab has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt"},"region":{"startLine":1296}}}],"partialFingerprints":{"codehealthFindingId/v1":"88dd6f9906641567b1a3eacd7f137a2468dd2240e0f374b21fb972ea041b629c"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelSourceAttachmentKt.ModelSourceAttachmentDialog (cyclomatic 23): ModelSourceAttachmentKt.ModelSourceAttachmentDialog has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: ModelSourceAttachmentKt.installedAssetForModel (cyclomatic 41) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelSourceAttachment.kt"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"a66aa9740b041ff8db5bf7d07f7fd79ed609bdfe8ddedb4666d9689d038a4eb0"}},{"ruleId":"D1","level":"warning","message":{"text":"TamaPetWidgetKt.resolveLocationType (cyclomatic 23): TamaPetWidgetKt.resolveLocationType has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/widget/TamaPetWidget.kt"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3496dd7b6aa4649b893cc7e22f452c6e103f0350a9d254e4701646cbe3432a"}},{"ruleId":"D1","level":"warning","message":{"text":"app.renderField (cyclomatic 23): app.renderField has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/ai_servers_webui/app.js"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"5272aa2d01d78a8073632f5fb6c63198fd33455630cd8d0cacdbbbff61249b5f"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelArtifactRecognizer.isLikelyWhisperFile (cyclomatic 22): ModelArtifactRecognizer.isLikelyWhisperFile has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: ModelArtifactRecognizer.artifactRoleForManualSelection (cyclomatic 34) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactRecognizer.kt"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f9570d6a38cb3cccf7daf38693f9975d0f0bfb5748b5a659c45e2491d9ef4f"}},{"ruleId":"D1","level":"warning","message":{"text":"SdArtifactInspector.inspectSafeTensors (cyclomatic 22): SdArtifactInspector.inspectSafeTensors has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdArtifactInspector.kt"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aae28afd24a32ae768246fdcc990142c90e1670c545e4a9fcfc523bd8bf0f01"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentDurableContractStore.normalizeAgentReportOutcome (cyclomatic 22): AgentDurableContractStore.normalizeAgentReportOutcome has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentDurableContractStore.kt"},"region":{"startLine":1963}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34f9613f4da28f977592d2d8a28bed90f8b9133ecd18a89f95c1a6afe20f23b"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolHttpServer.legacyActionFrom (cyclomatic 22): ToolHttpServer.legacyActionFrom has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":1601}}}],"partialFingerprints":{"codehealthFindingId/v1":"6515b99bf2ce32c2fc1964ca669bb16faa71e4a8cacc4f0b6d4f320813d751f0"}},{"ruleId":"D1","level":"warning","message":{"text":"BenchmarkService.runBenchmark (cyclomatic 22): BenchmarkService.runBenchmark has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/BenchmarkService.kt"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ec8352ff6acd657692016b8521569dc9d8b013e03efe20ed5daaefa0a98d49"}},{"ruleId":"D1","level":"warning","message":{"text":"PDFService.readJpegDimensions (cyclomatic 22): PDFService.readJpegDimensions has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":6848}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c50314515ce9353a8666157a9bc1e7c77c3b05281c10b15f9f8cc8a0f22ae20"}},{"ruleId":"D1","level":"warning","message":{"text":"DelegateSubagentLoop.mainLoop (cyclomatic 22): DelegateSubagentLoop.mainLoop has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegateSubagentLoop.kt"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"12481a7b278720f6189637e87ee0bab88ed61f6e75ec551ccaed6fa7cf1ed0a5"}},{"ruleId":"D1","level":"warning","message":{"text":"DelegationStatusFormatter.statusText (cyclomatic 22): DelegationStatusFormatter.statusText has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegationStatusFormatter.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2159c5585255d49f1d0909985d3c5bb60ee401d6e433426400d160ff7e6610"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentCoordinationSupportKt.shouldSurfaceColdRecovery (cyclomatic 22): AgentCoordinationSupportKt.shouldSurfaceColdRecovery has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentCoordinationSupport.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5d9010a7832e42daf5178627bfb7ebe5af5f4b5a09cce352841834400c1b56"}},{"ruleId":"D1","level":"warning","message":{"text":"SoftStudioAppScaffoldKt.SoftStudioAppScaffold (cyclomatic 22): SoftStudioAppScaffoldKt.SoftStudioAppScaffold has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/navigation/SoftStudioAppScaffold.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab8bb578c31a1574d9b0547167587223181e8d35db3f27b42848fd55973753b"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemMonitor.readCpu (cyclomatic 22): SystemMonitor.readCpu has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/SystemMonitor.kt"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08a5a722cb0b4a5d0ab600d627eb44ea2a13c45ec9e972f75b2566e7f923c87"}},{"ruleId":"D1","level":"warning","message":{"text":"WearCompanionBridgeManager.routeCommand (cyclomatic 22): WearCompanionBridgeManager.routeCommand has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/wear/WearCompanionBridgeManager.kt"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"2739f1f7c02b430b69d5f6dfbef4c960069e4613a9b1d145a5cf30aedec3dfed"}},{"ruleId":"D1","level":"warning","message":{"text":"StableAudio3Request.validate (cyclomatic 21): StableAudio3Request.validate has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/music/StableAudio3Models.kt"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"726944b00d557be5a06ba9d12a98131e59a9d73fc7ca3db5d2d7182974d26c41"}},{"ruleId":"D1","level":"warning","message":{"text":"StableAudio3WorkerClient.run (cyclomatic 21): StableAudio3WorkerClient.run has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/music/StableAudio3WorkerClient.kt"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aea2a06515bd4e285ccd1ef9d9c6a7bcf2de068d838b967bb7ad479f740520c"}},{"ruleId":"D1","level":"warning","message":{"text":"LlamaServerLaunchProfile.migrateJson (cyclomatic 21): LlamaServerLaunchProfile.migrateJson has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerLaunchProfile.kt"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cfbe8f93218f752c065a05224928779e8ec396e1b1b8a40bc2213124f9ef619"}},{"ruleId":"D1","level":"warning","message":{"text":"MangaPaintedOcrSupport.analyzeMask (cyclomatic 21): MangaPaintedOcrSupport.analyzeMask has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MangaPaintedOcrSupport.kt"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e47ead72ebaa3e1240935e0c5cce868b7961ab5606507f738ce313bc1c96f77"}},{"ruleId":"D1","level":"warning","message":{"text":"TamaAgentService.summarize (cyclomatic 21): TamaAgentService.summarize has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e6380c7c4533daf61b281fbfd3e9c6edc3e2045171e9259b7c0ca41c92a356b"}},{"ruleId":"D1","level":"warning","message":{"text":"AdventureGateCombatEngine.applyPetDamage (cyclomatic 21): AdventureGateCombatEngine.applyPetDamage has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: AdventureGateCombatEngine.eventsFromLogs (cyclomatic 22) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateCombatEngine.kt"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"18975ab0fd5fe833c77dca65180abe9cd1beacc6ba0ef9535b52e99ae604c112"}},{"ruleId":"D1","level":"warning","message":{"text":"FarmLivestockScreenKt.FarmLivestockScreen (cyclomatic 21): FarmLivestockScreenKt.FarmLivestockScreen has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/FarmLivestockScreen.kt"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2fbf4270a4a2a78e57810c685a6c86d1c2ea41a683b24c861d330d7123714fe"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentDialogsKt.AgentConfigCard (cyclomatic 21): AgentDialogsKt.AgentConfigCard has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":4131}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b6d2a666aa341fe3ef61d647c8a507194e5b7c08cc573504368b38fcef6044"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoGenScreenKt.VideoDetailDialog (cyclomatic 21): VideoGenScreenKt.VideoDetailDialog has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt"},"region":{"startLine":2147}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0812fcf3d8110581eccd58adfce2d9f182859f96ca5c69dcc2a7f37ad7bf977"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatTopBarKt.ChatTopBar (cyclomatic 21): ChatTopBarKt.ChatTopBar has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatTopBar.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"57275ac5cf157d0e8e5862c093198ed8e921dd70ebd18fae260db527806cf231"}},{"ruleId":"D1","level":"warning","message":{"text":"DelegationSubagentTabKt.RowCard (cyclomatic 21): DelegationSubagentTabKt.RowCard has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/delegation/DelegationSubagentTab.kt"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"2632bc24ee2e0fc11194f7ab5b90fc370845f0123d3124c8fb35288d374cb22d"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeChatDelegationScreenKt.DelegationHeader (cyclomatic 21): NativeChatDelegationScreenKt.DelegationHeader has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/delegation/NativeChatDelegationScreen.kt"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"612a61bc3fc983ed0c27e18e7e06577d331eeb67be554854de9988e0742a264b"}},{"ruleId":"D1","level":"warning","message":{"text":"CuratedModelBundleSectionKt.CuratedModelBundleCard (cyclomatic 21): CuratedModelBundleSectionKt.CuratedModelBundleCard has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"6651cd0f34c113db195c93b067486c3568ade30c1b83b74fc8c61ca5d9bdac83"}},{"ruleId":"D1","level":"warning","message":{"text":"DownloadTaskSectionKt.DownloadTaskCard (cyclomatic 21): DownloadTaskSectionKt.DownloadTaskCard has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/DownloadTaskSection.kt"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b49cf3ac7fc661aec9de7a2490e0c35fae814f2ebd05d2722438c0935112965"}},{"ruleId":"D1","level":"warning","message":{"text":"WalkthroughStateKt.tourTarget (cyclomatic 21): WalkthroughStateKt.tourTarget has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/walkthrough/WalkthroughState.kt"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b4579fd735b27a9f0f24c2e984977b1e2a1675e2b380dacc86ecad13b83ff6"}},{"ruleId":"D1","level":"warning","message":{"text":"preview.openPreview (cyclomatic 21): preview.openPreview has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 4 of the 21 points are its own statements and the rest belongs to 5 function items inside it that branch (show, a function literal at line 115, a function literal at line 76, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/file_station_webui/js/preview.js"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b999aeed5d800c6c3a0f39fd1c6a90c9951d01c34d797a9a0683ab0b7c75fb1"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessRuntimeController.reconcileStaleLocked (cyclomatic 20): HarnessRuntimeController.reconcileStaleLocked has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb28067bf8ae405ae88edc795974aa7d54676012d3522cdd51a9cb87d04a614"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentProjectControlPlane.buildControlPacket (cyclomatic 20): AgentProjectControlPlane.buildControlPacket has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":2349}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3016f1d98baa538925582978ff8c22b5a0b92707ad7ba8a6cc47ae25a400e3e"}},{"ruleId":"D1","level":"warning","message":{"text":"LiteRtLmReflectionBridge.generateStreaming (cyclomatic 20): LiteRtLmReflectionBridge.generateStreaming has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt"},"region":{"startLine":1551}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebfcf8f7a033ea3dc2f98ba350f351714ef76fa13df6baabc65bbccabaea918"}},{"ruleId":"D1","level":"warning","message":{"text":"LlamaScheduledTaskRunner.runTask (cyclomatic 20): LlamaScheduledTaskRunner.runTask has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskRunner.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"3246a6d5053995b50f4fa38bcdd193e80616c8713a6ea763ab9ec45977ca7d76"}},{"ruleId":"D1","level":"warning","message":{"text":"ProcessControllerKt.resolveManagedLlamaCustomFlags (cyclomatic 20): ProcessControllerKt.resolveManagedLlamaCustomFlags has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ProcessController.kt"},"region":{"startLine":1503}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4595e1b17d5d6fc133903829de5ebf1978235d12ad7baed2eb6a3a1124e0fec"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoUpscalerService.upscaleFrames (cyclomatic 20): VideoUpscalerService.upscaleFrames has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoUpscalerService.kt"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff67beb5a7813bb966f2859d53a2350a4e0c1af3ba181ad60464987501a0f09"}},{"ruleId":"D1","level":"warning","message":{"text":"TamaGameEngine.buyItemLocked (cyclomatic 20): TamaGameEngine.buyItemLocked has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":2694}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77206e6aeecb02273bdcf110962f6dc9698983aeead7e5168fc436dc0131654"}},{"ruleId":"D1","level":"warning","message":{"text":"TamaChatServerSettingsKt.TamaChatSettingsDialog (cyclomatic 20): TamaChatServerSettingsKt.TamaChatSettingsDialog has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatServerSettings.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f95a14dcb44bd1e159d2eba6b2b460f40461278144b823f62f3dbad7e895a2c"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentControlsKt.ConnectionStatusBar (cyclomatic 20): AgentControlsKt.ConnectionStatusBar has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77cbe918ab8497f564ce913e5ea2571a3f2be03a45b1d34268c246769ca7754"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessRuntimeInstallationsKt.RuntimeInstallationCard (cyclomatic 20): HarnessRuntimeInstallationsKt.RuntimeInstallationCard has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeInstallations.kt"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aa71bb1e42c629f06c4b89da4224b8ab3c33d19a62e0307aa3f7ea339ce0a35"}},{"ruleId":"D1","level":"warning","message":{"text":"SDModelsScreenKt.SDModelsScreen (cyclomatic 20): SDModelsScreenKt.SDModelsScreen has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: SDModelsScreenKt.selectionTypeForModel (cyclomatic 24) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced5c44fbe669f56869bd2e04554b0a242b47c3335ea09a5f2d511dcfad68e61"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatComposerKt.ChatComposer (cyclomatic 20): ChatComposerKt.ChatComposer has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatComposer.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbe1deeb03521960fee0ae9ef05a22a8d7098f54fe4750ba65c7d6f2c935383"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatMessageListKt.ChatMessageList (cyclomatic 20): ChatMessageListKt.ChatMessageList has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageList.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a9fc70ef1260038f27e7bcd552ecbbed17d414065e0a065973eda37f81a9d5e"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioWorkspaceModelsKt.validationErrors (cyclomatic 20): AudioWorkspaceModelsKt.validationErrors has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/AudioWorkspaceModels.kt"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48ee7e6e7af25967631ba0da8839f30c3aa070b318a6c3c076c87b9173c3d0f"}},{"ruleId":"D1","level":"warning","message":{"text":"AssetDownloadDialogKt.AssetDownloadDialog (cyclomatic 20): AssetDownloadDialogKt.AssetDownloadDialog has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/AssetDownloadDialog.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b842aa460c501e8bc487c8de64c19c06a434ef6245466d10e67df7972abe33f"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelLibraryScreenKt.ModelLibraryScreen (cyclomatic 20): ModelLibraryScreenKt.ModelLibraryScreen has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: ModelLibraryScreenKt.modelLibraryErrorResource (cyclomatic 43) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryScreen.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0dc06dae951054a3f45f6f8f8f0006ada5fd189ad47f7ecb6f9bf87f979b25"}},{"ruleId":"D1","level":"warning","message":{"text":"GeneralSettingsScreenKt.NativeBinaryCatalogSheet (cyclomatic 20): GeneralSettingsScreenKt.NativeBinaryCatalogSheet has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"241244d035a3393ab4492c8f38119dc7e40ff61d5ffa3a47d486be250aa09e1b"}},{"ruleId":"D1","level":"warning","message":{"text":"DynamicFeatureManager.installOptionalAccelerators (cyclomatic 20): DynamicFeatureManager.installOptionalAccelerators has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/DynamicFeatureManager.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"50aba50dd23e2ba586039d61ee00e5421734fd8027fd614065a18722c8329b2e"}},{"ruleId":"D1","level":"warning","message":{"text":"DynamicFeatureManager.installModule (cyclomatic 20): DynamicFeatureManager.installModule has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/DynamicFeatureManager.kt"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"656b8ac64977ecf03699e12b7e553cf148a7ceecd567338f7623ee42621f4f69"}},{"ruleId":"D1","level":"warning","message":{"text":"GGUFParser.readModelInfo (cyclomatic 20): GGUFParser.readModelInfo has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/GGUFParser.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"180dd67de975f1f9baa1701d5764e65e7d74cc66dde210f31a454d11acf1b9c3"}},{"ruleId":"D1","level":"warning","message":{"text":"app.collectParams (cyclomatic 20): app.collectParams has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1586, 1615). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/ai_servers_webui/app.js"},"region":{"startLine":1583}}}],"partialFingerprints":{"codehealthFindingId/v1":"c478af901075f9fe87d40c62bcdad20e0439f794a2f382e1ae5cfd1040a6430f"}},{"ruleId":"D1","level":"warning","message":{"text":"RestoreCoordinator.installPending (cyclomatic 19): RestoreCoordinator.installPending has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/RestoreCoordinator.kt"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"9122739cf6977b86031bf1d8280195874653818dce41de605ac3e28d73841f71"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessTerminalDialogKt.HarnessTerminalDialog (cyclomatic 19): HarnessTerminalDialogKt.HarnessTerminalDialog has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessTerminalDialog.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68f4998079cb98e1d43c0dd994fa0110fcc9b0415f22e9dee5e353ac9738ba0"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentProjectControlPlane.classifyVerificationCheck (cyclomatic 19): AgentProjectControlPlane.classifyVerificationCheck has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"2493f1745091c234e2d335a8538f7085901abb5c88588607495bed4a88e8e844"}},{"ruleId":"D1","level":"warning","message":{"text":"LlamaServerSessionRuntime.launchProcess (cyclomatic 19): LlamaServerSessionRuntime.launchProcess has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerSessionRuntime.kt"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b311a31bd09695635755bbc328a56d3a00e2f4a8c668d2d20e8a86c4cbe1cc"}},{"ruleId":"D1","level":"warning","message":{"text":"PDFService.translatePageUnits (cyclomatic 19): PDFService.translatePageUnits has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54fb095e8b5e8123fcd365eb818c7a309e77effdf98997244834a3e436ac520"}},{"ruleId":"D1","level":"warning","message":{"text":"QuadtrixTrainingService.startProfile (cyclomatic 19): QuadtrixTrainingService.startProfile has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/QuadtrixTrainingService.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"77414e830c75ca5eebc4e414dde4cb08782593f371cd91205b6092cb5b49f424"}},{"ruleId":"D1","level":"warning","message":{"text":"SdProgressTracker.recognizePhase (cyclomatic 19): SdProgressTracker.recognizePhase has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdProgressSupport.kt"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcff1c1fdc4ac339cfccbab96bca2aec044ee8dbf6bdd36a5336852979bfbaf1"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoInterpolationService.runRife (cyclomatic 19): VideoInterpolationService.runRife has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoInterpolationService.kt"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7dcd0c5cddcdfb2dd8930319032d3ac3f8d9a89ab4976fb95faf7afc4e21a78"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolSpec.parse (cyclomatic 19): ToolSpec.parse has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/filestation/api/ToolsApi.kt"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca6928ec583f53a415295222f11dfeb9459fa9f5a4248056ab24e8472d4e911"}},{"ruleId":"D1","level":"warning","message":{"text":"TamaArcadeSessionRules.validate (cyclomatic 19): TamaArcadeSessionRules.validate has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaArcadeSessionRules.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"87aa74e64557af8c80c12ac9d34d31935ca64c753573207bacd3a563139f6775"}},{"ruleId":"D1","level":"warning","message":{"text":"PetTransferCoordinator.runOutbound (cyclomatic 19): PetTransferCoordinator.runOutbound has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferCoordinator.kt"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"de8e9ff349fbc5ed89396bc6e6e68d3a2acb09b34e74b0035f14fc69587b5e37"}},{"ruleId":"D1","level":"warning","message":{"text":"PetTransferServer.hello (cyclomatic 19): PetTransferServer.hello has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferServer.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b49c4ceebf4b3cf907627c4b340db7bff16ad2fb5464913c75c0f7a7dbb784"}},{"ruleId":"D1","level":"warning","message":{"text":"ArcadeMemoryGameKt.MemoryCardTile (cyclomatic 19): ArcadeMemoryGameKt.MemoryCardTile has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/ArcadeMemoryGame.kt"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b72e028099b92aa1e9445f9cb2cbecf5725ec5bced6af85367b3f90291e767e"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentControlsKt.AgentContextWindowBanner (cyclomatic 19): AgentControlsKt.AgentContextWindowBanner has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59635034309f69f45036192c5e8519f50cbbd06791aab4815fe3fa68e0e65c0"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentDialogsKt.AgentTuningCard (cyclomatic 19): AgentDialogsKt.AgentTuningCard has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":3440}}}],"partialFingerprints":{"codehealthFindingId/v1":"826a1c0904cd162f7e6c65ad7297a091e9691b1c67a5ea656f1b740ae997a692"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentWorkspaceScreenKt.AgentWorkspaceRunTab (cyclomatic 19): AgentWorkspaceScreenKt.AgentWorkspaceRunTab has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt"},"region":{"startLine":2245}}}],"partialFingerprints":{"codehealthFindingId/v1":"165e6beacebca67f8c77cdfbbdc1cc75b637ec89f76417e2622c6c7163e62418"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessGoalPanelKt.HarnessGoalPanel (cyclomatic 19): HarnessGoalPanelKt.HarnessGoalPanel has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessGoalPanel.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"87f88651bbb468399467c7fdc5aabce9b99d2a547585806a5469872a68946a13"}},{"ruleId":"D1","level":"warning","message":{"text":"GenerationQueueScreenKt.GenerationQueueHistoryScreen (cyclomatic 19): GenerationQueueScreenKt.GenerationQueueHistoryScreen has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/GenerationQueueScreen.kt"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"43fd60b74b90189dc0b953d948a71bd27981bf0eb08fcb4d4f248b9cb104984a"}},{"ruleId":"D1","level":"warning","message":{"text":"InpaintMaskEditorKt.InpaintMaskEditorContent (cyclomatic 19): InpaintMaskEditorKt.InpaintMaskEditorContent has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/InpaintMaskEditor.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2eaa4fc177bd24ec50308691269ee5a1ad2fc2fa3a119ed5e566463682f9e42"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoReuseDialogKt.VideoReuseDialog (cyclomatic 19): VideoReuseDialogKt.VideoReuseDialog has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoReuseDialog.kt"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e0a2e8130f75082c0b58f98e2afe5b27e163f541ca3b1c26917ac50707da0d"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatDelegationSettingsSectionKt.ChatDelegationSettingsSection (cyclomatic 19): ChatDelegationSettingsSectionKt.ChatDelegationSettingsSection has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatDelegationSettingsSection.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0e7c7b3e170b3afe994bc7fae4cf58348a48138a04b2b3fba28cfd85fadc58"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerDetailSheetKt.ServerDetailSheet (cyclomatic 19): ServerDetailSheetKt.ServerDetailSheet has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/ServerDetailSheet.kt"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd02077ce9f0531589aeffa01f5b71dcb75efb88716fbc5a6564216019a689d"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoInputPickerKt.VideoInputPicker (cyclomatic 19): VideoInputPickerKt.VideoInputPicker has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/VideoInputPicker.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcbced2d5406cb4ac4f7b2c66f9754f2e91c3d34ea14286ee5743f5a40353fff"}},{"ruleId":"D1","level":"warning","message":{"text":"DatasetProjectScreenKt.DatasetProjectScreen (cyclomatic 19): DatasetProjectScreenKt.DatasetProjectScreen has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a4e34e3148da09585adb0afc371ec04e548daaf6bc3a83e9f7fcea1f44d56e"}},{"ruleId":"D1","level":"warning","message":{"text":"AllMediaGalleryScreenKt.AllMediaGalleryScreen (cyclomatic 19): AllMediaGalleryScreenKt.AllMediaGalleryScreen has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/library/AllMediaGalleryScreen.kt"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"3413d3d513e069e0cdec859aceb2cf6d4674990f484d5d361caa6dd4c3c42d6a"}},{"ruleId":"D1","level":"warning","message":{"text":"picker.pickFolder (cyclomatic 19): picker.pickFolder has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 4 of the 19 points are its own statements and the rest belongs to 6 function items inside it that branch (show, a function literal at line 51, row, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/file_station_webui/js/picker.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"bedc9c3d52577612f2fa2a859f77e24c4a548167bfdece65535f1f1ec1e98e6b"}},{"ruleId":"D1","level":"warning","message":{"text":"main.route (cyclomatic 19): main.route has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/file_station_webui/js/main.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"295cd1f1f0a544ddd195f21bc48f8db259b46ade36292cf944ce2bebebad2c8a"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsRepository.migrateDirectAgentSettingsPreferences (cyclomatic 18): SettingsRepository.migrateDirectAgentSettingsPreferences has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: SettingsRepository.normalizeStableDiffusionNativeBinarySelection (cyclomatic 38) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"99caacc67b18974366950b657364df3d095b1191c5742b3f675cc8b14f8e9fe4"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelArtifactRecognizer.isLikelyOnnxFile (cyclomatic 18): ModelArtifactRecognizer.isLikelyOnnxFile has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: ModelArtifactRecognizer.artifactRoleForManualSelection (cyclomatic 34) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactRecognizer.kt"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e52551a2a08875564a9c13edda60c7ab735f5db2905ad381624a0876aad6174"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelSourceRepository.saveSource (cyclomatic 18): ModelSourceRepository.saveSource has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b6442236e11d3a2f4eaa19233f6ddf924090030a3c51e08eff6c90f97e2e0c1"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentDurableContractStore.parsePatchArtifactEntries (cyclomatic 18): AgentDurableContractStore.parsePatchArtifactEntries has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentDurableContractStore.kt"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"9741ebbc4f314b4afb9fd88bcb9a8b1e5f3cd7aa874a1dba79b601107a08057c"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentPreviewBridge.interact (cyclomatic 18): AgentPreviewBridge.interact has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentPreviewBridge.kt"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb81046fd4132c56489dd8de5c13ca3e1f11f1c378f361ada90d49d4c56feeee"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentProjectControlPlane.todoOutcomeForReport (cyclomatic 18): AgentProjectControlPlane.todoOutcomeForReport has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":3142}}}],"partialFingerprints":{"codehealthFindingId/v1":"91592ec65c53ec8c4ae496a40d30fed2c5ba88d75679e343380e24247454eec6"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolHttpServer.validateModelCapabilities (cyclomatic 18): ToolHttpServer.validateModelCapabilities has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":1484}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6593f55f692cae28a7437a04f877b3b753ddd58d2632d1b5051d3df8a545f98"}},{"ruleId":"D1","level":"warning","message":{"text":"DeepResearchSupport.scoreCandidate (cyclomatic 18): DeepResearchSupport.scoreCandidate has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DeepResearchSupport.kt"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf5f43c9f9e8adeb41aafdf13ca337bef6969e0af83bcc71365ce625cc89a15"}},{"ruleId":"D1","level":"warning","message":{"text":"LlamaClientService.selectLiteRtToolsForPrompt (cyclomatic 18): LlamaClientService.selectLiteRtToolsForPrompt has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: LlamaClientService.statusTextForToolCall (cyclomatic 33) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":2930}}}],"partialFingerprints":{"codehealthFindingId/v1":"313b149bc983c99c741beee2e4eb4d954520521ffa0ed92b1a6ee85cf0fb2992"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaTranslationWorkflowService.runProcessWithSrtProgress (cyclomatic 18): MediaTranslationWorkflowService.runProcessWithSrtProgress has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt"},"region":{"startLine":2656}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b946f9e41ebd9fabf4798f3fac07f96bf6b16a8baaa96c3161215a668cdd18"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeChatToolRuntime.fetchUrlText (cyclomatic 18): NativeChatToolRuntime.fetchUrlText has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: NativeChatToolRuntime.parseOptionalNoteType (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":2450}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bc0a8ad73d9ad5c2ed2e4802828072c85fab682bc193ac8ac2cb016872e61ac"}},{"ruleId":"D1","level":"warning","message":{"text":"OllamaService.performChatWithToolsStreaming (cyclomatic 18): OllamaService.performChatWithToolsStreaming has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/OllamaService.kt"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"573b06bb2df95c6f7055d3fe2d5b23fb1397374a2635e025a362e4c465b4dddb"}},{"ruleId":"D1","level":"warning","message":{"text":"PDFTranslationLogic.extractFlexibleTranslations (cyclomatic 18): PDFTranslationLogic.extractFlexibleTranslations has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFTranslationLogic.kt"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1931764528beaaab7eb9d85bfce9e725e3a63e5d7a44f91264baf034c67b80"}},{"ruleId":"D1","level":"warning","message":{"text":"ProcessControllerKt.migrateLegacyLlamaManagedSettings (cyclomatic 18): ProcessControllerKt.migrateLegacyLlamaManagedSettings has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ProcessController.kt"},"region":{"startLine":1666}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4449bd84ae9a66182ac451ad068cd8282f02afd3bfafad7b80cf8a29a0637b3"}},{"ruleId":"D1","level":"warning","message":{"text":"ProcessControllerKt.filterManagedLlamaCustomFlags (cyclomatic 18): ProcessControllerKt.filterManagedLlamaCustomFlags has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ProcessController.kt"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"59357e4238c51239e23194f0c07bb72ffec7800133e5599b4749a88c365dabfe"}},{"ruleId":"D1","level":"warning","message":{"text":"SdAdetailerSupportKt.validateSdADetailerConfig (cyclomatic 18): SdAdetailerSupportKt.validateSdADetailerConfig has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdAdetailerSupport.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"efda60ed091aa28eeba9e6fa719b24f48790a283d9c274a7482a9c7f0f517281"}},{"ruleId":"D1","level":"warning","message":{"text":"SdDistributedRuntimeKt.buildRamWeightedSdPlacementPlan (cyclomatic 18): SdDistributedRuntimeKt.buildRamWeightedSdPlacementPlan has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdDistributedRuntime.kt"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb38ad193716df359fadd3a2b02c17984c8a61666b262e5433604891f5f431a"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionService.onStartCommand (cyclomatic 18): StableDiffusionService.onStartCommand has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"e651b4ee2c50eca5a4cf36c4a2fe255c7b185db41516ae542fa4203f13d88a7c"}},{"ruleId":"D1","level":"warning","message":{"text":"DelegationProjectFiles.search (cyclomatic 18): DelegationProjectFiles.search has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegationProjectFiles.kt"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a93f4e97147946099251331bde3634732dc2495cdb724ae1abc88b1a1bc45da"}},{"ruleId":"D1","level":"warning","message":{"text":"VolumeRegistry.transferNamed (cyclomatic 18): VolumeRegistry.transferNamed has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/filestation/volume/VolumeRegistry.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"295a5d4be03f367b485c48902ba20adb215596170cd087891d6758688fff7f15"}},{"ruleId":"D1","level":"warning","message":{"text":"ShimejiMotion.chooseNext (cyclomatic 18): ShimejiMotion.chooseNext has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: ShimejiMotion.clipFor (cyclomatic 24) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/shimeji/ShimejiMotion.kt"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e834c59cb040d12101687a471e56aed0c877eac074f3ea6c074b02953b9d8e1"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentDialogsKt.AgentDirectRuntimeCard (cyclomatic 18): AgentDialogsKt.AgentDirectRuntimeCard has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":2471}}}],"partialFingerprints":{"codehealthFindingId/v1":"49036f8ce575c429b1f502bd8bd91704c1982cc0d201efbd3f867f64644434ef"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentWorkspaceScreenKt.AgentWorkspacePreviewTab (cyclomatic 18): AgentWorkspaceScreenKt.AgentWorkspacePreviewTab has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt"},"region":{"startLine":2505}}}],"partialFingerprints":{"codehealthFindingId/v1":"a54723884e4184a6ee8a07f914ff1b5f6668bed0f768b8cda1606c90ec1c0e25"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessScreenKt.HarnessSessionCard (cyclomatic 18): HarnessScreenKt.HarnessSessionCard has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc754bf88478a84aa5613e59a08e71872abf20e7e2e67421b3620583b62fbdd7"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeHarnessStructuredTranscriptKt.parseNativeHarnessStructuredTranscript (cyclomatic 18): NativeHarnessStructuredTranscriptKt.parseNativeHarnessStructuredTranscript has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessStructuredTranscript.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c8ac5740fc3d421fbfe59471e21d94eb122cc1d40ff458ffdfc33fdd23961da"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeHarnessStructuredTranscriptActions.loadDetail (cyclomatic 18): NativeHarnessStructuredTranscriptActions.loadDetail has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessStructuredTranscriptActions.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc7b8eb2e2896a3d5efac5352dc2fc1caad9894a14567e723a5bd89cf73dceb"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveTranslatorScreenKt.LiveTranslatorBackendCard (cyclomatic 18): LiveTranslatorScreenKt.LiveTranslatorBackendCard has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/LiveTranslatorScreen.kt"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b14e002781e9da67bd1a22eef5767f91f3cfb0758aea5dd0f05d9b29dc6b7e5"}},{"ruleId":"D1","level":"warning","message":{"text":"OnnxTtsScreenKt.OnnxTtsScreen (cyclomatic 18): OnnxTtsScreenKt.OnnxTtsScreen has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxTtsScreen.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"f49d1a6b8fe6b39d7d8f330f833c80bc69afdcb6a3fcdd3403e308cb0e5f6292"}},{"ruleId":"D1","level":"warning","message":{"text":"TermuxScreenKt.ToolRunItem (cyclomatic 18): TermuxScreenKt.ToolRunItem has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt"},"region":{"startLine":1490}}}],"partialFingerprints":{"codehealthFindingId/v1":"4379165e668f5f4f08718f2edea3b933047796c0673d770288047e66de6bd234"}},{"ruleId":"D1","level":"warning","message":{"text":"CuratedModelBundleSectionKt.CuratedModelBundleSection (cyclomatic 18): CuratedModelBundleSectionKt.CuratedModelBundleSection has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2c01017fa02a3744afb3a68031421929bcbe3d360e48a3c5a8edefa43896e2"}},{"ruleId":"D1","level":"warning","message":{"text":"EasyImagesTabKt.EasyImageRunCard (cyclomatic 18): EasyImagesTabKt.EasyImageRunCard has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/easy/EasyImagesTab.kt"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"219a565f7fd334f472bbba9d4da51e52ea9e03bb31060ccba2b55036115c1737"}},{"ruleId":"D1","level":"warning","message":{"text":"KiwixViewerScreenKt.KiwixViewerScreen (cyclomatic 18): KiwixViewerScreenKt.KiwixViewerScreen has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/kiwix/KiwixViewerScreen.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"e576d26686aa2c090eb93c4bddb87fde651c792711040824b9609d7bc1156103"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelShareScreenKt.ModelShareScreen (cyclomatic 18): ModelShareScreenKt.ModelShareScreen has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelShareScreen.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb3e47685adf88b008912cc7e20e3c1c02d83f0412b2dc7f0acf6206e4550b0"}},{"ruleId":"D1","level":"warning","message":{"text":"app.syncActiveChatState (cyclomatic 18): app.syncActiveChatState has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/ai_servers_webui/app.js"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"3076065da19443f12d1cec9470a7a2651b348ab585baab9a5f2b09c81f9091ce"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioGenerationService.runJob (cyclomatic 17): AudioGenerationService.runJob has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/AudioGenerationService.kt"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f3d341258f2ea3262a00a77f94f02f6ef79c625a0e7d371c9afa87cb5f4665"}},{"ruleId":"D1","level":"warning","message":{"text":"StableAudio3ModelDoctor.inspectFile (cyclomatic 17): StableAudio3ModelDoctor.inspectFile has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/music/StableAudio3ModelDoctor.kt"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"971cbe3b8d179e06b534c60443e72a3ca5d017e4c9234f5df64380627a2c51f0"}},{"ruleId":"D1","level":"warning","message":{"text":"BinaryRepository.resolveLlamaBinary (cyclomatic 17): BinaryRepository.resolveLlamaBinary has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"f49ef83e9be42b25fcaa88a3c4edb8df5359d743727dd9b501d37f0bdc6fab01"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelRepository.downloadModel (cyclomatic 17): ModelRepository.downloadModel has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: ModelRepositoryKt.isStableDiffusionArtifact (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"b104cc5bdac110e2d892951fa9533a70af7cef5d592bdda046bfa89163105ea5"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelArtifactRecognizer.validateSd (cyclomatic 17): ModelArtifactRecognizer.validateSd has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This is NOT this file\u0027s highest cyclomatic complexity: ModelArtifactRecognizer.artifactRoleForManualSelection (cyclomatic 34) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactRecognizer.kt"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8df1ed985aa4cdf09b17f3f23068910270f85a9a0f7a514d4fd20fb8c320aa7"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessImageParts.rewrite (cyclomatic 17): HarnessImageParts.rewrite has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessImageParts.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ac3ae3aeab47b2bb5240a09c850ae477957b3fe99163b41a8f95da1bf18e8b"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessLocalModels.streamLlamaServer (cyclomatic 17): HarnessLocalModels.streamLlamaServer has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessLocalModels.kt"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef30ea1e49d60d82dd1d74f566b9e676596e33cd3300a0a87b5673ff8b572ef"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessReferencesDialogKt.HarnessReferencesDialog (cyclomatic 17): HarnessReferencesDialogKt.HarnessReferencesDialog has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessReferencesDialog.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6f2b811abe5604665a56d621d8d0d49da5be4ac81f29652b2d3722d9d296d6"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessTerminalScreenUiKt.composeHarnessTerminalKeySequence (cyclomatic 17): HarnessTerminalScreenUiKt.composeHarnessTerminalKeySequence has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessTerminalScreenUi.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bdb3f4c36ac07d77a4dee74af0aa51a24161f5b95003512d7a08c1c0fac6440"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessTransferMappings.review (cyclomatic 17): HarnessTransferMappings.review has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessTransferMappings.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"36088fca01671e734133c7d1148f27f2327dd119ff81ede54b9976f471a76062"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentControlPromptSupportKt.projectAgentReportForControlPacket (cyclomatic 17): AgentControlPromptSupportKt.projectAgentReportForControlPacket has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentControlPromptSupport.kt"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85254340be7420ea94f1ae2ad711a42bbc178ff3aacac0eb3428c4170ab60ff"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentProjectControlPlane.applyVerificationResult (cyclomatic 17): AgentProjectControlPlane.applyVerificationResult has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9eee0863bee0dd7c8938fc24dbb596ddddc47e161292f1ea87f0eb7fbf64be"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentRemoteChatClient.chatWithOwnedSession (cyclomatic 17): AgentRemoteChatClient.chatWithOwnedSession has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentRemoteChatWorkerService.kt"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9707c14291bb44d9943ab8fda7926d3968a6da3e4e5263cb1bb39ef36b0f53"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentRuntimeSupport.tokenizeArgvTemplate (cyclomatic 17): AgentRuntimeSupport.tokenizeArgvTemplate has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentRuntimeSupport.kt"},"region":{"startLine":1614}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ebfb1d2de21e5db821ffce672e0f56b416b747415eadaed1b5d6f742d34d37"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentService.persistFrozenTurnContext (cyclomatic 17): AgentService.persistFrozenTurnContext has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: AgentService.toolExampleJson (cyclomatic 30) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":4371}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d570e4c57f9e2e79775460721a8fa6d66edd490b38ca6ded46551e44c4851b"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentService.addMessage (cyclomatic 17): AgentService.addMessage has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: AgentService.toolExampleJson (cyclomatic 30) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":6635}}}],"partialFingerprints":{"codehealthFindingId/v1":"88b5e848c606af025b027cd0d8976041596a0bc96281e4549cd82a06426353c9"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentService.packMessagesForContextOnce (cyclomatic 17): AgentService.packMessagesForContextOnce has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: AgentService.toolExampleJson (cyclomatic 30) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":15615}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd28d8fb35254678d4a47e0900c59e37be3aff7a7501c5e2cd8a77aa55af483a"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentService.normalizeMessageForPrompt (cyclomatic 17): AgentService.normalizeMessageForPrompt has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: AgentService.toolExampleJson (cyclomatic 30) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":15773}}}],"partialFingerprints":{"codehealthFindingId/v1":"49791cc4c78aa76096a8b9d6c523ae712739a4d29a8fb5cd3a678dd120ead26e"}},{"ruleId":"D1","level":"warning","message":{"text":"LiteRtTextGenerationClient.streamSafely (cyclomatic 17): LiteRtTextGenerationClient.streamSafely has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtTextGenerationClient.kt"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a69d5c06407ce6c9f47b42e60789a7fdd8dc3674e470ffaa40cff7d8d1a21e3"}},{"ruleId":"D1","level":"warning","message":{"text":"LlamaServerSessionRuntime.start (cyclomatic 17): LlamaServerSessionRuntime.start has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerSessionRuntime.kt"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eeb59c8d416c76278225ef12e7824c619185deefe4bfb9a328d00beb4ae0465"}},{"ruleId":"D1","level":"warning","message":{"text":"LlamaServerSessionService.onStartCommand (cyclomatic 17): LlamaServerSessionService.onStartCommand has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerSessionService.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ace7559037e5d602ce1f27ea37caa8bba03e60e1f1836e59bb02f975dc7ef7"}},{"ruleId":"D1","level":"warning","message":{"text":"PDFService.translationGroupsShouldMerge (cyclomatic 17): PDFService.translationGroupsShouldMerge has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":1878}}}],"partialFingerprints":{"codehealthFindingId/v1":"21fc971714111ef7b8cacdf4d01e2dff79810d4d5a2fe1e204279d6a7e2ebdc7"}},{"ruleId":"D1","level":"warning","message":{"text":"PDFService.detectBubbleOcrRegions (cyclomatic 17): PDFService.detectBubbleOcrRegions has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":5118}}}],"partialFingerprints":{"codehealthFindingId/v1":"eedaf98a5d263422acd4a719cbff7054fa9d85343e38ab3b99c279bc5e5bde9d"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteMasterServer.handleRestart (cyclomatic 17): RemoteMasterServer.handleRestart has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteMasterServer.kt"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"79505b57cabcd1203385a0ae13e2acf147f4117d4240653ecd87f39c736dd7f0"}},{"ruleId":"D1","level":"warning","message":{"text":"SdLaunchPreflightKt.resolveSdPipelineForLaunch (cyclomatic 17): SdLaunchPreflightKt.resolveSdPipelineForLaunch has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdLaunchPreflight.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d9dfde8fbe226f17689916951f7af73049cdcf18af307e496e0c9d65846c8e0"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoSumupService.transcribe (cyclomatic 17): VideoSumupService.transcribe has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoSumupService.kt"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"84228006dad85780c42aa5f8c97c327ccb559c898b6c7551c16f565a8da9d4ca"}},{"ruleId":"D1","level":"warning","message":{"text":"TamaArcadeSessionRules.rewardFor (cyclomatic 17): TamaArcadeSessionRules.rewardFor has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaArcadeSessionRules.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db6a25fdce0a5c45bf0284632911fea246c281d1a728374d72f56f6c5800a7e"}},{"ruleId":"D1","level":"warning","message":{"text":"AdventureGateArenaKt.EnemySprite (cyclomatic 17): AdventureGateArenaKt.EnemySprite has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateArena.kt"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"31a17f0fd33b6f61a11bdab6f7c65b13f1813fa84c1bd5f882e471603702cfaf"}},{"ruleId":"D1","level":"warning","message":{"text":"ArcadeScreenKt.advanceCatchGame (cyclomatic 17): ArcadeScreenKt.advanceCatchGame has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt"},"region":{"startLine":1503}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b177d29d1d78efbeacb7964a53ebdbbcb85f22ba013d13656a0dc070650574"}},{"ruleId":"D1","level":"warning","message":{"text":"FarmLayoutKt.UpgradeItem (cyclomatic 17): FarmLayoutKt.UpgradeItem has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmLayout.kt"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e690a66c5f3a6d707b738b62778d662474de61fcd1c1345dea46d2d250c397e"}},{"ruleId":"D1","level":"warning","message":{"text":"FarmTilesKt.FarmTileItem (cyclomatic 17): FarmTilesKt.FarmTileItem has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmTiles.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4bb36607744bd4af64cf41311882fee2c3d6fd50897b457b39d67de50c09bcb"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentControlsKt.AgentWorkspaceConsoleHeader (cyclomatic 17): AgentControlsKt.AgentWorkspaceConsoleHeader has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef7977c89ae1af1e0fa654326507416aa3327311254212500af31e909917d674"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessCommandsTabKt.HarnessCommandRunCard (cyclomatic 17): HarnessCommandsTabKt.HarnessCommandRunCard has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessCommandsTab.kt"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"121eef79edda9a96d44e97f47ec030e7492180a544604aeeacd21478f7ef5af2"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessConversationPanelKt.HarnessChatTab (cyclomatic 17): HarnessConversationPanelKt.HarnessChatTab has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessConversationPanel.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce414a266a806b972a1f8186c80b0c86fd6fbbe30ab99f13d594376a54786ce7"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessExtensionsPanelsKt.HarnessPluginRow (cyclomatic 17): HarnessExtensionsPanelsKt.HarnessPluginRow has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessExtensionsPanels.kt"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"425e70ad909811bf8fc6edf3985300448ca0d50b41b0c4d0f44ad41260f5fe18"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessRecoveryToolsKt.RecoveryTerminalControls (cyclomatic 17): HarnessRecoveryToolsKt.RecoveryTerminalControls has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRecoveryTools.kt"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"671385182521db4cb0d60f02b2a0254b71923cd290765f84860e82d625184a7e"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessRuntimeTransferKt.ImportTransferBody (cyclomatic 17): HarnessRuntimeTransferKt.ImportTransferBody has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeTransfer.kt"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf2f1c1ccd8f1ec6f9642cc254f0b3983d3092b937514cf766127f020f32dcf"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeHarnessProviderSaveKt.buildNativeHarnessProviderSavePlan (cyclomatic 17): NativeHarnessProviderSaveKt.buildNativeHarnessProviderSavePlan has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessProviderSave.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae43105e4593bdd7b24ca53c9e5b9cf1cc5982ace6854180df6c0b80e34060a"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeHarnessProviderSaveKt.parseProviderField (cyclomatic 17): NativeHarnessProviderSaveKt.parseProviderField has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessProviderSave.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"39674c2af27092cf281276340e6acfb9ee72e02842b8732da164ee1442c234cd"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeHarnessStructuredTranscriptPanelKt.NativeHarnessStructuredTranscriptCard (cyclomatic 17): NativeHarnessStructuredTranscriptPanelKt.NativeHarnessStructuredTranscriptCard has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessStructuredTranscriptPanel.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd505cab9c6270fc6023a55e59df13344c25a090b5773074cca79a0e925863fd"}},{"ruleId":"D1","level":"warning","message":{"text":"PageReader.read (cyclomatic 17): PageReader.read has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessTurnActions.kt"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c6433da55c6a708ae35874b561387f7c7266949533a14d6fbe53305d444e00"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeHarnessTurnDetailsKt.nativeHarnessUsageFromEvent (cyclomatic 17): NativeHarnessTurnDetailsKt.nativeHarnessUsageFromEvent has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessTurnDetails.kt"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"260356bdd98ad1055181c6b62b57cb4d81f7a2f425cf21c7c2b3435d7d874602"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageGenScreenKt.SdParamsBackendProfileControls (cyclomatic 17): ImageGenScreenKt.SdParamsBackendProfileControls has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":4848}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c05b73ce372c398dabb7811e9619b2ed0f703d71b1416276f0ba923d289ca61"}},{"ruleId":"D1","level":"warning","message":{"text":"EasyLlamaChatUiKt.EasyLlamaChatEntryCard (cyclomatic 17): EasyLlamaChatUiKt.EasyLlamaChatEntryCard has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/EasyLlamaChatUi.kt"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"baab8eff12ea73f4b7bfef5787c9b7498c600ed2f0a1a7e24ee30d7e51e1c86f"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalServerFormKt.validateLocalForm (cyclomatic 17): LocalServerFormKt.validateLocalForm has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/LocalServerForm.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c0b5b692e5202cef8caf5b0bfd1b87bd7eba757b3aea306f2d8cfc3f3d58e1"}},{"ruleId":"D1","level":"warning","message":{"text":"OllamaManagerScreenKt.ModelList (cyclomatic 17): OllamaManagerScreenKt.ModelList has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ollama/OllamaManagerScreen.kt"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc96702a7e33df582e838c15dcbd8254ca657b5fdcc40d589ffd0fd064d6bdc"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioWorkspaceRuntimeController.toUiModel (cyclomatic 17): AudioWorkspaceRuntimeController.toUiModel has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/AudioWorkspaceRuntimeController.kt"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"8996bda02c2835b4ca43779d0bfd89de1246cfe5ea87c5c8a171fc5ee0b9a476"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatScreenKt.ChatScreen (cyclomatic 17): ChatScreenKt.ChatScreen has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/chat/ChatScreen.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e734da53d91b85b38af04d27fce0d6bc5988a597e058cb2c62be4dd9ff80eb6"}},{"ruleId":"D1","level":"warning","message":{"text":"AppChromeKt.AppHubRow (cyclomatic 17): AppChromeKt.AppHubRow has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/AppChrome.kt"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f7487fea0d41a6624ccf7b94e4b9484a691cdc316a208db74bc4e0d9b586171"}},{"ruleId":"D1","level":"warning","message":{"text":"EasyChatModelPickerKt.EasyChatModelPicker (cyclomatic 17): EasyChatModelPickerKt.EasyChatModelPicker has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/easy/EasyChatModelPicker.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"f630458d4b8aec9e2b3792817426b936ac1d9eba87c1f5c64d1418538e333908"}},{"ruleId":"D1","level":"warning","message":{"text":"FileStationScreenKt.StatusSection (cyclomatic 17): FileStationScreenKt.StatusSection has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/filestation/FileStationScreen.kt"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a55977482a623ca6a398211ce02b9caf4384b1a8684ba141ada6909a7e92c2"}},{"ruleId":"D1","level":"warning","message":{"text":"MainActivityKt.OrganizerScreen (cyclomatic 17): MainActivityKt.OrganizerScreen has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: MainActivityKt.WearCompanionApp (cyclomatic 20) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":2243}}}],"partialFingerprints":{"codehealthFindingId/v1":"694d5a34bbe19766d6c3dc39e81016d37230db057be1ed066d0d6814906744f3"}},{"ruleId":"D1","level":"warning","message":{"text":"app.renderMessageAttachments (cyclomatic 17): app.renderMessageAttachments has cyclomatic complexity 17 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/ai_servers_webui/app.js"},"region":{"startLine":1478}}}],"partialFingerprints":{"codehealthFindingId/v1":"f66ad4604a63249a42d8812ecb0c3deb52793eec51c2b4f8dde0f0010abf61e9"}},{"ruleId":"D1","level":"warning","message":{"text":"dialogs.h (cyclomatic 17): dialogs.h has cyclomatic complexity 17 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 5 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/file_station_webui/js/dialogs.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"329c29b2f3a541782f7a78d5ce541e16374b0431a337952ffd8dd5bb247a7e9a"}},{"ruleId":"D1","level":"warning","message":{"text":"browser.initBrowser (cyclomatic 17): browser.initBrowser has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 257, 230, 253, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/file_station_webui/js/browser.js"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"124a583f3dddc15212c07e2d93f3f0c84952c11a864716669074b136782ce351"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioGenerationService.onStartCommand (cyclomatic 16): AudioGenerationService.onStartCommand has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/AudioGenerationService.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"2287a39a63bb07c0205391b9cf639c210ea1f4b2b7a8244e20dfe84207a14724"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelArtifactRecognizer.validateAudio (cyclomatic 16): ModelArtifactRecognizer.validateAudio has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This is NOT this file\u0027s highest cyclomatic complexity: ModelArtifactRecognizer.artifactRoleForManualSelection (cyclomatic 34) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactRecognizer.kt"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"8130293d8338ac4615ec676c1f50ca8ae9289cb58713d55885fbb9572d3f68ae"}},{"ruleId":"D1","level":"warning","message":{"text":"ProotManager.extractRootfs (cyclomatic 16): ProotManager.extractRootfs has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/proot/ProotManager.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"00e7668d4e0a9166a0cfb7e6ed3474e24476dabb7390c6737e5fd29eb5f892e6"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessBridgeOperations.image (cyclomatic 16): HarnessBridgeOperations.image has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessBridgeOperations.kt"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"20978a194f1ac9372b2148759307b39b1af9bf4d746c1172a94ff8cd97d0f5ac"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessOriginalWebViewKt.scheduleHarnessWebViewBootProbe (cyclomatic 16): HarnessOriginalWebViewKt.scheduleHarnessWebViewBootProbe has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessOriginalWebView.kt"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7118ff408b38426eb5ede1b5610b4237f035692dde3ad5ad57b0826063594e7"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessProjectManagement.loadGroup (cyclomatic 16): HarnessProjectManagement.loadGroup has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessProjectManagement.kt"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"04dbbdf5cdf4531edd15ab4240fb104b5c8d355c04234cac776e6f9c08ab8f0e"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessTermuxTransportViewKt.composeHarnessTermuxCodePoint (cyclomatic 16): HarnessTermuxTransportViewKt.composeHarnessTermuxCodePoint has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessTermuxTransportView.kt"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf73a0241c24a0b97a15923fc14a7bdb4286c6caa366d0278a0f83e687cc874"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessTransferMetadata.snapshot (cyclomatic 16): HarnessTransferMetadata.snapshot has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessTransferMetadata.kt"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bbf87e23e9e73a24120478c62c34363c9a74101ae38bd9be91d20c717795d8e"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessWebIndexBodyKt.readHarnessWebIndexBody (cyclomatic 16): HarnessWebIndexBodyKt.readHarnessWebIndexBody has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessWebIndexBody.kt"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd05cb0b850b4fdb64a85e8e13f478edfe5c75e74ce4bacf164183c6142fc783"}},{"ruleId":"D1","level":"warning","message":{"text":"OkHttpHarnessClient.fetchJson (cyclomatic 16): OkHttpHarnessClient.fetchJson has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/client/OkHttpHarnessClient.kt"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"c927dbbc215bd8dfc6ebce003817b6e7824136894fee8edd5c9fbee91a6081e9"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessRuntimeController.recover (cyclomatic 16): HarnessRuntimeController.recover has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"befa766c5285943df1b385b0934900f3a996a12450fcb461b8df264bbb76ab86"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessTransferCodec.validateEntrySemantics (cyclomatic 16): HarnessTransferCodec.validateEntrySemantics has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ba6686351cdb2d11ec9aa1817c78145cac84ccdc08bef620fbd1d902499567"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentForegroundService.onStartCommand (cyclomatic 16): AgentForegroundService.onStartCommand has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentForegroundService.kt"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"b898151ee9fe3f6842de94156e80f7fc30698f1cc7e89723babe9ebd21011c74"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentPlanProposalRecoveryKt.recoverImplementationPlanProse (cyclomatic 16): AgentPlanProposalRecoveryKt.recoverImplementationPlanProse has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentPlanProposalRecovery.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b730321e22332c0ac45a2cb58c45316870c62bcfe66057159056e949a99655"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentService.buildStructuredBrainState (cyclomatic 16): AgentService.buildStructuredBrainState has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: AgentService.toolExampleJson (cyclomatic 30) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":19546}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d3c7e952bddc3bc7cf3fad08d80db2ac361865892a6990cc3e84acd6e9ace0"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentService.setIsLoading (cyclomatic 16): AgentService.setIsLoading has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: AgentService.toolExampleJson (cyclomatic 30) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":3141}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f0c3217f249fdee195be02d8d5feb3020dbfc2d50f30363bf87f3177693557"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentToolSchemaPolicy.compactSchemaObject (cyclomatic 16): AgentToolSchemaPolicy.compactSchemaObject has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentToolSchemaPolicy.kt"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5cd535f8d5829080273c7d441738709cb87fb35e5da0767bc670a30f5a32b3"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolHttpServer.startPdfToolJob (cyclomatic 16): ToolHttpServer.startPdfToolJob has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: ToolHttpServer.serveMedia (cyclomatic 17) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":1775}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00487bed5268eafc86fd712a331c3e641665307c51fed07ee5999ddeb51482d"}},{"ruleId":"D1","level":"warning","message":{"text":"TombstoneWireReader.message (cyclomatic 16): TombstoneWireReader.message has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AndroidTombstoneSummary.kt"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1b4f6512cde723be26442277102ba7d25e5e0ad54a786edd917cd4aa4cf232"}},{"ruleId":"D1","level":"warning","message":{"text":"DownloadService.finalizePendingDownload (cyclomatic 16): DownloadService.finalizePendingDownload has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DownloadService.kt"},"region":{"startLine":1791}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05202e92c380cf066c9b4f1188819791bb014a8c09f97a36042ad2358ba3122"}},{"ruleId":"D1","level":"warning","message":{"text":"LiteRtLmChatServiceKt.splitLiteRtDocumentedChannelText (cyclomatic 16): LiteRtLmChatServiceKt.splitLiteRtDocumentedChannelText has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt"},"region":{"startLine":2408}}}],"partialFingerprints":{"codehealthFindingId/v1":"af70061f8a5ffb897d103a412f0003163cb321487b50612ae7baa4b6d961126e"}},{"ruleId":"D1","level":"warning","message":{"text":"LlamaClientService.streamLiteRtLmRequestSafely (cyclomatic 16): LlamaClientService.streamLiteRtLmRequestSafely has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: LlamaClientService.statusTextForToolCall (cyclomatic 33) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":2708}}}],"partialFingerprints":{"codehealthFindingId/v1":"61108aa1119501662584595cf9599ab27cfd999c0c65b8783d1e8f884471cce8"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeChatLocalServerStarter.ensureReady (cyclomatic 16): NativeChatLocalServerStarter.ensureReady has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatLocalServerStarter.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ab994b808994cc0a5873dd0869761e012a63414cddeb48adb656e8a72e3ad1"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeCalculatorParser.parseNumber (cyclomatic 16): NativeCalculatorParser.parseNumber has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This is NOT this file\u0027s highest cyclomatic complexity: NativeChatToolRuntime.parseOptionalNoteType (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":4160}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28f546300720ca825ce9a5ef1ce40ee518025834a87c2cb5dfd9118a454f2bc"}},{"ruleId":"D1","level":"warning","message":{"text":"PDFService.recognizePaintedTextBlocksWithLlama (cyclomatic 16): PDFService.recognizePaintedTextBlocksWithLlama has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":4028}}}],"partialFingerprints":{"codehealthFindingId/v1":"d673a347fad561ee0133a6384fbb65890d0c00bb15957e115a608618b82570ba"}},{"ruleId":"D1","level":"warning","message":{"text":"PDFTranslationJobService.startTextLayerPdfTranslationBatch (cyclomatic 16): PDFTranslationJobService.startTextLayerPdfTranslationBatch has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFTranslationJobService.kt"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d615d2bc7784c408a42331e0964b49da323307133417ec376f3f7cd26a6962"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteMasterServer.handleDownload (cyclomatic 16): RemoteMasterServer.handleDownload has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteMasterServer.kt"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ce52e148b724283722b5cfffdcbf2cd66e4779b2b08c2d61c65929c31a4019"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionService.postProcessOutputIfNeeded (cyclomatic 16): StableDiffusionService.postProcessOutputIfNeeded has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f538bf72d2f577b97cdb1ffb0e5eeb04e9c73585b9382e71bfce0ff077c17b8"}},{"ruleId":"D1","level":"warning","message":{"text":"TamaDeepDreamService.runDeepDream (cyclomatic 16): TamaDeepDreamService.runDeepDream has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/TamaDeepDreamService.kt"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fc5820b76b1c0f6be38395fed3a7f1cba5228516dcad4da800b798ee9dd5dcd"}},{"ruleId":"D1","level":"warning","message":{"text":"TamaGameEngine.usePotionLocked (cyclomatic 16): TamaGameEngine.usePotionLocked has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c61fce2cb80972333773fce6d062d428b666941ebc6e036fceadbacbd6a9d54"}},{"ruleId":"D1","level":"warning","message":{"text":"TamaGameEngine.startActivityLocked (cyclomatic 16): TamaGameEngine.startActivityLocked has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":1526}}}],"partialFingerprints":{"codehealthFindingId/v1":"baeff1e1f64d2f368546f2f6a35598d861db7978fb206bf2a2897028f1c33eea"}},{"ruleId":"D1","level":"warning","message":{"text":"TamaStudySessionSupport.advanceActiveSession (cyclomatic 16): TamaStudySessionSupport.advanceActiveSession has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaStudySessionSupport.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"2881311a8111ef6563e88dc50c0037d349f630addaa4d057f03d6a05e2de60c5"}},{"ruleId":"D1","level":"warning","message":{"text":"ShimejiOverlayService.configureTouch (cyclomatic 16): ShimejiOverlayService.configureTouch has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/shimeji/ShimejiOverlayService.kt"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"77791252b65163529dbfbb85a45d0fd60093ae7b4f7e1a2a3bceb86d77f1a516"}},{"ruleId":"D1","level":"warning","message":{"text":"PetTransferServer.upload (cyclomatic 16): PetTransferServer.upload has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferServer.kt"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"21512e63d1d664ab0a899c5b90c47bfa5ff9d0c637de3462eb796197723c0c0a"}},{"ruleId":"D1","level":"warning","message":{"text":"StoreScreenKt.StoreItemRow (cyclomatic 16): StoreScreenKt.StoreItemRow has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/StoreScreen.kt"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd32fb82823177cf53e44a564474edb774b6b460b411e111a0e08ae722fd7ee4"}},{"ruleId":"D1","level":"warning","message":{"text":"FarmActionController.batch (cyclomatic 16): FarmActionController.batch has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmActionController.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a34492d1dfbf122a25346bef2e0a38ff16123fff70d1c867a28526f2fd33ef6f"}},{"ruleId":"D1","level":"warning","message":{"text":"FarmPetBrain.step (cyclomatic 16): FarmPetBrain.step has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmAmbientModel.kt"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"14c18b9860f9e9fda8e40fa178013f2ecb8adc88bc31845f50248efb0a2e40ba"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChatListKt.AgentChatList (cyclomatic 16): AgentChatListKt.AgentChatList has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentChatList.kt"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e8e98046234f7f39b93d330f31e643e1b8313c77b2a08e6347f83b94e565a1"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessInlineLinksKt.parseHarnessInlineDestination (cyclomatic 16): HarnessInlineLinksKt.parseHarnessInlineDestination has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessInlineLinks.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50759ecee8e09778d3a689f2d8206c8a797d4c5cb6bb284250cf8028fb59fa0"}},{"ruleId":"D1","level":"warning","message":{"text":"HarnessScreenKt.HarnessSchemaFieldControl (cyclomatic 16): HarnessScreenKt.HarnessSchemaFieldControl has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt"},"region":{"startLine":1876}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61ae4f94be46f052f75649756d207e40e40f51fb32e847625048e95c7cd72cd"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeHarnessProviderCreationKt.validateNativeCustomProviderRequest (cyclomatic 16): NativeHarnessProviderCreationKt.validateNativeCustomProviderRequest has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessProviderCreation.kt"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbeb1ddc540d996347e31d958672984b2c9e7dd1fd012dd1e3afd794f0b24ff"}},{"ruleId":"D1","level":"warning","message":{"text":"AIHubScreenKt.ToolsTab (cyclomatic 16): AIHubScreenKt.ToolsTab has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/AIHubScreen.kt"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d9b54a24751288e066536e338a961c920b7e4c3629eea831d1e2f1e5c2f5d5"}},{"ruleId":"D1","level":"warning","message":{"text":"SDModelsScreenKt.SdInspectionEvidence (cyclomatic 16): SDModelsScreenKt.SdInspectionEvidence has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: SDModelsScreenKt.selectionTypeForModel (cyclomatic 24) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":3187}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ffc6eb16f21854e2c589a8900a7810a83fecfb4aa8a46423f7d88985f70c885"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatServerBannerKt.ChatServerBanner (cyclomatic 16): ChatServerBannerKt.ChatServerBanner has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatServerBanner.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6f948f7c8c06cddff0d4a6d221b8e3b21079f88d09ec3df99ec612f74f8029"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoRuntimeOptionsEditorKt.ComponentPathsEditor (cyclomatic 16): VideoRuntimeOptionsEditorKt.ComponentPathsEditor has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/VideoRuntimeOptionsEditor.kt"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"22bb390838e0ca01faa1a71252ab5f952b540ebd07f9facea9fa281940120f8c"}},{"ruleId":"D1","level":"warning","message":{"text":"DashboardKiwixCardKt.DashboardKiwixCard (cyclomatic 16): DashboardKiwixCardKt.DashboardKiwixCard has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/dashboard/DashboardKiwixCard.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0fb2b27dfc2fc574e8b3ae0f3f9ca9fec34ef346991121b31535deb1d8a9e4"}},{"ruleId":"D1","level":"warning","message":{"text":"DatasetProjectScreenKt.ChunksTab (cyclomatic 16): DatasetProjectScreenKt.ChunksTab has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa15430077500f98fcf7a5fa151cbf9d13a6a4dc80d44b0a8ad1a6efb509032"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelLibraryScreenKt.ModelBundleCard (cyclomatic 16): ModelLibraryScreenKt.ModelBundleCard has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This is NOT this file\u0027s highest cyclomatic complexity: ModelLibraryScreenKt.modelLibraryErrorResource (cyclomatic 43) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryScreen.kt"},"region":{"startLine":1250}}}],"partialFingerprints":{"codehealthFindingId/v1":"a832fe90d86497bf5185917b3cefd2d01ae87dc533f82986995be062869a853e"}},{"ruleId":"D1","level":"warning","message":{"text":"MainActivityKt.PetScreen (cyclomatic 16): MainActivityKt.PetScreen has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: MainActivityKt.WearCompanionApp (cyclomatic 20) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":2077}}}],"partialFingerprints":{"codehealthFindingId/v1":"d446a092edab3244855df169af609a42ce1025ee0707296e01a1d362e4132e69"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageGenScreenKt.ImageGenScreen (cognitive 738): ImageGenScreenKt.ImageGenScreen has cognitive complexity 738 (threshold 15). Drivers by points: if/else 327 (549 pts), boolean chains 93, match/switch 42 (64 pts), error handling 20 (32 pts) (nesting depth added 256). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"95982ca42afce8e2382d4ddc761c8c9ecda43e09ce90ec98482f596c6d4de58a"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.sendMessage (cognitive 511): AgentService.sendMessage has cognitive complexity 511 (threshold 15). Drivers by points: if/else 287 (402 pts), boolean chains 83, match/switch 10 (15 pts), error handling 3 (7 pts), loops 2 (4 pts) (nesting depth added 126). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":8199}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b781b04dfcecf70ea8c1681da91452d069890a455f0fd7c184acff7d4cd850"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.executeToolCall (cognitive 467): AgentService.executeToolCall has cognitive complexity 467 (threshold 15). Drivers by points: if/else 218 (375 pts), boolean chains 70, error handling 6 (14 pts), match/switch 3 (6 pts), loops 1 (2 pts) (nesting depth added 169). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":11014}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c7aaf76d3e087d35888d9c634d1734ccd4f17c752703fcd1f5501bca242fdc"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaService.startServer (cognitive 403): LlamaService.startServer has cognitive complexity 403 (threshold 15). Drivers by points: if/else 222 (294 pts), boolean chains 75, match/switch 22 (27 pts), error handling 3 (5 pts), loops 2 (nesting depth added 79). 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":"app/src/main/java/com/example/llamadroid/service/LlamaService.kt"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb529b22f63daa42b1049b81775188c49aac74368369354f1b16b42d129fe51c"}},{"ruleId":"D2","level":"warning","message":{"text":"MasterModeScreenKt.RemoteMasterCard (cognitive 359): MasterModeScreenKt.RemoteMasterCard has cognitive complexity 359 (threshold 15). Drivers by points: if/else 105 (252 pts), error handling 20 (59 pts), loops 6 (20 pts), boolean chains 18, match/switch 3 (10 pts) (nesting depth added 207). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":3845}}}],"partialFingerprints":{"codehealthFindingId/v1":"d34a2fb280fec283fe05fa0a567c1dd4d8d84136e657c85d8c5fe441ae17c851"}},{"ruleId":"D2","level":"warning","message":{"text":"MasterModeScreenKt.MasterModeScreen (cognitive 358): MasterModeScreenKt.MasterModeScreen has cognitive complexity 358 (threshold 15). Drivers by points: if/else 181 (277 pts), boolean chains 52, match/switch 18 (27 pts), error handling 2 (nesting depth added 105). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf2785ea63307018d6c2e8a8374b0a5d5e204895d5963222ee4d33526afa7ba"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaChatScreenKt.LlamaChatScreen (cognitive 209): LlamaChatScreenKt.LlamaChatScreen has cognitive complexity 209 (threshold 15). Drivers by points: if/else 121 (147 pts), boolean chains 48, error handling 6 (11 pts), match/switch 2, loops 1 (nesting depth added 31). 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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/LlamaChatScreen.kt"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"a818944df33d19028982be5203ecd5a9f9c9cc511275cddcc6c346d8337ba04c"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentWorkspaceScreenKt.AgentWorkspaceScreen (cognitive 205): AgentWorkspaceScreenKt.AgentWorkspaceScreen has cognitive complexity 205 (threshold 15). Drivers by points: if/else 108 (157 pts), boolean chains 27, match/switch 5 (11 pts), error handling 4 (10 pts) (nesting depth added 61). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"85cb71ece0df577687d898df7c67bf9f00318ff6f2c36386fcebbbbefbf4a965"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFToolboxScreenKt.PDFToolboxScreen (cognitive 188): PDFToolboxScreenKt.PDFToolboxScreen has cognitive complexity 188 (threshold 15). Drivers by points: if/else 61 (161 pts), boolean chains 16, error handling 4 (6 pts), match/switch 2 (5 pts) (nesting depth added 105). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8788cb30654eae0cebf45b42afbe51cb283df14b31c618fad3658d943f0542"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaScreenKt.TamaScreen (cognitive 181): TamaScreenKt.TamaScreen has cognitive complexity 181 (threshold 15). Drivers by points: if/else 96 (137 pts), boolean chains 30, error handling 3 (6 pts), match/switch 5 (6 pts), loops 2 (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"7227a80a3f552247c52e67a06db626d7a2b2c95cc7a138d78742698dfcb289c2"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaServerChatService.performChatWithToolsStreaming (cognitive 171): LlamaServerChatService.performChatWithToolsStreaming has cognitive complexity 171 (threshold 15). Drivers by points: if/else 50 (140 pts), match/switch 4 (11 pts), error handling 4 (7 pts), loops 3 (7 pts), boolean chains 6 (nesting depth added 104). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerChatService.kt"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"387f63e7ef79a2841d06c5dfd3914b6d1bf4cc5acb9032c0251ac20baf51195d"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadService.startDownloadInternal (cognitive 156): DownloadService.startDownloadInternal has cognitive complexity 156 (threshold 15). Drivers by points: if/else 70 (123 pts), error handling 6 (16 pts), boolean chains 15, match/switch 1 (2 pts) (nesting depth added 64). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DownloadService.kt"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b61d8f55636527c2deb44e92751ad0faf3fd058eafbfd8fea47103d33050a57"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowsScreenKt.WorkflowsScreen (cognitive 141): WorkflowsScreenKt.WorkflowsScreen has cognitive complexity 141 (threshold 15). Drivers by points: if/else 62 (84 pts), error handling 8 (22 pts), boolean chains 19, match/switch 8 (13 pts), loops 2 (3 pts) (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"fadcadbd0d2055e743435b87858ea9ca20e28b37abdae670652a4d1757850b53"}},{"ruleId":"D2","level":"warning","message":{"text":"OnnxImageGenScreenKt.OnnxImageGenScreen (cognitive 140): OnnxImageGenScreenKt.OnnxImageGenScreen has cognitive complexity 140 (threshold 15). Drivers by points: if/else 56 (97 pts), boolean chains 24, match/switch 9 (19 pts) (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbca83c456bb0c73924049f2f9b1a6d32a6cf40c1f8dfcc984c183bf77621590"}},{"ruleId":"D2","level":"warning","message":{"text":"SDModelsScreenKt.InstalledSDModelsTab (cognitive 140): SDModelsScreenKt.InstalledSDModelsTab has cognitive complexity 140 (threshold 15). Drivers by points: if/else 66 (105 pts), boolean chains 31, error handling 2, match/switch 1 (2 pts) (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4387f0dd46328248068efb38fa610ea223ffcc63c928a307367f1a0551f0692"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessAgentRouteKt.HarnessCapturedAgentRoute (cognitive 139): HarnessAgentRouteKt.HarnessCapturedAgentRoute has cognitive complexity 139 (threshold 15). Drivers by points: if/else 78 (92 pts), error handling 17 (21 pts), boolean chains 20, match/switch 3 (6 pts) (nesting depth added 21). 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":"app/src/main/java/com/example/llamadroid/harness/HarnessAgentRoute.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eca1a5e7cf95506145b1f437c8e02335e95f19ba146bce9507854489bc131e3"}},{"ruleId":"D2","level":"warning","message":{"text":"SdDistributedScreensKt.SdDistributedMasterScreen (cognitive 139): SdDistributedScreensKt.SdDistributedMasterScreen has cognitive complexity 139 (threshold 15). Drivers by points: if/else 90 (105 pts), boolean chains 25, match/switch 5, error handling 4 (nesting depth added 15). 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":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"836fca6ad7926cdf67d57fc6105a6ad8ffb0c5f37c214dd2b71beea7f8e129c8"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentRuntimeProfileControlsKt.AgentRuntimeProfileControls (cognitive 134): AgentRuntimeProfileControlsKt.AgentRuntimeProfileControls has cognitive complexity 134 (threshold 15). Drivers by points: if/else 62 (95 pts), match/switch 14 (20 pts), boolean chains 19 (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentRuntimeProfileControls.kt"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4aa83b65cd7594fef1896dfcb96307dd96915f94a0c6b4bdfc05fecba9b0d72"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoGenScreenKt.VideoGenScreen (cognitive 131): VideoGenScreenKt.VideoGenScreen has cognitive complexity 131 (threshold 15). Drivers by points: if/else 69 (88 pts), boolean chains 31, error handling 6, match/switch 5 (6 pts) (nesting depth added 20). 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":"app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"4668156e599f1263f11add022885a1c0191d20049cae54ec91b85f4a3b9c02ca"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaService.onStartCommand (cognitive 124): LlamaService.onStartCommand has cognitive complexity 124 (threshold 15). Drivers by points: if/else 80 (120 pts), boolean chains 2, error handling 1, match/switch 1 (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaService.kt"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8078564a6cfcfead9a9594313ab13a6071d45271940bf88bede45a61a579f2f"}},{"ruleId":"D2","level":"warning","message":{"text":"LLMSettingsScreenKt.LlmSettingsContent (cognitive 121): LLMSettingsScreenKt.LlmSettingsContent has cognitive complexity 121 (threshold 15). Drivers by points: if/else 66 (100 pts), match/switch 6 (13 pts), boolean chains 8 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f361b8b5997312cedb51850a734093af673a9d9ae934a9d85ad4ce201c249d"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteServerFormKt.RemoteServerForm (cognitive 114): RemoteServerFormKt.RemoteServerForm has cognitive complexity 114 (threshold 15). Drivers by points: if/else 76 (93 pts), boolean chains 20, match/switch 1 (nesting depth added 17). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/RemoteServerForm.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d31023bdc9e5ded95182a274d8d48d936fdd7394dfb1655d3707f3a2ca83fb"}},{"ruleId":"D2","level":"warning","message":{"text":"Downloader.download (cognitive 113): Downloader.download has cognitive complexity 113 (threshold 15). Drivers by points: if/else 46 (89 pts), boolean chains 15, error handling 4 (6 pts), loops 2 (3 pts) (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/Downloader.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec73c8b03350568642a605360d2f232e35211c57d741f67fd7be89255d6290f"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.validateToolCall (cognitive 111): AgentService.validateToolCall has cognitive complexity 111 (threshold 15). Drivers by points: if/else 53 (75 pts), boolean chains 27, match/switch 7 (9 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":16676}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e1f4cc2e1c8a3bf8e2d06de4128a32ff607c068496d25404e5e3ac80cce40f"}},{"ruleId":"D2","level":"warning","message":{"text":"BinaryRepository.findTieredBinary (cognitive 105): BinaryRepository.findTieredBinary has cognitive complexity 105 (threshold 15). Drivers by points: if/else 25 (68 pts), loops 12 (32 pts), error handling 2 (3 pts), boolean chains 2 (nesting depth added 64). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"da0a84048a46ddf59b35a4830c849a37315297fdf4a934417dd409538ecaeed9"}},{"ruleId":"D2","level":"warning","message":{"text":"AdventureGateScreenKt.AdventureGateBattleView (cognitive 105): AdventureGateScreenKt.AdventureGateBattleView has cognitive complexity 105 (threshold 15). Drivers by points: if/else 62 (81 pts), boolean chains 14, match/switch 7 (10 pts) (nesting depth added 22). 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":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":2657}}}],"partialFingerprints":{"codehealthFindingId/v1":"846ffca5a7a4086cd5b8949e70c3450f44027ab5d7c4b1199e10181ee738d8f6"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentDialogsKt.AgentSettingsDialog (cognitive 103): AgentDialogsKt.AgentSettingsDialog has cognitive complexity 103 (threshold 15). Drivers by points: if/else 49 (73 pts), match/switch 7 (16 pts), boolean chains 14 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"2488f78771b7f2145807a7d4cf907cfb9983f177900009047b48be048a5f2f3f"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioTranscriptionScreenKt.AudioTranscriptionScreen (cognitive 102): AudioTranscriptionScreenKt.AudioTranscriptionScreen has cognitive complexity 102 (threshold 15). Drivers by points: if/else 59 (68 pts), error handling 7 (18 pts), boolean chains 8, match/switch 4 (6 pts), loops 1 (2 pts) (nesting depth added 23). 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":"app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"36aad92c1393068d6a6a3bd84cb75d83eb08d8dcd801e8af69e83295bb91552c"}},{"ruleId":"D2","level":"warning","message":{"text":"NotesManagerScreenKt.NotesManagerScreen (cognitive 101): NotesManagerScreenKt.NotesManagerScreen has cognitive complexity 101 (threshold 15). Drivers by points: if/else 61 (83 pts), boolean chains 12, error handling 2 (4 pts), match/switch 2 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc4b229a62fb7d0595415d7b6ed560b9b4a3c6e3d50af784bc73769433ea98e"}},{"ruleId":"D2","level":"warning","message":{"text":"BundleItemBuilderKt.buildBundleItems (cognitive 100): BundleItemBuilderKt.buildBundleItems has cognitive complexity 100 (threshold 15). Drivers by points: if/else 55 (78 pts), boolean chains 20, match/switch 2 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/BundleItemBuilder.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"e259addc7c4f1d0cebc7ba92b32e08f28f2d240949a13dba3413bbd15638af30"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessScreenKt.NativeHarnessScreen (cognitive 99): HarnessScreenKt.NativeHarnessScreen has cognitive complexity 99 (threshold 15). Drivers by points: if/else 55 (66 pts), boolean chains 27, match/switch 5 (6 pts) (nesting depth added 12). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bffea155a0bb398084b9651ae3544ecc240adde656aaa90050c1dfc7856ddd4"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowsScreenKt.MangaTranslationWorkflowContent (cognitive 98): WorkflowsScreenKt.MangaTranslationWorkflowContent has cognitive complexity 98 (threshold 15). Drivers by points: if/else 59 (83 pts), boolean chains 9, match/switch 2 (6 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":1497}}}],"partialFingerprints":{"codehealthFindingId/v1":"45fec7ad2bc010759bdc8bbe716977a45f8c8a35ee9770bad74079976defb7b9"}},{"ruleId":"D2","level":"warning","message":{"text":"TermuxScreenKt.TermuxScreen (cognitive 96): TermuxScreenKt.TermuxScreen has cognitive complexity 96 (threshold 15). Drivers by points: if/else 55 (77 pts), boolean chains 7, loops 5 (7 pts), match/switch 3, error handling 1 (2 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"be4a1a2b7eedf3901c23c5e3727e4ba34ba07185c5f40437575a713ba788423d"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChatListKt.ChatMessageBubble (cognitive 95): AgentChatListKt.ChatMessageBubble has cognitive complexity 95 (threshold 15). Drivers by points: if/else 57 (77 pts), boolean chains 10, match/switch 5 (8 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentChatList.kt"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7203eb793b3fcea60dd7782e3d1e375089f1d480e5e90cd45ee8f7c687c96dd"}},{"ruleId":"D2","level":"warning","message":{"text":"ArcadeScreenKt.ArcadeScreen (cognitive 93): ArcadeScreenKt.ArcadeScreen has cognitive complexity 93 (threshold 15). Drivers by points: if/else 53 (62 pts), boolean chains 14, error handling 8, match/switch 5 (7 pts), loops 2 (nesting depth added 11). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e242323fff21856998a60b8eec094a25c450482d3a14c460218e2c907dc7a7"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessOriginalWebViewKt.HarnessOriginalWebView (cognitive 90): HarnessOriginalWebViewKt.HarnessOriginalWebView has cognitive complexity 90 (threshold 15). Drivers by points: if/else 45 (65 pts), boolean chains 17, match/switch 3 (8 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessOriginalWebView.kt"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"0659292005887aeaed83201cfc92167ecf27a3ef870013b878efde3ac55da4ca"}},{"ruleId":"D2","level":"warning","message":{"text":"SdCliSupportKt.buildSdCommandArgs (cognitive 90): SdCliSupportKt.buildSdCommandArgs has cognitive complexity 90 (threshold 15). Drivers by points: if/else 51 (66 pts), boolean chains 20, match/switch 3 (4 pts) (nesting depth added 16). 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":"app/src/main/java/com/example/llamadroid/service/SdCliSupport.kt"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"192f2cbd12dc50cfb6da3c08b561eeca0410142adb3380132edce211780ce7be"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessRuntimeTransferKt.HarnessRuntimeTransferDialog (cognitive 87): HarnessRuntimeTransferKt.HarnessRuntimeTransferDialog has cognitive complexity 87 (threshold 15). Drivers by points: if/else 33 (53 pts), boolean chains 29, match/switch 4 (5 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeTransfer.kt"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04e41cb5f4dc3b7b013728de9b0fc8ef9ea359df8fe55d7ce4929419f385b50"}},{"ruleId":"D2","level":"warning","message":{"text":"KiwixCatalogClient.parseOpdsXml (cognitive 84): KiwixCatalogClient.parseOpdsXml has cognitive complexity 84 (threshold 15). Drivers by points: if/else 13 (55 pts), match/switch 4 (13 pts), loops 3 (11 pts), boolean chains 4, error handling 1 (nesting depth added 59). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/KiwixCatalogClient.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a70d89c14eb22e0dad78c95138b61032fa0c2134f6e3f619b1c9f80a0ea181"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessTurnActions.copyAssistantTurn (cognitive 84): NativeHarnessTurnActions.copyAssistantTurn has cognitive complexity 84 (threshold 15). Drivers by points: if/else 25 (74 pts), boolean chains 7, loops 2 (3 pts) (nesting depth added 50). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessTurnActions.kt"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"75bbd59366092c2ceef1a232d2ce359dc289d46c2d4d8fc54e88205a0cbfa142"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioLibraryScreenKt.AudioLibraryScreen (cognitive 84): AudioLibraryScreenKt.AudioLibraryScreen has cognitive complexity 84 (threshold 15). Drivers by points: if/else 45 (52 pts), error handling 15 (23 pts), boolean chains 7, match/switch 1 (2 pts) (nesting depth added 16). 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":"app/src/main/java/com/example/llamadroid/ui/audio/library/AudioLibraryScreen.kt"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e432089bf5857c9003429021a3b225eea3eb539da436147cfe4543cefaeb43"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelManagerScreenKt.InstalledTab (cognitive 82): ModelManagerScreenKt.InstalledTab has cognitive complexity 82 (threshold 15). Drivers by points: if/else 35 (55 pts), boolean chains 12, match/switch 4 (10 pts), error handling 3 (5 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fafd228f81265df5348a9ee55950f40ea8b108cd187a4c1debb902d3b418cae"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoCommandBuilderKt.buildVideoCommandArgs (cognitive 81): VideoCommandBuilderKt.buildVideoCommandArgs has cognitive complexity 81 (threshold 15). Drivers by points: if/else 47 (58 pts), boolean chains 22, match/switch 1 (nesting depth added 11). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoCommandBuilder.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33bb843a6f9596574ab13604aa64b55f663dfc63c8da1023919016f27f2f582"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoInterpolationScreenKt.VideoInterpolationScreen (cognitive 81): VideoInterpolationScreenKt.VideoInterpolationScreen has cognitive complexity 81 (threshold 15). Drivers by points: if/else 44 (69 pts), boolean chains 11, error handling 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoInterpolationScreen.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e2c9054ccf4ada0ca4ce96f5c804cb65c95cc6c2529e3555f85e406f50eaaa"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessTerminalScreenUiKt.HarnessTerminalScreen (cognitive 80): HarnessTerminalScreenUiKt.HarnessTerminalScreen has cognitive complexity 80 (threshold 15). Drivers by points: if/else 43 (56 pts), match/switch 7 (14 pts), boolean chains 10 (nesting depth added 20). 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":"app/src/main/java/com/example/llamadroid/harness/HarnessTerminalScreenUi.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"163944e274f8ad36b783718474fb85a12486d6582f0e6a8f44a9ebd1b36a702f"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaCanonicalActions.request (cognitive 78): TamaCanonicalActions.request has cognitive complexity 78 (threshold 15). Drivers by points: if/else 31 (57 pts), boolean chains 15, match/switch 3 (4 pts), error handling 2 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaCanonicalActions.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc2643b7dcf7ef1358a962f333c26119fbf4f0479f0481b6923d0f9858e7117"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoSumupScreenKt.VideoSumupScreen (cognitive 76): VideoSumupScreenKt.VideoSumupScreen has cognitive complexity 76 (threshold 15). Drivers by points: if/else 41 (60 pts), boolean chains 14, error handling 1, match/switch 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoSumupScreen.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f2d3754fb68733d41393f1fdab53069751bd11677f6367d2e654f25e2f8266d"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeChatVideoSupportKt.prepareNativeChatVideoPayloads (cognitive 74): NativeChatVideoSupportKt.prepareNativeChatVideoPayloads has cognitive complexity 74 (threshold 15). Drivers by points: if/else 27 (46 pts), boolean chains 14, error handling 5 (13 pts), match/switch 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/chat/NativeChatVideoSupport.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92197ae1d2400871a15fc44fe437a9e7cec3e14b7eb3631682ec5cb263aad33"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentDialogsKt.AgentGlobalOverrideCard (cognitive 74): AgentDialogsKt.AgentGlobalOverrideCard has cognitive complexity 74 (threshold 15). Drivers by points: if/else 54 (63 pts), match/switch 5 (7 pts), boolean chains 4 (nesting depth added 11). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":2695}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f112720aab87bfc0b4842a621411c9bda86b89407099a1befc1c40c83297ccb"}},{"ruleId":"D2","level":"warning","message":{"text":"MangaPaintedMaskEditorKt.PaintedMaskEditorContent (cognitive 74): MangaPaintedMaskEditorKt.PaintedMaskEditorContent has cognitive complexity 74 (threshold 15). Drivers by points: if/else 31 (45 pts), match/switch 6 (14 pts), boolean chains 13, loops 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/MangaPaintedMaskEditor.kt"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"5753b07e8f3d4bb0d0ca73f5fd12cf527a9cd7c139cdde02b00a8ea8cb6bb309"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaClientService.streamNativeToolResponse (cognitive 73): LlamaClientService.streamNativeToolResponse has cognitive complexity 73 (threshold 15). Drivers by points: if/else 47 (56 pts), boolean chains 13, error handling 3, loops 1 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":1908}}}],"partialFingerprints":{"codehealthFindingId/v1":"86748bc405d1f1ba14ffbb6ba46610bfbbe51abffbda045789d6ab414114ece4"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFService.recognizeBitmapWithLlamaOcr (cognitive 72): PDFService.recognizeBitmapWithLlamaOcr has cognitive complexity 72 (threshold 15). Drivers by points: if/else 35 (63 pts), boolean chains 6, error handling 2, match/switch 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":3461}}}],"partialFingerprints":{"codehealthFindingId/v1":"adcfa3076917c40b8541753c9f387e55f3750b55f5383546d3537314a63f667a"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeChatToolRuntime.executeToolCall (cognitive 71): NativeChatToolRuntime.executeToolCall has cognitive complexity 71 (threshold 15). Drivers by points: boolean chains 43, if/else 17 (24 pts), error handling 2, match/switch 2 (nesting depth added 7). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":1507}}}],"partialFingerprints":{"codehealthFindingId/v1":"b34f0617b4869ed17fe39e6d9bd098259c1a38db73f90203b4da628dc9037146"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.getAgentTools (cognitive 70): AgentService.getAgentTools has cognitive complexity 70 (threshold 15). Drivers by points: if/else 38 (52 pts), boolean chains 16, error handling 1, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":17281}}}],"partialFingerprints":{"codehealthFindingId/v1":"51924a1ab428cbe29975ceee3fd2ef059483014537bd41c56739e9a126c412ff"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatMessageItemKt.LlamaMessageItem (cognitive 68): ChatMessageItemKt.LlamaMessageItem has cognitive complexity 68 (threshold 15). Drivers by points: if/else 39 (57 pts), boolean chains 10, match/switch 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageItem.kt"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73f45706736ccf691181303d5b91deb08972813ba5aa59ffcca908c27daf511"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaClientService.startGeneration (cognitive 66): LlamaClientService.startGeneration has cognitive complexity 66 (threshold 15). Drivers by points: if/else 35 (45 pts), boolean chains 19, error handling 2 (nesting depth added 10). 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":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45b188febd16cebe3ded0d0b400767788d8e99a50c4a23b4aef7ef8c6f8eeba"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaChatListScreenKt.LlamaChatListContent (cognitive 66): LlamaChatListScreenKt.LlamaChatListContent has cognitive complexity 66 (threshold 15). Drivers by points: if/else 42 (59 pts), match/switch 2 (3 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaChatListScreen.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c8d6598052c40d17e737eb0664de618c785abb66442e9de9fea8d7efdf05cec"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteSummaryBackendEditorKt.RemoteSummaryBackendEditor (cognitive 66): RemoteSummaryBackendEditorKt.RemoteSummaryBackendEditor has cognitive complexity 66 (threshold 15). Drivers by points: if/else 38 (50 pts), boolean chains 8, match/switch 5 (8 pts) (nesting depth added 15). 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":"app/src/main/java/com/example/llamadroid/ui/components/RemoteSummaryBackendEditor.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a150274c80951cd30efca0e514e17706af29107651f8bd53395e527b48a7e99"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcessController.start (cognitive 65): ProcessController.start has cognitive complexity 65 (threshold 15). Drivers by points: if/else 38 (54 pts), boolean chains 7, loops 2 (3 pts), error handling 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ProcessController.kt"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf66b681ed1a956e7cfba1e98503028174b7e019a2a69e0d5f8117e63bfc5c6f"}},{"ruleId":"D2","level":"warning","message":{"text":"FarmDroneDataKt.runPlantingDroneTick (cognitive 65): FarmDroneDataKt.runPlantingDroneTick has cognitive complexity 65 (threshold 15). Drivers by points: if/else 30 (46 pts), boolean chains 13, match/switch 2 (4 pts), loops 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/data/FarmDroneData.kt"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c571f0ac4041b07b8010ed7a39ad94d3e57aaa43a2a8625093e35043f02db2"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaChatScreenKt.TamaChatBubble (cognitive 65): TamaChatScreenKt.TamaChatBubble has cognitive complexity 65 (threshold 15). Drivers by points: if/else 42 (53 pts), boolean chains 8, match/switch 2 (4 pts) (nesting depth added 13). 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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f12f809a2a48be127c81e10e03ac93dc90ac35a75dcd0b50ba9da5a1f9a205"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaNotificationReceiver.handleAlarm (cognitive 64): TamaNotificationReceiver.handleAlarm has cognitive complexity 64 (threshold 15). Drivers by points: if/else 31 (55 pts), boolean chains 8, match/switch 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/notifications/TamaNotificationReceiver.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"41012d9bf71fd0bb6a90b25744c024f91368c1329d9b30bda6ec04891fac9bfd"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelSourceRepository.startBundleDownloadQueue (cognitive 63): ModelSourceRepository.startBundleDownloadQueue has cognitive complexity 63 (threshold 15). Drivers by points: if/else 25 (45 pts), boolean chains 17, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4bd74f5cc9015b92277ed51c1691c92e0091220a328c8ba486a10703458c0e"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessRuntimeController.runStart (cognitive 63): HarnessRuntimeController.runStart has cognitive complexity 63 (threshold 15). Drivers by points: if/else 34 (59 pts), boolean chains 3, error handling 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87f31c96aada3d74fb0532c9907bbf04939b8d8e33eec53c6be88c003f04336"}},{"ruleId":"D2","level":"warning","message":{"text":"OllamaService.performChatWithToolsStreaming (cognitive 63): OllamaService.performChatWithToolsStreaming has cognitive complexity 63 (threshold 15). Drivers by points: if/else 17 (53 pts), loops 3 (7 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 41). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/OllamaService.kt"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2edc0e83f7750cae06823e9e04ea4bd883b0d3c06267455afcbcd6deffdf2d1"}},{"ruleId":"D2","level":"warning","message":{"text":"AdventureGateCombatEngine.resolveSpeedRound (cognitive 63): AdventureGateCombatEngine.resolveSpeedRound has cognitive complexity 63 (threshold 15). Drivers by points: if/else 23 (45 pts), match/switch 4 (12 pts), boolean chains 5, loops 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateCombatEngine.kt"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f7247e277359c997bcd2e39e863292f0788775ae0f0f108840173f2b2623c14"}},{"ruleId":"D2","level":"warning","message":{"text":"LegacyUpscaleScreenKt.LegacyUpscaleScreen (cognitive 63): LegacyUpscaleScreenKt.LegacyUpscaleScreen has cognitive complexity 63 (threshold 15). Drivers by points: if/else 34 (55 pts), boolean chains 7, match/switch 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"891f05906fffcb54409266d506c439b4a86ef483a368cb92f1d6a546e39ca829"}},{"ruleId":"D2","level":"warning","message":{"text":"GeneralSettingsScreenKt.GeneralSettingsScreen (cognitive 62): GeneralSettingsScreenKt.GeneralSettingsScreen has cognitive complexity 62 (threshold 15). Drivers by points: if/else 41 (45 pts), boolean chains 15, match/switch 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"84254d9c46e40f9fa8076b7666dc64e8f926b90ed8c60943737fc72bafc12ded"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessPluginActions.install (cognitive 61): NativeHarnessPluginActions.install has cognitive complexity 61 (threshold 15). Drivers by points: if/else 33 (51 pts), boolean chains 5, match/switch 2 (5 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessPluginActions.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f3b821b2f23efeb088a85a0f4dae34304b339e68338094edac4c5eb24bc566"}},{"ruleId":"D2","level":"warning","message":{"text":"app.renderChatControls (cognitive 61): app.renderChatControls has cognitive complexity 61 (threshold 15). Drivers by points: ternaries 31 (35 pts), boolean chains 26 (nesting depth added 4). Of this number, 55 points are the body\u0027s own statements and 6 belong to 3 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/ai_servers_webui/app.js"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbee8c9d4c1432547466d40b1c5066dd2d3c3e2b161674134a58692d28522609"}},{"ruleId":"D2","level":"warning","message":{"text":"MusicWorkspaceKt.MusicWorkspace (cognitive 60): MusicWorkspaceKt.MusicWorkspace has cognitive complexity 60 (threshold 15). Drivers by points: if/else 30 (42 pts), boolean chains 12, match/switch 3 (6 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/music/MusicWorkspace.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa1b9a47997728441be0ab45b8407e8ef6ca56043830901fcba9345c6af920b"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoRecognitionSummaryService.run (cognitive 59): VideoRecognitionSummaryService.run has cognitive complexity 59 (threshold 15). Drivers by points: if/else 31 (41 pts), boolean chains 13, error handling 3, loops 1, match/switch 1 (nesting depth added 10). 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":"app/src/main/java/com/example/llamadroid/service/VideoRecognitionSummaryService.kt"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f03b28ea1b2688e6e8863be7cf3eaa18fd897df4a00b94e0d942364c3c877a"}},{"ruleId":"D2","level":"warning","message":{"text":"TermuxFileManagerScreenKt.TermuxFileManagerScreen (cognitive 58): TermuxFileManagerScreenKt.TermuxFileManagerScreen has cognitive complexity 58 (threshold 15). Drivers by points: if/else 39 (46 pts), boolean chains 8, loops 2, error handling 1, match/switch 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/TermuxFileManagerScreen.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc0639b17fb926be7e3f2458308408ac4bd0dc94884c73def4fd77d0bfc77d6"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelArtifactRecognizer.inspect (cognitive 57): ModelArtifactRecognizer.inspect has cognitive complexity 57 (threshold 15). Drivers by points: if/else 31 (52 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactRecognizer.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"498e07a656ad56e9435ee72bbeba6e353f8d1a9a76883bb7e34a9cc90b48e04c"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFSummaryScreenKt.PDFSummaryScreen (cognitive 57): PDFSummaryScreenKt.PDFSummaryScreen has cognitive complexity 57 (threshold 15). Drivers by points: if/else 29 (42 pts), boolean chains 9, match/switch 5, error handling 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFSummaryScreen.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e3f5d6e080b2f312bfe0c5f801063e54ba91e1c98df6f2f2bbc123b7572d48"}},{"ruleId":"D2","level":"warning","message":{"text":"WorldFarmMaintenance.complete (cognitive 56): WorldFarmMaintenance.complete has cognitive complexity 56 (threshold 15). Drivers by points: if/else 32 (43 pts), boolean chains 8, match/switch 3 (5 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/WorldFarmMaintenance.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ac8df7813081d91d06ca032c249fc134fb756fa81e6007ed80cbfb7624e836"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowsScreenKt.Txt2ImgUpscaleWorkflowContent (cognitive 56): WorkflowsScreenKt.Txt2ImgUpscaleWorkflowContent has cognitive complexity 56 (threshold 15). Drivers by points: if/else 31 (40 pts), match/switch 4 (7 pts), boolean chains 5, error handling 2 (4 pts) (nesting depth added 14). 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":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":5833}}}],"partialFingerprints":{"codehealthFindingId/v1":"322cd08014f89fd21a07a09193b5f861ae2da63157ccf0e2c2af5714650177ff"}},{"ruleId":"D2","level":"warning","message":{"text":"SdArtifactInspector.classifyEvidence (cognitive 55): SdArtifactInspector.classifyEvidence has cognitive complexity 55 (threshold 15). Drivers by points: boolean chains 41, if/else 7, match/switch 7. The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdArtifactInspector.kt"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"830913605bcf749e28d2bf392bd0058df1322f5e42bef97950d932e6c9088890"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaClientService.streamLlamaServerResponse (cognitive 55): LlamaClientService.streamLlamaServerResponse has cognitive complexity 55 (threshold 15). Drivers by points: if/else 23 (37 pts), error handling 5 (9 pts), boolean chains 8, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e3de285a4e98c12a8e9dc89a10bcf35c982f2e97653480caa59c2b42eae714b"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessController.selectModel (cognitive 54): NativeHarnessController.selectModel has cognitive complexity 54 (threshold 15). Drivers by points: if/else 27 (42 pts), boolean chains 7, error handling 2 (4 pts), match/switch 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt"},"region":{"startLine":1406}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c0a53007b8f5a8710405345b79f8ed0ec5cbecf876eb558057b119677c8020"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessSettingsSchemaKt.normalizeHarnessSettingsSchema (cognitive 54): NativeHarnessSettingsSchemaKt.normalizeHarnessSettingsSchema has cognitive complexity 54 (threshold 15). Drivers by points: if/else 27 (36 pts), boolean chains 14, match/switch 3 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessSettingsSchema.kt"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4cb0bb71a2e5dd0e1aaae6b16163ba41bf9daf44db34068d79f81d1c02c95ac"}},{"ruleId":"D2","level":"warning","message":{"text":"AdventureGateScreenKt.AdventureGateScreen (cognitive 53): AdventureGateScreenKt.AdventureGateScreen has cognitive complexity 53 (threshold 15). Drivers by points: if/else 27 (34 pts), boolean chains 15, loops 2, match/switch 2 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"1778f4570879bbb9fa744bfcd926ce9adcd6cae4f794901d42544d17252558ff"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaChatScreenKt.TamaChatScreen (cognitive 53): TamaChatScreenKt.TamaChatScreen has cognitive complexity 53 (threshold 15). Drivers by points: if/else 38 (39 pts), boolean chains 10, error handling 2, loops 1, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b0eddcef791c00b61f6b63d88a44b48fab625a52080aba37713cb85a12e4d8"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeChatToolAwarenessMessagesKt.nativeChatToolAwarenessMessages (cognitive 52): NativeChatToolAwarenessMessagesKt.nativeChatToolAwarenessMessages has cognitive complexity 52 (threshold 15). Drivers by points: if/else 28 (39 pts), boolean chains 7, match/switch 3 (6 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/chat/NativeChatToolAwarenessMessages.kt"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a8162aedf6f9dad11c879eb2036080d380e44aeb5f4906184dc81e49d83b61"}},{"ruleId":"D2","level":"warning","message":{"text":"FarmScreenKt.FarmScreen (cognitive 52): FarmScreenKt.FarmScreen has cognitive complexity 52 (threshold 15). Drivers by points: if/else 31 (37 pts), boolean chains 11, loops 2, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmScreen.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c8bb4a070646001f40509da4f58310c0fa29fea77daf75cb3bc77fec5122e2"}},{"ruleId":"D2","level":"warning","message":{"text":"FastsdGalleryScreenKt.FastsdGalleryScreen (cognitive 52): FastsdGalleryScreenKt.FastsdGalleryScreen has cognitive complexity 52 (threshold 15). Drivers by points: if/else 26 (36 pts), error handling 8 (12 pts), boolean chains 3, match/switch 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/FastsdGalleryScreen.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"2458d823b89ba1bcd5e0319913504151e745a90a697b59a66fbb1a64664ef717"}},{"ruleId":"D2","level":"warning","message":{"text":"OnnxBackgroundRemovalScreenKt.OnnxBackgroundRemovalScreen (cognitive 52): OnnxBackgroundRemovalScreenKt.OnnxBackgroundRemovalScreen has cognitive complexity 52 (threshold 15). Drivers by points: if/else 23 (36 pts), match/switch 4 (11 pts), boolean chains 4, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxBackgroundRemovalScreen.kt"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7da38074cafb9132d43bf13481b1c65f10471209255efc5be31450325837718"}},{"ruleId":"D2","level":"warning","message":{"text":"AdventureScreenKt.AdventureScreen (cognitive 51): AdventureScreenKt.AdventureScreen has cognitive complexity 51 (threshold 15). Drivers by points: if/else 28 (38 pts), boolean chains 12, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureScreen.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"faeca8b4ddcbbfbb951b3cd03f37783c71bf178cbd566ddec7397837fac49bd2"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentWorkspaceScreenKt.WorkspaceTerminalDialog (cognitive 51): AgentWorkspaceScreenKt.WorkspaceTerminalDialog has cognitive complexity 51 (threshold 15). Drivers by points: if/else 37 (41 pts), boolean chains 5, match/switch 5 (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":"app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt"},"region":{"startLine":1780}}}],"partialFingerprints":{"codehealthFindingId/v1":"d367e7c23697264ea8d5d9a4375daa250a81850fb83f733144988854dd4d6ffd"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessInlineLinksKt.harnessInlineLinks (cognitive 51): HarnessInlineLinksKt.harnessInlineLinks has cognitive complexity 51 (threshold 15). Drivers by points: if/else 21 (34 pts), boolean chains 8, loops 4 (7 pts), match/switch 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessInlineLinks.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"633c45b2b0c20a1034f51d94fbf39f577ffb5af4806bbd30e81a6770bc01edc2"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcessController.getCommand (cognitive 50): ProcessController.getCommand has cognitive complexity 50 (threshold 15). Drivers by points: if/else 33 (42 pts), boolean chains 6, match/switch 1 (2 pts) (nesting depth added 10). 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":"app/src/main/java/com/example/llamadroid/service/ProcessController.kt"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4347fb2c7b5be02da9aaddf7fac6c259b6eb49bfde8801fa0affd89abf90e1"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoSumupService.summarizeVideo (cognitive 50): VideoSumupService.summarizeVideo has cognitive complexity 50 (threshold 15). Drivers by points: if/else 20 (32 pts), error handling 5 (11 pts), match/switch 1 (5 pts), boolean chains 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoSumupService.kt"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69e664b4c086150cc463ea34f57dfeced9c6b5ced8a6c9afcf1cfeaf161f9a6"}},{"ruleId":"D2","level":"warning","message":{"text":"QuadtrixCommandBuilder.trainingArgs (cognitive 49): QuadtrixCommandBuilder.trainingArgs has cognitive complexity 49 (threshold 15). Drivers by points: if/else 27 (38 pts), boolean chains 11 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/quadtrix/QuadtrixRuntime.kt"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"63a81b18e5669f7806152876f4bb28fa307f2e1d2d52aa6ade014e1e8359beed"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessProjectActionDialogKt.HarnessProjectActionDialog (cognitive 49): HarnessProjectActionDialogKt.HarnessProjectActionDialog has cognitive complexity 49 (threshold 15). Drivers by points: if/else 24 (30 pts), boolean chains 12, match/switch 3 (5 pts), error handling 2 (nesting depth added 8). 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":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessProjectActionDialog.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"6714e526975deda20f0214d13e40d606402a206cd49319bf4aee0b2bdd0773f2"}},{"ruleId":"D2","level":"warning","message":{"text":"MainActivityKt.PetScreen (cognitive 49): MainActivityKt.PetScreen has cognitive complexity 49 (threshold 15). Drivers by points: if/else 18 (47 pts), boolean chains 2 (nesting depth added 29). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":2077}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d66e460c64752fb5a67816e254650000d3a92e668f9ce069f537bda05eefbea"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaAppKt.LlamaApp (cognitive 48): LlamaAppKt.LlamaApp has cognitive complexity 48 (threshold 15). Drivers by points: if/else 27 (30 pts), boolean chains 10, error handling 2 (5 pts), match/switch 3 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/LlamaApp.kt"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8aa4c1b0f90dcdd01abd0994e7f39e7de7c85b11cac0ca239cb70f18833289"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessSchemaKt.parseHarnessSchemaFields (cognitive 48): NativeHarnessSchemaKt.parseHarnessSchemaFields has cognitive complexity 48 (threshold 15). Drivers by points: if/else 20 (27 pts), match/switch 5 (13 pts), boolean chains 8 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessSchema.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfcc6bf328606d9b1df3a985c1cbf4541ae5b2f1c4dbbf3362bb5a647e83280c"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelArtifactFinalizer.finalizePrepared (cognitive 47): ModelArtifactFinalizer.finalizePrepared has cognitive complexity 47 (threshold 15). Drivers by points: if/else 27 (29 pts), boolean chains 16, match/switch 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactFinalizer.kt"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f05ff6bf69fba0532e247e77c75b5e478d038db5560e1f8444788a582433eb"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaScreenKt.TamaPetDisplay (cognitive 47): TamaScreenKt.TamaPetDisplay has cognitive complexity 47 (threshold 15). Drivers by points: if/else 23 (26 pts), boolean chains 13, match/switch 5 (8 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":4784}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f2f3e263d850314cc8b9622eaa0b6f9a13ff73540986adbeecae9c2d0085e6b"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoUpscalerScreenKt.VideoUpscalerScreen (cognitive 47): VideoUpscalerScreenKt.VideoUpscalerScreen has cognitive complexity 47 (threshold 15). Drivers by points: if/else 31 (33 pts), boolean chains 10, error handling 1 (2 pts), match/switch 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoUpscalerScreen.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"aace477cbda823b6681ed7adf9d0b06e75540a912b237e3887b4507748691a15"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessBridgeOperations.invoke (cognitive 46): HarnessBridgeOperations.invoke has cognitive complexity 46 (threshold 15). Drivers by points: if/else 28 (33 pts), match/switch 4 (6 pts), boolean chains 4, error handling 2 (3 pts) (nesting depth added 8). 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":"app/src/main/java/com/example/llamadroid/harness/HarnessBridgeOperations.kt"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"908f7aa415fa1bd6f0088df3a1a35c98c77976ddb13553f0c7673b0ebfb6ff94"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessTermuxTransportViewKt.harnessTermuxKeySequence (cognitive 46): HarnessTermuxTransportViewKt.harnessTermuxKeySequence has cognitive complexity 46 (threshold 15). Drivers by points: if/else 24 (31 pts), boolean chains 6, match/switch 4 (6 pts), loops 1 (3 pts) (nesting depth added 11). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessTermuxTransportView.kt"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"096e4a8782889d37f3f59f7882fbcb441d686f90470c5b02dc10b8c961fb84b3"}},{"ruleId":"D2","level":"warning","message":{"text":"MangaPaintedOcrSupport.analyzeMask (cognitive 46): MangaPaintedOcrSupport.analyzeMask has cognitive complexity 46 (threshold 15). Drivers by points: if/else 10 (30 pts), loops 4 (10 pts), boolean chains 6 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MangaPaintedOcrSupport.kt"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b2f3f71a00d64fc52e5e9c594a98bd395a46e8ddf94c5f967aaf3917fdcbfa"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessComposerKt.HarnessComposer (cognitive 46): HarnessComposerKt.HarnessComposer has cognitive complexity 46 (threshold 15). Drivers by points: if/else 28 (33 pts), boolean chains 11, match/switch 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessComposer.kt"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"d359d5c616a5b9f40719f5e672ebb9c71d9e3d46afc6549932fa7789da161dcb"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessTurnDetailsKt.projectNativeHarnessTurnUsage (cognitive 46): NativeHarnessTurnDetailsKt.projectNativeHarnessTurnUsage has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (33 pts), boolean chains 12, match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessTurnDetails.kt"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7734fd0758e7c1a271c2668573047773b83fb59e4cea4847f4068fda555b3a9"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeBaseScreenKt.KnowledgeBaseScreen (cognitive 46): KnowledgeBaseScreenKt.KnowledgeBaseScreen has cognitive complexity 46 (threshold 15). Drivers by points: if/else 28 (41 pts), boolean chains 5 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f0d09400859599bb4e561ff340022aa9cc28b7e9ae457382dce178bf3b183cf"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRepository.updateModel (cognitive 45): ModelRepository.updateModel has cognitive complexity 45 (threshold 15). Drivers by points: if/else 26 (35 pts), boolean chains 5, error handling 3 (5 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt"},"region":{"startLine":1398}}}],"partialFingerprints":{"codehealthFindingId/v1":"332b5cacd9aa5e435e8abd301dd3013c1cb0bfc365d69605eb4ea4acdd888f50"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaStreamingTextAccumulator.drainPending (cognitive 45): LlamaStreamingTextAccumulator.drainPending has cognitive complexity 45 (threshold 15). Drivers by points: if/else 14 (42 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaStreamingTextAccumulator.kt"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"2685ebe7d0036f93220fdb8664c6d1db8dd5298c1e275b64cbfd8d13f4327774"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFToolboxScreenKt.GuidedPdfOcrTool (cognitive 45): PDFToolboxScreenKt.GuidedPdfOcrTool has cognitive complexity 45 (threshold 15). Drivers by points: if/else 21 (32 pts), boolean chains 10, match/switch 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":1493}}}],"partialFingerprints":{"codehealthFindingId/v1":"379fb34f1c9bc7fffa4c13faa0abf005b558288cae26e73c95280b879b35a910"}},{"ruleId":"D2","level":"warning","message":{"text":"DelegateSubagentLoop.mainLoop (cognitive 44): DelegateSubagentLoop.mainLoop has cognitive complexity 44 (threshold 15). Drivers by points: if/else 14 (30 pts), match/switch 2 (6 pts), error handling 2 (4 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegateSubagentLoop.kt"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"829e244a7799558fa387421b2e3f58e6aa6d007bf10f2d20cbb3c64336a70b00"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerProfileEditorScreenKt.ServerProfileEditorScreen (cognitive 44): ServerProfileEditorScreenKt.ServerProfileEditorScreen has cognitive complexity 44 (threshold 15). Drivers by points: if/else 32 (34 pts), boolean chains 10 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/ServerProfileEditorScreen.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f014a6d4711edb8cb18e424dc1a1b1ada643534d98d1c2385209fefd9fb7f8"}},{"ruleId":"D2","level":"warning","message":{"text":"OllamaManagerScreenKt.OllamaManagerScreen (cognitive 44): OllamaManagerScreenKt.OllamaManagerScreen has cognitive complexity 44 (threshold 15). Drivers by points: if/else 22 (31 pts), boolean chains 8, match/switch 3 (5 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ollama/OllamaManagerScreen.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5bfbaa5a5c1e28ce4375826bc61f3cdd0ad5533c1469daf135a40b3af5f63d9"}},{"ruleId":"D2","level":"warning","message":{"text":"BenchmarkScreenKt.BenchmarkScreen (cognitive 44): BenchmarkScreenKt.BenchmarkScreen has cognitive complexity 44 (threshold 15). Drivers by points: if/else 29 (38 pts), boolean chains 6 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkScreen.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"e388298540af22dd2871767be4b281559f5d0881cfeb1cc105d9ddc9318479cb"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentDirectRuntimeSupportKt.advanceDirectAgentState (cognitive 43): AgentDirectRuntimeSupportKt.advanceDirectAgentState has cognitive complexity 43 (threshold 15). Drivers by points: if/else 26 (39 pts), boolean chains 3, match/switch 1 (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentDirectRuntimeSupport.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64e6b126d2963052c2ae615afaaf9594e61dd56dd8d8c5d6aba18010195bd1b"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentProjectControlPlane.permittedNextActions (cognitive 43): AgentProjectControlPlane.permittedNextActions has cognitive complexity 43 (threshold 15). Drivers by points: if/else 28 (41 pts), boolean chains 1, match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":3209}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52d83f93cc58a7c8e180184b511983b6e895a14c1af045baffd2cf0e41e3519"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessTurnDetailsKt.mergeNativeHarnessTurnDetails (cognitive 43): NativeHarnessTurnDetailsKt.mergeNativeHarnessTurnDetails has cognitive complexity 43 (threshold 15). Drivers by points: if/else 18 (32 pts), boolean chains 11 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessTurnDetails.kt"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"19cbf2598613092a91dc6cbe8be38616c48b8f47f76434f61b307d47fe8c48c0"}},{"ruleId":"D2","level":"warning","message":{"text":"DatasetProjectScreenKt.ReviewTab (cognitive 43): DatasetProjectScreenKt.ReviewTab has cognitive complexity 43 (threshold 15). Drivers by points: if/else 30 (31 pts), boolean chains 8, match/switch 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt"},"region":{"startLine":1323}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a719bd69f97e9538122af8ad656be4753a04bbb6459d8d820b28e9179cdc9f"}},{"ruleId":"D2","level":"warning","message":{"text":"DatasetProjectScreenKt.SettingsTab (cognitive 43): DatasetProjectScreenKt.SettingsTab has cognitive complexity 43 (threshold 15). Drivers by points: if/else 30 (35 pts), boolean chains 5, match/switch 3 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt"},"region":{"startLine":1873}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6281d76c918f96f5a24a1ce3626e0710d7f531604d01033dbd6dc725a6f3a0"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteRtTextGenerationClient.streamSafely (cognitive 42): LiteRtTextGenerationClient.streamSafely has cognitive complexity 42 (threshold 15). Drivers by points: if/else 12 (28 pts), error handling 4 (12 pts), boolean chains 2 (nesting depth added 24). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtTextGenerationClient.kt"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a26f9a81c18a481928fb687f1f3b19711154f8634fbd65898ec55833c4dc63"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcessControllerKt.resolveManagedLlamaCustomFlags (cognitive 42): ProcessControllerKt.resolveManagedLlamaCustomFlags has cognitive complexity 42 (threshold 15). Drivers by points: if/else 16 (34 pts), boolean chains 5, match/switch 1 (2 pts), loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ProcessController.kt"},"region":{"startLine":1503}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f376e75f496647980c4a15c42a41bda8fd558b6ce46479040ada84456e751ce"}},{"ruleId":"D2","level":"warning","message":{"text":"WhisperService.transcribe (cognitive 42): WhisperService.transcribe has cognitive complexity 42 (threshold 15). Drivers by points: if/else 25 (31 pts), error handling 6, match/switch 1 (3 pts), boolean chains 2 (nesting depth added 8). 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":"app/src/main/java/com/example/llamadroid/service/WhisperService.kt"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe21339293f0b686a65ed62f65bb05b2fe5ecf5bedb12ae0c2a34957b4af9f8d"}},{"ruleId":"D2","level":"warning","message":{"text":"SubtitleBurnScreenKt.SubtitleBurnScreen (cognitive 42): SubtitleBurnScreenKt.SubtitleBurnScreen has cognitive complexity 42 (threshold 15). Drivers by points: if/else 31 (34 pts), boolean chains 4, error handling 3, 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":"app/src/main/java/com/example/llamadroid/ui/ai/SubtitleBurnScreen.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a218acf6e6996c6bf21a2c7ffaa92c4b388fc16c7b0143b1b373aa885ed253"}},{"ruleId":"D2","level":"warning","message":{"text":"OllamaManagerScreenKt.ModelList (cognitive 42): OllamaManagerScreenKt.ModelList has cognitive complexity 42 (threshold 15). Drivers by points: if/else 21 (39 pts), boolean chains 3 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ollama/OllamaManagerScreen.kt"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"77596e9e5ad5f175834ab80ad34bae48234c160e742aaba66c387b61822165db"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolHttpServer.generateWebChatReply (cognitive 41): ToolHttpServer.generateWebChatReply has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (31 pts), boolean chains 6, error handling 2, match/switch 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":3075}}}],"partialFingerprints":{"codehealthFindingId/v1":"b790f8739719aa52d4cdefe612b0b466321107c096c669b521a171e4143e7cb2"}},{"ruleId":"D2","level":"warning","message":{"text":"ManagedLlamaServerCoordinator.prepare (cognitive 41): ManagedLlamaServerCoordinator.prepare has cognitive complexity 41 (threshold 15). Drivers by points: if/else 17 (30 pts), boolean chains 8, error handling 1 (2 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ManagedLlamaServerCoordinator.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddff1dcad0183c89568de7abe61f0b5565b67dd0185e6f9f59353a547565eb40"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerModeScreenKt.WorkerModeScreen (cognitive 41): WorkerModeScreenKt.WorkerModeScreen has cognitive complexity 41 (threshold 15). Drivers by points: if/else 21 (34 pts), boolean chains 4, match/switch 2, error handling 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/WorkerModeScreen.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f0259d8e6ab23cbf35a93f217dae318551dcfd8e0b1a773d8b297fd14da55b"}},{"ruleId":"D2","level":"warning","message":{"text":"ZimManagerScreenKt.ZimShareTab (cognitive 41): ZimManagerScreenKt.ZimShareTab has cognitive complexity 41 (threshold 15). Drivers by points: if/else 26 (30 pts), loops 2 (5 pts), boolean chains 3, error handling 1 (2 pts), match/switch 1 (nesting depth added 8). 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":"app/src/main/java/com/example/llamadroid/ui/kiwix/ZimManagerScreen.kt"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c9bcc501ead3fc3b244471ecc9a78910acd2e9718b8dd7ed658f21513151ff"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteMasterServer.handleClient (cognitive 40): RemoteMasterServer.handleClient has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 18, if/else 10 (15 pts), error handling 2 (3 pts), loops 2 (3 pts), match/switch 1 (nesting depth added 7). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteMasterServer.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b7149848af2603bcaa72b0a8ef8c53d15d5384407531abedeca483ff394ae7"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaChatServerSettingsKt.TamaChatSettingsDialog (cognitive 40): TamaChatServerSettingsKt.TamaChatSettingsDialog has cognitive complexity 40 (threshold 15). Drivers by points: if/else 19 (29 pts), match/switch 3 (9 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatServerSettings.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"060965e6393c3fad006479ba386a9a7bdbbe82cb8896e3eeb059ddae95415376"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessController.applyFollowFrame (cognitive 40): NativeHarnessController.applyFollowFrame has cognitive complexity 40 (threshold 15). Drivers by points: if/else 18 (31 pts), boolean chains 6, match/switch 2 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt"},"region":{"startLine":2053}}}],"partialFingerprints":{"codehealthFindingId/v1":"676a18905acdcc27b681087a66b64b9a12d5e3f998286edea28cde31f12b7444"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessSettingsReader.readSettings (cognitive 40): NativeHarnessSettingsReader.readSettings has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (25 pts), match/switch 3 (6 pts), boolean chains 5, error handling 2 (4 pts) (nesting depth added 19). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessSettingsReader.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5e02506b0d3d1f204adc7e9ce043966d2082a8e2ae86254369ce24f3c0ee08"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelLibraryScreenKt.BundleEditorDialog (cognitive 40): ModelLibraryScreenKt.BundleEditorDialog has cognitive complexity 40 (threshold 15). Drivers by points: if/else 24 (33 pts), boolean chains 6, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryScreen.kt"},"region":{"startLine":1393}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae6a6cd4bfde05b81c870da1818913664376099723cc0a2cd478b39611da094d"}},{"ruleId":"D2","level":"warning","message":{"text":"SdArtifactInspector.inspectSafeTensors (cognitive 39): SdArtifactInspector.inspectSafeTensors has cognitive complexity 39 (threshold 15). Drivers by points: if/else 17 (32 pts), boolean chains 5, error handling 1, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdArtifactInspector.kt"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"7754ddc93a4bd1e36fb201d9a1376c7795ed997373632a2d20cf901d0c986b28"}},{"ruleId":"D2","level":"warning","message":{"text":"BenchmarkService.runBenchmark (cognitive 39): BenchmarkService.runBenchmark has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (23 pts), match/switch 2 (8 pts), boolean chains 6, error handling 1, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/BenchmarkService.kt"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a0608ff32fddcd9e3a4bd565e71b4eadfd10666d12ce9314daa2d246e9d449"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaAgentService.generateAssistantReply (cognitive 39): TamaAgentService.generateAssistantReply has cognitive complexity 39 (threshold 15). Drivers by points: if/else 23 (31 pts), boolean chains 4, error handling 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff17f4e48be582657c8201fa06d94d0dcbb8d529231592303ec0169248d993c9"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRepository.deleteModelArtifactsInternal (cognitive 38): ModelRepository.deleteModelArtifactsInternal has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 12, error handling 3 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2bb5902c482fcd81fa635c0d22f0e38d213382cb12f8fcde1fe97039b8d6476"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentRuntimeDispatchResolver.resolve (cognitive 38): AgentRuntimeDispatchResolver.resolve has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 12, match/switch 4 (7 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/runtime/AgentRuntimeProfileSupport.kt"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"68179b0495fd2d38e0be280a5947ee3ec64a68ca05fffe1ba03093703a666d17"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeChatToolRuntime.fetchUrlText (cognitive 38): NativeChatToolRuntime.fetchUrlText has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (34 pts), boolean chains 3, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":2450}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b069f165f62c3be31223bf3642b327ed8db5bf97373b192281c987fc94276d"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFService.readJpegDimensions (cognitive 38): PDFService.readJpegDimensions has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (26 pts), loops 4 (6 pts), boolean chains 5, error handling 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":6848}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92c1b29be52cee612bbd36a6b6f03904d4e8f032b6d814d851283c672d0888f"}},{"ruleId":"D2","level":"warning","message":{"text":"SSHService.uploadToRemotePath (cognitive 38): SSHService.uploadToRemotePath has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15 (25 pts), loops 4 (6 pts), boolean chains 4, error handling 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SSHService.kt"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c87fba6063df9905401b4ae693f4d5b9c726de2c5b97bcabc02d7ceb31de029"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessSettingsReader.readModelCatalog (cognitive 38): NativeHarnessSettingsReader.readModelCatalog has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15 (28 pts), error handling 3 (5 pts), boolean chains 4, match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessSettingsReader.kt"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"fddd4b33d30878a49ce13521e0f35a416d893812c7d9a7c3b32ffa41341dba10"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownTextKt.buildInlineAnnotated (cognitive 38): MarkdownTextKt.buildInlineAnnotated has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (28 pts), boolean chains 7, match/switch 1 (2 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/MarkdownText.kt"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1242fa6baa27d95a702d1966f1404e6f8a729ed776830a0dcabd8dafc940d9"}},{"ruleId":"D2","level":"warning","message":{"text":"ZimManagerScreenKt.InstalledZimsTab (cognitive 38): ZimManagerScreenKt.InstalledZimsTab has cognitive complexity 38 (threshold 15). Drivers by points: if/else 22 (28 pts), error handling 5 (6 pts), boolean chains 4 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/kiwix/ZimManagerScreen.kt"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ffe5a6550e14c0a67f8dd3a0444b003fd17564951137f0fa71a32bb720a81b0"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteRtModelsScreenKt.LiteRtModelsScreen (cognitive 38): LiteRtModelsScreenKt.LiteRtModelsScreen has cognitive complexity 38 (threshold 15). Drivers by points: if/else 22 (24 pts), boolean chains 10, error handling 2, match/switch 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"79dd60e2335123416fa211449edb85737deb4f2200de9e5d802d71c64451548f"}},{"ruleId":"D2","level":"warning","message":{"text":"OnnxModelsScreenKt.OnnxModelsScreen (cognitive 38): OnnxModelsScreenKt.OnnxModelsScreen has cognitive complexity 38 (threshold 15). Drivers by points: if/else 23 (30 pts), boolean chains 5, match/switch 3 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a950efe32f6d992bb3e92680ce4a02a8f7b73ef7226eaffdb7435cb19dfc1a3"}},{"ruleId":"D2","level":"warning","message":{"text":"WalkthroughStateKt.tourTarget (cognitive 38): WalkthroughStateKt.tourTarget has cognitive complexity 38 (threshold 15). Drivers by points: if/else 23 (34 pts), boolean chains 4 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/walkthrough/WalkthroughState.kt"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"755665585a31d8fcba79b7980ee963c216b0200eb3274849c3269d8c4dcf7c64"}},{"ruleId":"D2","level":"warning","message":{"text":"SdWorkflowGateKt.evaluateSdWorkflowGate (cognitive 37): SdWorkflowGateKt.evaluateSdWorkflowGate has cognitive complexity 37 (threshold 15). Drivers by points: if/else 19 (22 pts), boolean chains 14, 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":"app/src/main/java/com/example/llamadroid/data/model/SdWorkflowGate.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f9c8f5a9b0e9af963c999a99b52d3bcebf93dcbc324f252abfc5565ecc3198"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcessControllerKt.migrateLegacyLlamaManagedSettings (cognitive 37): ProcessControllerKt.migrateLegacyLlamaManagedSettings has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (31 pts), boolean chains 4, loops 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ProcessController.kt"},"region":{"startLine":1666}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e01b7f29ace6d8db8e82b1252b72740aab0ac3845808d400ab06bedf6431e4"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaGameEngine.updateForTimePassedLocked (cognitive 37): TamaGameEngine.updateForTimePassedLocked has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20 (32 pts), boolean chains 5 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cbb2b81338b67e692159ec950b639dfb8fd91a91d03802cdc353e20b770808b"}},{"ruleId":"D2","level":"warning","message":{"text":"AdventureGateCombatEngine.applyEnemyAction (cognitive 37): AdventureGateCombatEngine.applyEnemyAction has cognitive complexity 37 (threshold 15). Drivers by points: if/else 27 (31 pts), boolean chains 6 (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":"app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateCombatEngine.kt"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b20dba8b32f59403e68e66446f6d819cf4f64099dee669241382a35156decc"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageGenModeSupportKt.resolveImageGenReadiness (cognitive 37): ImageGenModeSupportKt.resolveImageGenReadiness has cognitive complexity 37 (threshold 15). Drivers by points: if/else 19 (36 pts), match/switch 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenModeSupport.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c16b8b828cad4de9b5caaad4b16485ab17330d42989b743a47a46003f68b2f"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowsScreenKt.WorkflowOutputGalleryCard (cognitive 37): WorkflowsScreenKt.WorkflowOutputGalleryCard has cognitive complexity 37 (threshold 15). Drivers by points: if/else 24 (33 pts), match/switch 3, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":3186}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef9b3e33d9b6d4648e88ed2df74412875c3a945479e77750d565a83cd6a2c85"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowsScreenKt.TranscribeSummaryWorkflowContent (cognitive 37): WorkflowsScreenKt.TranscribeSummaryWorkflowContent has cognitive complexity 37 (threshold 15). Drivers by points: if/else 22 (28 pts), boolean chains 4, error handling 2 (3 pts), match/switch 2 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":6884}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c8d4c14b3b95e4ce00d90b9c5e1b2edf30a9ecadccafb9d471069a3374a938"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessImageParts.rewrite (cognitive 36): HarnessImageParts.rewrite has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (27 pts), boolean chains 3, loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessImageParts.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"1171dedbf13a4fe6cb5491f1929ce4f038ace0e2d76fe5e493327263446d606f"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentRuntimeSupportKt.sanitizeTerminalTranscript (cognitive 36): AgentRuntimeSupportKt.sanitizeTerminalTranscript has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (20 pts), match/switch 3 (7 pts), boolean chains 6, loops 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentRuntimeSupport.kt"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"271ab505c179ecff94dc9abf74ede9c086408652df53baf859b67b5c05a7f335"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessSettingsNavigationKt.HarnessSettingsNavigator (cognitive 36): HarnessSettingsNavigationKt.HarnessSettingsNavigator has cognitive complexity 36 (threshold 15). Drivers by points: if/else 19 (30 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessSettingsNavigation.kt"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4185e78ad65cd650fdfbb5c8f502c31eb13aead690850ee6017e15152d0742"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeChatToolRuntime.availableTools (cognitive 35): NativeChatToolRuntime.availableTools has cognitive complexity 35 (threshold 15). Drivers by points: if/else 24 (30 pts), boolean chains 5 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d83edc6978ca2e1f956e16d4d717beabebfd3ce575ce8af643733998adcf3f1"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaAgentService.summarize (cognitive 35): TamaAgentService.summarize has cognitive complexity 35 (threshold 15). Drivers by points: if/else 22 (27 pts), boolean chains 4, error handling 2 (4 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6bf5157b7fdc33ca952d6bb0842e60c6c727a573842bb0321073d15785c38aa"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaDailyDreamManager.queueDreamIfEligible (cognitive 35): TamaDailyDreamManager.queueDreamIfEligible has cognitive complexity 35 (threshold 15). Drivers by points: if/else 25 (30 pts), boolean chains 4, error handling 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaDailyDreamManager.kt"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"05cd6e34f610911d0c4764d686c1e045c8f933034e692caa557dee122fb23691"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentDialogsKt.AgentConfigCard (cognitive 35): AgentDialogsKt.AgentConfigCard has cognitive complexity 35 (threshold 15). Drivers by points: if/else 27 (31 pts), boolean chains 4 (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":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":4131}}}],"partialFingerprints":{"codehealthFindingId/v1":"614ece0ebf59d0ec6a684fc508616a5f4516f8049905c874c4706f16a0c09b4d"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaSchedulerScreenKt.LlamaScheduledTaskEditorDialog (cognitive 35): LlamaSchedulerScreenKt.LlamaScheduledTaskEditorDialog has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (21 pts), match/switch 3 (11 pts), boolean chains 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"376b5e32875f17f013771ada4968459d7bc861ade97c0826a3f07065f0be4063"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.runReflectionTool (cognitive 34): AgentService.runReflectionTool has cognitive complexity 34 (threshold 15). Drivers by points: if/else 21 (23 pts), boolean chains 10, error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":15323}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15fb971584355a3479600b03a6733f8a6541b37e263669421de19077ca61e09"}},{"ruleId":"D2","level":"warning","message":{"text":"DistributedLlamaLaunchResolver.resolve (cognitive 34): DistributedLlamaLaunchResolver.resolve has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17, boolean chains 9, match/switch 7 (8 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DistributedLlamaLaunchProfile.kt"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4c5bdbe4a92b2af9d451360f55b281f750f9d0b1153cd6239b1db0fddb28be"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaServerLaunchProfile.migrateJson (cognitive 34): LlamaServerLaunchProfile.migrateJson has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 10, match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerLaunchProfile.kt"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dbe82d117a5ee5c0e67740fb676215997e65a30470e7810ed9b291229aa0ce3"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFService.translatePageUnits (cognitive 34): PDFService.translatePageUnits has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (27 pts), boolean chains 6, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"8890e41b0b0612fde130958dee35644b9bd21a880ab09b46ea45fe983ae6ba6e"}},{"ruleId":"D2","level":"warning","message":{"text":"QuadtrixTrainingService.runProcess (cognitive 34): QuadtrixTrainingService.runProcess has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 6, match/switch 4, error handling 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/QuadtrixTrainingService.kt"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d706c8adef63e9b3d59d6be51a2988d37e71d55bf9725287bbe16cb9df2378"}},{"ruleId":"D2","level":"warning","message":{"text":"SubtitleBurnService.burnSubtitles (cognitive 34): SubtitleBurnService.burnSubtitles has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 7, error handling 4 (6 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SubtitleBurnService.kt"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"86cb521d02c4e0d6e613a22d819c9b7367bdd663833b0a4e2f61bfe0294c8922"}},{"ruleId":"D2","level":"warning","message":{"text":"PrepareCachesSheetKt.PrepareCachesSheet (cognitive 34): PrepareCachesSheetKt.PrepareCachesSheet has cognitive complexity 34 (threshold 15). Drivers by points: if/else 27 (28 pts), boolean chains 5, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/PrepareCachesSheet.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0ac42a97969becc07aaeec348593b150e1c9b5a0b5b02a81a98ec21f17176f"}},{"ruleId":"D2","level":"warning","message":{"text":"EasyModelsScreenKt.EasyModelsScreen (cognitive 34): EasyModelsScreenKt.EasyModelsScreen has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (20 pts), match/switch 8 (9 pts), boolean chains 5 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/easy/EasyModelsScreen.kt"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7b7a09ada5fdd4d7a0cb6f33a1cfaa82be258086cf36d69b8b7c307c748106"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelSourceAttachmentKt.ModelSourceAttachmentDialog (cognitive 34): ModelSourceAttachmentKt.ModelSourceAttachmentDialog has cognitive complexity 34 (threshold 15). Drivers by points: if/else 21 (25 pts), boolean chains 9 (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":"app/src/main/java/com/example/llamadroid/ui/models/ModelSourceAttachment.kt"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8af58b6b26fea690f954fea5f7c59ce7c2e9b170fa9c3e3c1899d0f51d70f9"}},{"ruleId":"D2","level":"warning","message":{"text":"GGUFParser.readModelInfo (cognitive 34): GGUFParser.readModelInfo has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (27 pts), boolean chains 3, match/switch 1 (2 pts), error handling 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/GGUFParser.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2f9537a7d472dc13b2b33db90e2b45bce2db834daada640a6e0088d7a15f34"}},{"ruleId":"D2","level":"warning","message":{"text":"OllamaRepository.inspectModelfile (cognitive 33): OllamaRepository.inspectModelfile has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 7, match/switch 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/repository/OllamaRepository.kt"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"4052075197eeb19cc1541ebb38a45083304cdb511cee1bec9cb9aa8299bcdaf4"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentControlPromptSupportKt.evidenceRecordsFromContent (cognitive 33): AgentControlPromptSupportKt.evidenceRecordsFromContent has cognitive complexity 33 (threshold 15). Drivers by points: if/else 20 (23 pts), boolean chains 10 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentControlPromptSupport.kt"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"4074becc6ef4d0e35910388d31377a305d8497aa74e7ceba90753abc274a61e8"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentProjectControlPlane.applyDirectToolReceipt (cognitive 33): AgentProjectControlPlane.applyDirectToolReceipt has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 15, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d46d68b0f021862eff5771e1ca706d75ab92e224f81a313e2f2ecfa5478ac3a"}},{"ruleId":"D2","level":"warning","message":{"text":"MangaTranslationSupport.preflight (cognitive 33): MangaTranslationSupport.preflight has cognitive complexity 33 (threshold 15). Drivers by points: if/else 18 (27 pts), boolean chains 5, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"026f2bdf201c4ae00b6afcb15e72704222d14d3a93eabde9ba942e89f89034c3"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessModelEditorKt.HarnessEditableModelRow (cognitive 33): HarnessModelEditorKt.HarnessEditableModelRow has cognitive complexity 33 (threshold 15). Drivers by points: if/else 20 (25 pts), boolean chains 6, match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessModelEditor.kt"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"3efe6022abf97775f25400ff6b502b7d3de953d58ecf87fc59386823b1edba7c"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessPluginActions.cancel (cognitive 33): NativeHarnessPluginActions.cancel has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 10, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessPluginActions.kt"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c2b8fc0fcd1761cce29640023fd40bc335d74d1dd35826682ef0fb8fbd8532"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveTranslatorScreenKt.LiveTranslatorScreen (cognitive 33): LiveTranslatorScreenKt.LiveTranslatorScreen has cognitive complexity 33 (threshold 15). Drivers by points: if/else 20 (22 pts), boolean chains 11 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/LiveTranslatorScreen.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df4e1dff1ddae6a64e251f247172e96decdf8301546fdb35efdcd008fc6dcc9"}},{"ruleId":"D2","level":"warning","message":{"text":"AppChromeKt.AppHubRow (cognitive 33): AppChromeKt.AppHubRow has cognitive complexity 33 (threshold 15). Drivers by points: if/else 23 (31 pts), match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/AppChrome.kt"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"f252d91ce15aae255aff3ad586034631136ca45d9799c75a30b3e145bddf4a51"}},{"ruleId":"D2","level":"warning","message":{"text":"CuratedModelBundlePickerKt.CuratedModelBundlePicker (cognitive 33): CuratedModelBundlePickerKt.CuratedModelBundlePicker has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 15 (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":"app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundlePicker.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c19e857d462aceba8531f8783973c77adca8c58b2ca71781e03faf054872f6f"}},{"ruleId":"D2","level":"warning","message":{"text":"FullHfRepositoryBrowserKt.FullHfRepositoryBrowser (cognitive 33): FullHfRepositoryBrowserKt.FullHfRepositoryBrowser has cognitive complexity 33 (threshold 15). Drivers by points: if/else 20 (23 pts), boolean chains 5, error handling 4, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/FullHfRepositoryBrowser.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"50976ab1dfc7a0f673b93f7436b20a98522a91c635785c371d34906a4903bc7a"}},{"ruleId":"D2","level":"warning","message":{"text":"FilePathResolver.resolveContentUri (cognitive 33): FilePathResolver.resolveContentUri has cognitive complexity 33 (threshold 15). Drivers by points: if/else 7 (26 pts), loops 1 (4 pts), match/switch 1 (2 pts), error handling 1 (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/FilePathResolver.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"892df438c4e8256450c584c00707a2379eef1ce7ae289ddbeb9a67e0d1a6057b"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessTransferPublication.prepareAndPublish (cognitive 32): HarnessTransferPublication.prepareAndPublish has cognitive complexity 32 (threshold 15). Drivers by points: if/else 20 (21 pts), boolean chains 11 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessTransferPublication.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"223ea848c27e91c958a84afc917b2f6fb08dc13935264991b1e0a9005049059a"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.approvePendingPlan (cognitive 32): AgentService.approvePendingPlan has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (18 pts), error handling 4 (8 pts), boolean chains 6 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":7093}}}],"partialFingerprints":{"codehealthFindingId/v1":"167b7ac060bc3e3c98860fab7727a4f105df1c1b8bf4792a36581baab73a5255"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaClientService.streamLiteRtLmRequestSafely (cognitive 32): LlamaClientService.streamLiteRtLmRequestSafely has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (18 pts), error handling 5 (12 pts), boolean chains 1, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":2708}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a25ef01c2e65385dba8e4976a0e357e4548f12ea2070b202d451fb7e6797c59"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaTranslationWorkflowService.runProcessWithSrtProgress (cognitive 32): MediaTranslationWorkflowService.runProcessWithSrtProgress has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 3, loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt"},"region":{"startLine":2656}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a86aa9eef19be48ca099dfaff517d35be787d11971476da0fa95d2f5cc1159"}},{"ruleId":"D2","level":"warning","message":{"text":"DelegationProjectFiles.search (cognitive 32): DelegationProjectFiles.search has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (25 pts), loops 2 (3 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegationProjectFiles.kt"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"7677db88877b1e52eab39fb2c94bd111bfb4c7236310ab470d3a74884b2ab6ef"}},{"ruleId":"D2","level":"warning","message":{"text":"DelegationStatusFormatter.statusText (cognitive 32): DelegationStatusFormatter.statusText has cognitive complexity 32 (threshold 15). Drivers by points: if/else 21 (25 pts), boolean chains 7 (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":"app/src/main/java/com/example/llamadroid/service/delegation/DelegationStatusFormatter.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7701edaea69122f53026ca123ab2633ca348a6b626e3f310131469b58318b5a"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentDialogsKt.AgentDirectRuntimeCard (cognitive 32): AgentDialogsKt.AgentDirectRuntimeCard has cognitive complexity 32 (threshold 15). Drivers by points: if/else 26 (30 pts), boolean chains 1, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":2471}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d592ff4fcbc31e4e87a607b6d041b34ac02b0c7224c1880f00179a2836423f"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentDialogsKt.AgentTuningCard (cognitive 32): AgentDialogsKt.AgentTuningCard has cognitive complexity 32 (threshold 15). Drivers by points: if/else 22 (28 pts), boolean chains 3, match/switch 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":3440}}}],"partialFingerprints":{"codehealthFindingId/v1":"2433c4b1218b34692d39ab488025af9d21c60fba0a1a3c60d1d674da75213eae"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoGenScreenKt.VideoDetailDialog (cognitive 32): VideoGenScreenKt.VideoDetailDialog has cognitive complexity 32 (threshold 15). Drivers by points: if/else 28 (30 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt"},"region":{"startLine":2147}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b066a1237b435c79f87e004b7f5245ad7cdc759027a23b201cac2e617f88379"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioWorkspaceScreenKt.AudioWorkspaceScreen (cognitive 32): AudioWorkspaceScreenKt.AudioWorkspaceScreen has cognitive complexity 32 (threshold 15). Drivers by points: if/else 19 (22 pts), error handling 2 (4 pts), boolean chains 3, match/switch 3 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/AudioWorkspaceScreen.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"87edd90f903f857b4be349f0c931ef202eb25a50a03a3d71bc075e17b4e883ec"}},{"ruleId":"D2","level":"warning","message":{"text":"SoftStudioAppScaffoldKt.SoftStudioAppScaffold (cognitive 32): SoftStudioAppScaffoldKt.SoftStudioAppScaffold has cognitive complexity 32 (threshold 15). Drivers by points: if/else 18 (26 pts), boolean chains 6 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/navigation/SoftStudioAppScaffold.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"069f66ce8d08d8a5cbbfefc66901bed3c186435248bf6e8d24f9bda6b1fb091a"}},{"ruleId":"D2","level":"warning","message":{"text":"WalkthroughUiKt.WalkthroughCoach (cognitive 32): WalkthroughUiKt.WalkthroughCoach has cognitive complexity 32 (threshold 15). Drivers by points: if/else 22 (25 pts), boolean chains 6, 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":"app/src/main/java/com/example/llamadroid/ui/walkthrough/WalkthroughUi.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"e35c9036b93dc7a063329e8753bedcca1d57322442b06e3da0d0bc8afa104654"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessWebIndexBodyKt.readHarnessWebIndexBody (cognitive 31): HarnessWebIndexBodyKt.readHarnessWebIndexBody has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 5 (10 pts), boolean chains 2, match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessWebIndexBody.kt"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"11bf95a66f58ec9bd452196a95efefb3d039a3981a2e383ece47e8c85f362dba"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassicFarmPlots.apply (cognitive 31): ClassicFarmPlots.apply has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 13, match/switch 2 (3 pts) (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/ClassicFarmPlots.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9aa6ff4dcba2b1219db6b51da4d43f115978d6a8e5c289f31a47622c78ec3eb"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChatListKt.ChatMessageContent (cognitive 31): AgentChatListKt.ChatMessageContent has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (30 pts), boolean chains 1 (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentChatList.kt"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"31433aeae94c2fbea03cd5c594aee4cbbb8837fd8744a999197e3ab200736bde"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowsScreenKt.SubtitleTranslationWorkflowContent (cognitive 31): WorkflowsScreenKt.SubtitleTranslationWorkflowContent has cognitive complexity 31 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 6, error handling 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":4017}}}],"partialFingerprints":{"codehealthFindingId/v1":"f32dcbc9c7a4a4dd2960e870263f1e5aaaeedf5e814780f98cc6ca777039a849"}},{"ruleId":"D2","level":"warning","message":{"text":"EasyLlamaChatUiKt.EasyLlamaChatEntryCard (cognitive 31): EasyLlamaChatUiKt.EasyLlamaChatEntryCard has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (23 pts), error handling 4 (8 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/EasyLlamaChatUi.kt"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"33dcdbf0cfefb09f8bd6a3f8644d8807ca82669dc65c227196d18fd09c482e41"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeChatDelegationScreenKt.DelegationHeader (cognitive 31): NativeChatDelegationScreenKt.DelegationHeader has cognitive complexity 31 (threshold 15). Drivers by points: if/else 22 (27 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/delegation/NativeChatDelegationScreen.kt"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f8e4d93c0084186166489965c1c4daa3975376e0a3219e9f3307ea404dea1a"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelSourceRepository.saveSource (cognitive 30): ModelSourceRepository.saveSource has cognitive complexity 30 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 6 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"999f5b8e7db6f1b6de9b905637f6c73e1487ff532ab3a44f8375879e37de47b4"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessInstallationTransfer.export (cognitive 30): HarnessInstallationTransfer.export has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 12, error handling 2, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessInstallationTransfer.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae57fd05eff34bb53d7e6e01c16637d72e859fe06b574f0e163a3ec520588fe0"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessInstallationsBindingKt.rememberHarnessInstallations (cognitive 30): HarnessInstallationsBindingKt.rememberHarnessInstallations has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 14, if/else 10, match/switch 3 (4 pts), error handling 2 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessInstallationsBinding.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"82800b5c88e0df40e7071789b70102654f5cf6be91b191fef4f8959c7b7c8add"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessTransferCodec.scanTree (cognitive 30): HarnessTransferCodec.scanTree has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (18 pts), boolean chains 10, match/switch 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7afe3f084a4d86d16dc6c3aae9cca913b976afdaf21d1a22152d3f64cc9cd77"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLocalPatchSupport.apply (cognitive 30): AgentLocalPatchSupport.apply has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 3 (6 pts), boolean chains 4 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentLocalPatchSupport.kt"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"e866276f425721f4e8343d37a52e6ed8886b3936268619d61e1b7fa3c3f90275"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.webSearch (cognitive 30): AgentService.webSearch has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (23 pts), error handling 3 (6 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":20527}}}],"partialFingerprints":{"codehealthFindingId/v1":"292661b20651cca5c00c2be634ad8c8bbcd0a988269e664e0c19698201d173b2"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.normalizeMessageForPrompt (cognitive 30): AgentService.normalizeMessageForPrompt has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16 (26 pts), boolean chains 3, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":15773}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab8d8998d4589dfaa5e2a1105bd764bdafa687c6797e3ac2d9e616ace61901e"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaServerSessionService.onStartCommand (cognitive 30): LlamaServerSessionService.onStartCommand has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (27 pts), boolean chains 2, match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerSessionService.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a1ddb4520aeac8ca787f35ac2016dba77e28cfec0278e57d749bddbbfae1cb"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoGenerationService.convertNativeOutput (cognitive 30): VideoGenerationService.convertNativeOutput has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 7, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8469222fe303f19f029bc5f8e82201635e6ef0e0605c66c25db8b15f92203d"}},{"ruleId":"D2","level":"warning","message":{"text":"FarmObstacles.plan (cognitive 30): FarmObstacles.plan has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/data/FarmObstacleData.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"98237cde2a7edcace0596109b7006d1cda05d57ced2aecb958588d6472453030"}},{"ruleId":"D2","level":"warning","message":{"text":"AdventureGateScreenKt.gearInfoText (cognitive 30): AdventureGateScreenKt.gearInfoText has cognitive complexity 30 (threshold 15). Drivers by points: if/else 29, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":4551}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45102af37162f87488f2e37f47e18577079663995ec349f326d51e5a2d0a9ee"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaScreenKt.TamaParkEncounterDialog (cognitive 30): TamaScreenKt.TamaParkEncounterDialog has cognitive complexity 30 (threshold 15). Drivers by points: if/else 20 (21 pts), boolean chains 7, match/switch 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"9220df58deb0b128e2f2b85b22bfd2601514f7baf07deded10ea3007a3d9c06e"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessProjectReviewModelsKt.foldNativeHarnessWorkflows (cognitive 30): NativeHarnessProjectReviewModelsKt.foldNativeHarnessWorkflows has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 6, match/switch 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessProjectReviewModels.kt"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"9abef97ceb15c2c499dba1da05d712e82492c4c502f327178c7fceb7844b6d14"}},{"ruleId":"D2","level":"warning","message":{"text":"SDModelsScreenKt.SdInspectionEvidence (cognitive 30): SDModelsScreenKt.SdInspectionEvidence has cognitive complexity 30 (threshold 15). Drivers by points: if/else 19 (28 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":3187}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ad171d0856d2ef3d61bc0b249564320365d0d0a33b6ecf58dc5afac3736e5c"}},{"ruleId":"D2","level":"warning","message":{"text":"SdIpAdapterControlsKt.SdIpAdapterCard (cognitive 30): SdIpAdapterControlsKt.SdIpAdapterCard has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 11, 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":"app/src/main/java/com/example/llamadroid/ui/ai/SdIpAdapterControls.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a71ef04a238ee8be15eaa94eac07460d9afe94ba153fd011136a9152534114c"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoRuntimeOptionsEditorKt.VideoRuntimeOptionsEditor (cognitive 30): VideoRuntimeOptionsEditorKt.VideoRuntimeOptionsEditor has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 7, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/VideoRuntimeOptionsEditor.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"73b2f947d137791909b75d5c5a31e30490cf68fe1cef652dffcc2a8d70e41358"}},{"ruleId":"D2","level":"warning","message":{"text":"EasyChatTabKt.EasyChatTab (cognitive 30): EasyChatTabKt.EasyChatTab has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (20 pts), error handling 6 (8 pts), boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/easy/EasyChatTab.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a65a9890c5501ff47a985093f1eecb061600e59019df7e7bc0b935a0880c562"}},{"ruleId":"D2","level":"warning","message":{"text":"EasyImagesTabKt.EasyImagesTab (cognitive 30): EasyImagesTabKt.EasyImagesTab has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 9, match/switch 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/easy/EasyImagesTab.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9ff3861241f18d7e1c1246ccdd993039281df23b8b8a553ca5fe7fc52a5db6"}},{"ruleId":"D2","level":"warning","message":{"text":"app.renderField (cognitive 30): app.renderField has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 11 (19 pts), if/else 7 (8 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/ai_servers_webui/app.js"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f6c5c014aef8a3211671cde09304276be813bf22080530271cc4fe8c8998ef"}},{"ruleId":"D2","level":"warning","message":{"text":"upload.run (cognitive 30): upload.run has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 8, error handling 3 (7 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/file_station_webui/js/upload.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7026b4cd3c9897623191e0582682e976d31e6424045ebd7709ee4fe002c557"}},{"ruleId":"D2","level":"warning","message":{"text":"StableAudio3WorkerClient.run (cognitive 29): StableAudio3WorkerClient.run has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 4, loops 3, error handling 1 (2 pts), match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/music/StableAudio3WorkerClient.kt"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"659034db13bf86188facabd1b0ace2121647cb13d2d4aa33de532fbdcc5a5363"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessPresetFilesDialogKt.HarnessPresetFilesDialog (cognitive 29): HarnessPresetFilesDialogKt.HarnessPresetFilesDialog has cognitive complexity 29 (threshold 15). Drivers by points: if/else 21, error handling 4, boolean chains 2, match/switch 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessPresetFilesDialog.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e91a51052cad58d08c9dd7e120aae0ea8f69e1d72cb07993cb0287b6ddcdf4a"}},{"ruleId":"D2","level":"warning","message":{"text":"SdModelSupportKt.inferSdFamily (cognitive 29): SdModelSupportKt.inferSdFamily has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 12, match/switch 6 (11 pts), if/else 6 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdModelSupport.kt"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2d0ddb0954c5da95843acb75a5650aaef6319607fc531dc7fd7d89564ab437"}},{"ruleId":"D2","level":"warning","message":{"text":"SdPipelineResolver.resolve (cognitive 29): SdPipelineResolver.resolve has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 9, match/switch 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdPipelineResolver.kt"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a4af7354771c9cbf09422744e19c4660692801006dc832a02c7a9e4b6da8f4"}},{"ruleId":"D2","level":"warning","message":{"text":"ForegroundStart.start (cognitive 29): ForegroundStart.start has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (19 pts), error handling 3 (7 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ForegroundStart.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb0ac4dcd484aca4170bdf3ffe1f32b3e63617fba11d24a4336ef401f52da77b"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaScheduledTaskRunner.runTask (cognitive 29): LlamaScheduledTaskRunner.runTask has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (20 pts), error handling 2 (4 pts), boolean chains 3, loops 2 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskRunner.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"db37715eb40e7dd3b667f7b64741273d23c5e1c0d926efebe71d260307b483fc"}},{"ruleId":"D2","level":"warning","message":{"text":"DelegateHarnessDriver.waitFor (cognitive 29): DelegateHarnessDriver.waitFor has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegateHarnessDriver.kt"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe4d756e42feac097baca130b0a258d64baa7a25f04af07e96a3b009eb2746e"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessStructuredTranscriptKt.parseNativeHarnessStructuredTranscript (cognitive 29): NativeHarnessStructuredTranscriptKt.parseNativeHarnessStructuredTranscript has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (18 pts), match/switch 4 (9 pts), boolean chains 2 (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessStructuredTranscript.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1270855cec54ad32df080b8d0d397580452b7b8324c6d0e09331516019732c8"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeBaseScreenKt.KnowledgeEmbeddingServerCard (cognitive 29): KnowledgeBaseScreenKt.KnowledgeEmbeddingServerCard has cognitive complexity 29 (threshold 15). Drivers by points: if/else 19, boolean chains 8, match/switch 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"a030f7924cb60a0f0ffc9d25c2d469c430e148f9c92093ee0dab6e654d13f0e3"}},{"ruleId":"D2","level":"warning","message":{"text":"app.wireChatControls (cognitive 29): app.wireChatControls has cognitive complexity 29 (threshold 15). Drivers by points: if/else 22 (25 pts), boolean chains 4 (nesting depth added 3). Of this number, 19 points are the body\u0027s own statements and 10 belong to 5 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/ai_servers_webui/app.js"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ea36da8ba46950dea96bf0da75e4a798ecb6027f62f400cbc2dc016b81b88f"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteRtModelRepository.pruneManagedRowsIfNeeded (cognitive 28): LiteRtModelRepository.pruneManagedRowsIfNeeded has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (26 pts), boolean chains 2 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/repository/LiteRtModelRepository.kt"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7992d5034c68391d0209a4e7240a605a5cce98f9c4ca7805a35db9995ba597"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessTransferCodec.stage (cognitive 28): HarnessTransferCodec.stage has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 11, error handling 1, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"46bac1645b543ec702a5394ec8928860e761edbbc48e1d7ee35068ce119dcda5"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessTaskDigest.foldEvent (cognitive 28): HarnessTaskDigest.foldEvent has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 5, match/switch 2 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/HarnessTaskDigest.kt"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"510fe87908d00d71f82411fa52e6214a7be2ede0e8ee6294a3d4d5f618ba5a2c"}},{"ruleId":"D2","level":"warning","message":{"text":"AdventureGateCombatEngine.applyPetDamage (cognitive 28): AdventureGateCombatEngine.applyPetDamage has cognitive complexity 28 (threshold 15). Drivers by points: if/else 20, boolean chains 7, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateCombatEngine.kt"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dbfd9d9ae0b35d5fcbe3de80c4ae9c1709fa843f90ea68ddefbd5837ea542fd"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaScreenKt.TamaControls (cognitive 28): TamaScreenKt.TamaControls has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 11, match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":5293}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d31a3f72d7e911e67e4b15f17b7700b150c52cf3bbad215c6a143a43ca9c35"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentControlsKt.AgentWorkspaceConsoleHeader (cognitive 28): AgentControlsKt.AgentWorkspaceConsoleHeader has cognitive complexity 28 (threshold 15). Drivers by points: if/else 23 (26 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"73bbe125003092969dc6c0eb8287d852738eca71eee345cf67b650867ab3138a"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessConversationPanelKt.HarnessChatTab (cognitive 28): HarnessConversationPanelKt.HarnessChatTab has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 5 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessConversationPanel.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e4ec9d1464fce7914442469974a1f3010d51519b44ca12d3e1365d392cdd45"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessProjectActionDialogKt.HarnessProjectBatchRemovalDialog (cognitive 28): HarnessProjectActionDialogKt.HarnessProjectBatchRemovalDialog has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 10, error handling 2, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessProjectActionDialog.kt"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8faecf4e88b65a85670b8862507c5f5c7409396a90b5f4e41ee56aba6f782d7"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessCommandHistoryKt.mergeNativeHarnessCommandRuns (cognitive 28): NativeHarnessCommandHistoryKt.mergeNativeHarnessCommandRuns has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 4 (8 pts), boolean chains 7 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessCommandHistory.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"40eebfa1ed6dd4d73e7f1f22c546db6e1a2618ab5f856da528d169b574fbe1f2"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessStructuredTranscriptActions.loadDetail (cognitive 28): NativeHarnessStructuredTranscriptActions.loadDetail has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (22 pts), error handling 2, match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessStructuredTranscriptActions.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"3233c445f5ce375dedc67d9b47fdfd4e88ffa6399180c8e3ff431a58e37ac63e"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveTranslatorScreenKt.LiveTranslatorBackendCard (cognitive 28): LiveTranslatorScreenKt.LiveTranslatorBackendCard has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (18 pts), match/switch 4 (8 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/LiveTranslatorScreen.kt"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcfa6526477a0062f3cdd907b3e4cbdfe4990999c170c6e4050bd07e698d5b23"}},{"ruleId":"D2","level":"warning","message":{"text":"TermuxScreenKt.ToolRunItem (cognitive 28): TermuxScreenKt.ToolRunItem has cognitive complexity 28 (threshold 15). Drivers by points: if/else 26, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt"},"region":{"startLine":1490}}}],"partialFingerprints":{"codehealthFindingId/v1":"1baac65204b0b9dc997acaba7f62e31768797341e3c0ff70ddb86b7574ca4a5e"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoInputPickerKt.VideoInputPicker (cognitive 28): VideoInputPickerKt.VideoInputPicker has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (16 pts), error handling 4 (8 pts), boolean chains 3, match/switch 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/VideoInputPicker.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb062894bf67c1600d1450571251f211b449a9ecee0293344942b0651e2d723"}},{"ruleId":"D2","level":"warning","message":{"text":"GeneralSettingsScreenKt.NativeBinaryCatalogSheet (cognitive 28): GeneralSettingsScreenKt.NativeBinaryCatalogSheet has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 4, match/switch 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"29555f265c011fc3785ed0716a21ff8204e1948f6873a7f0cfe7fbdf0a51d559"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemMonitor.readCpu (cognitive 28): SystemMonitor.readCpu has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 8, 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":"app/src/main/java/com/example/llamadroid/util/SystemMonitor.kt"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dab2893c6229b4c13a6c8eef1a88d46525f0ddc700422020c9e7beeb78f4687"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioGenerationService.onStartCommand (cognitive 27): AudioGenerationService.onStartCommand has cognitive complexity 27 (threshold 15). Drivers by points: error handling 5 (13 pts), if/else 5 (10 pts), boolean chains 3, match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/AudioGenerationService.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6494cc840f2f9cac939b85087c2c1d888d69ad4d6ed489a8a4ad1a58d19506b"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelArtifactRecognizer.isLikelyOnnxFile (cognitive 27): ModelArtifactRecognizer.isLikelyOnnxFile has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 5, match/switch 1 (2 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactRecognizer.kt"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7420fff942f1384955d89fbb9b4d14a8eb09e125401a879e006a2c928318d36"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentControlPromptSupportKt.preserveToolControlContent (cognitive 27): AgentControlPromptSupportKt.preserveToolControlContent has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 6, match/switch 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentControlPromptSupport.kt"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b4994953fed8553ad3f15a308cb33f316bee8fc235eeda53768a738b09ea5c"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.setIsLoading (cognitive 27): AgentService.setIsLoading has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 3, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":3141}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3d2042cd09a4770beb885c930a1270f08ac81f3003c83fc6054376a9f7838b"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadService.finalizePendingDownload (cognitive 27): DownloadService.finalizePendingDownload has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 4, error handling 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DownloadService.kt"},"region":{"startLine":1791}}}],"partialFingerprints":{"codehealthFindingId/v1":"e43833ce1870c23782c903760630395dca081291ef9c601965e0141b0aa1fe3a"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoGenerationService.runGeneration (cognitive 27): VideoGenerationService.runGeneration has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18 (19 pts), boolean chains 6, error handling 1, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa037084fc65ccd4fd565cdf9add3192a3bb56192dd9e50f0c7d5a5880194a43"}},{"ruleId":"D2","level":"warning","message":{"text":"PetTransferCoordinator.runOutbound (cognitive 27): PetTransferCoordinator.runOutbound has cognitive complexity 27 (threshold 15). Drivers by points: if/else 22 (23 pts), boolean chains 2, error handling 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferCoordinator.kt"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"578edada6e27c9878123685f7173f0bcee500495a98a420243fbafdb55d9eb1c"}},{"ruleId":"D2","level":"warning","message":{"text":"FarmLivestockScreenKt.FarmLivestockScreen (cognitive 27): FarmLivestockScreenKt.FarmLivestockScreen has cognitive complexity 27 (threshold 15). Drivers by points: if/else 22, boolean chains 3, loops 1, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/FarmLivestockScreen.kt"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d88da7b9180dcf9a038561ebf7d8768646d5b3afe5aacebae1fefa13beb5e9"}},{"ruleId":"D2","level":"warning","message":{"text":"DatasetProjectScreenKt.ChunksTab (cognitive 27): DatasetProjectScreenKt.ChunksTab has cognitive complexity 27 (threshold 15). Drivers by points: if/else 25 (26 pts), boolean chains 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"85fb489e9d2475341e25029a451210afc86d3cfdb1c1353bbbeeb438442a4fec"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelManagerScreenKt.DiscoverTab (cognitive 27): ModelManagerScreenKt.DiscoverTab has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 9 (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":"app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt"},"region":{"startLine":1296}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75428bda7a21cf9eed615c71828fdf38a2d21f90681bc89b145fd767d73b423"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelShareScreenKt.ModelShareScreen (cognitive 27): ModelShareScreenKt.ModelShareScreen has cognitive complexity 27 (threshold 15). Drivers by points: if/else 22 (24 pts), boolean chains 2, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelShareScreen.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e07f4dbb8223ed6760fc618549500250a943ed8bd3faaafd110ea00120284fc"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioGenerationService.runJob (cognitive 26): AudioGenerationService.runJob has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (19 pts), error handling 3 (4 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/AudioGenerationService.kt"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b35773ff6dad776e8f3f1c1455f89c275aaa40d129976bbfe2b71d33d5e461"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.deleteMemoryLines (cognitive 26): AgentService.deleteMemoryLines has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 2, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":20197}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3bfb32b231e29c75248a4474c807c13de0482bd81597fe6479750990e88c13"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFService.recognizePaintedTextBlocksWithLlama (cognitive 26): PDFService.recognizePaintedTextBlocksWithLlama has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":4028}}}],"partialFingerprints":{"codehealthFindingId/v1":"3353435f42ea7026bbe71c505260a718ddb968ccccb4068b17bbf36cdb650960"}},{"ruleId":"D2","level":"warning","message":{"text":"FsReadApi.search (cognitive 26): FsReadApi.search has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/filestation/api/FsReadApi.kt"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6abc90775dfacf90e3987d93a3d8d7d38c4737060e130922af81b30bca66a14"}},{"ruleId":"D2","level":"warning","message":{"text":"VolumeRegistry.transferNamed (cognitive 26): VolumeRegistry.transferNamed has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 4, match/switch 1 (3 pts), error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/filestation/volume/VolumeRegistry.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef63a6e8a3bf78990bbb421597a10036cf9d7a28f43da5158f265a9cbb03fbf"}},{"ruleId":"D2","level":"warning","message":{"text":"ArcadeMemoryGameKt.MemoryCardTile (cognitive 26): ArcadeMemoryGameKt.MemoryCardTile has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17 (18 pts), boolean chains 8 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/ArcadeMemoryGame.kt"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"a652fd94c5a8da0cbdf4902241b87fe4b237814aa23361ca51ca13feb4778609"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessExtensionsPanelsKt.HarnessPluginsCard (cognitive 26): HarnessExtensionsPanelsKt.HarnessPluginsCard has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17, match/switch 3 (5 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessExtensionsPanels.kt"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c2f4e946dab70881ec9e78778862450c64642a8cf1f951438464a98b18abc0"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessScreenKt.HarnessSchemaFieldControl (cognitive 26): HarnessScreenKt.HarnessSchemaFieldControl has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (19 pts), match/switch 3 (7 pts) (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt"},"region":{"startLine":1876}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c3174f83272a09ef3a9851b9f7475caf324cfda3c9f7e569af5997f88adb06c"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessQueueStore.parseItem (cognitive 26): NativeHarnessQueueStore.parseItem has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessQueueActions.kt"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"da39a9417901325e1d8febfc265e8b2fc8947dd082a63a3bb28dd54bb9cd5385"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoReuseDialogKt.VideoReuseDialog (cognitive 26): VideoReuseDialogKt.VideoReuseDialog has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 4, error handling 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoReuseDialog.kt"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"82582335226dc9282f24587116d47f474580285fc14b24b5c851b28705677d66"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeChatWorkspaceDialogKt.NativeChatWorkspaceDialog (cognitive 26): NativeChatWorkspaceDialogKt.NativeChatWorkspaceDialog has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/NativeChatWorkspaceDialog.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"c827eb1d72b6218a02d4d0c65a1bf5ff0fe16031efcf49f11f646fbe94255551"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatMessageItemKt.ThinkingMessageContent (cognitive 26): ChatMessageItemKt.ThinkingMessageContent has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageItem.kt"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"b164d3207ee8a4cd336b4825c5319a503e3d8e74f53bc0335250e9c1db43b9e9"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatMessageListKt.ChatMessageList (cognitive 26): ChatMessageListKt.ChatMessageList has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18 (22 pts), boolean chains 4 (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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageList.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d49b8b799ed800de06c90726ef4eb04f4b9e1d8fca2d05eaad0b219a6d6fea"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatTopBarKt.ChatTopBar (cognitive 26): ChatTopBarKt.ChatTopBar has cognitive complexity 26 (threshold 15). Drivers by points: if/else 22 (23 pts), boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatTopBar.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"39225b438b38f7cc69469c1342a8dd2c11f8206b03138dcb432822b282c7d959"}},{"ruleId":"D2","level":"warning","message":{"text":"AllMediaGalleryScreenKt.AllMediaGalleryScreen (cognitive 26): AllMediaGalleryScreenKt.AllMediaGalleryScreen has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19 (23 pts), boolean chains 2, 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":"app/src/main/java/com/example/llamadroid/ui/library/AllMediaGalleryScreen.kt"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"551599b0efa194f1355067b3968b3a03c21884d769a51e66422a1f6122579c36"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelArtifactRecognizer.isLikelyWhisperFile (cognitive 25): ModelArtifactRecognizer.isLikelyWhisperFile has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 7, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactRecognizer.kt"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e9a18c1b367d8acc2bbeb3d9ba8311b9e1cdbbb989712d745ee404c94b2ab6"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessBridgeOperations.appToolsStatus (cognitive 25): HarnessBridgeOperations.appToolsStatus has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessBridgeOperations.kt"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1dfb91701ec5cdb73e2f029d969bd7bd11348ea53eeee468ab76d3ec17fac4d"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteRtLmReflectionBridge.generateStreaming (cognitive 25): LiteRtLmReflectionBridge.generateStreaming has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 4, loops 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt"},"region":{"startLine":1551}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc29b645aeacb3f879dfa4fcaf00c79ed569cfb5e849794a0c46684d99a4b47"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteRtLmChatServiceKt.compactLiteRtSchemaValue (cognitive 25): LiteRtLmChatServiceKt.compactLiteRtSchemaValue has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 2 (4 pts), boolean chains 3, match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"6296fe5152b0bea783515cc094d7fd760ed91473bd11c29bb5735d88adc7a2e2"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeChatToolConfig.effectiveWithServerDefaults (cognitive 25): NativeChatToolConfig.effectiveWithServerDefaults has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 25. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"53087c61f245ec5e713f65b4d8853e1f400bafe9d1bb64cb1e74c52f361d5402"}},{"ruleId":"D2","level":"warning","message":{"text":"QuadtrixTrainingService.startProfile (cognitive 25): QuadtrixTrainingService.startProfile has cognitive complexity 25 (threshold 15). Drivers by points: if/else 23 (24 pts), boolean chains 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/QuadtrixTrainingService.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d4eef6533b8f95f5d51ad610d93cf00f2b1330f1afaa2cb0d85742ea7272c2"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoUpscalerService.upscaleFrames (cognitive 25): VideoUpscalerService.upscaleFrames has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 5, error handling 2 (3 pts), loops 2, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoUpscalerService.kt"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e84780e8f9f5c7aeac284649b19386bf54c236514ebb5a80d423edce68a15a"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaGameEngine.restoreTransferBundle (cognitive 25): TamaGameEngine.restoreTransferBundle has cognitive complexity 25 (threshold 15). Drivers by points: if/else 23 (24 pts), loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":3523}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f360b7ede8162b774967e6a1f9f82a0e129a59066fd8ac603109e7f402a007"}},{"ruleId":"D2","level":"warning","message":{"text":"ShimejiOverlayService.configureTouch (cognitive 25): ShimejiOverlayService.configureTouch has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 2, match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/shimeji/ShimejiOverlayService.kt"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"a763061a54d264a7d792bd577401a64449f9c7a1204157c462db68f53ed754ff"}},{"ruleId":"D2","level":"warning","message":{"text":"StoreScreenKt.StoreItemRow (cognitive 25): StoreScreenKt.StoreItemRow has cognitive complexity 25 (threshold 15). Drivers by points: if/else 23 (25 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/StoreScreen.kt"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aceb680cf712df3b3f6f5d339f817ff3396540e28299d5ea29e8a9e9107a82c"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChatListKt.ToolCallGroupRow (cognitive 25): AgentChatListKt.ToolCallGroupRow has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentChatList.kt"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b3d783ca5c63ff8c2c052158bc15ecd406e86cd3dbab3cf4cb4a5521fbccac"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessRuntimeInstallationsKt.RuntimeInstallationCard (cognitive 25): HarnessRuntimeInstallationsKt.RuntimeInstallationCard has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 9 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeInstallations.kt"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"77836c35f70a5612b8d2edffc17556525e11d1cec4d62fcb5d14c207ca1217f7"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessScreenKt.HarnessTranscriptCard (cognitive 25): HarnessScreenKt.HarnessTranscriptCard has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 5, match/switch 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"72338bce802b34c90be763d2c2c200eafeb4c4fe95c6e807b8422d328e96c7b9"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessProviderSaveKt.parseProviderField (cognitive 25): NativeHarnessProviderSaveKt.parseProviderField has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (21 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessProviderSave.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17e90cbb023162dc663f9c323d699e8b410802b976367b808276dd9d23750f5"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessSchemaKeysKt.harnessSchemaPathFromKey (cognitive 25): NativeHarnessSchemaKeysKt.harnessSchemaPathFromKey has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (22 pts), loops 2, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessSchemaKeys.kt"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e958445362bfcf93c62592928351b0a24353821d9901fd5375443dbc3d28724"}},{"ruleId":"D2","level":"warning","message":{"text":"GenerationQueueScreenKt.GenerationQueueHistoryScreen (cognitive 25): GenerationQueueScreenKt.GenerationQueueHistoryScreen has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18 (21 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/GenerationQueueScreen.kt"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60c2e7e8559c3ec625e9b6369d4b99bcae86a2208d82e3b75d82e1424ee50b7"}},{"ruleId":"D2","level":"warning","message":{"text":"InpaintMaskEditorKt.InpaintMaskEditorContent (cognitive 25): InpaintMaskEditorKt.InpaintMaskEditorContent has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 4, loops 2, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/InpaintMaskEditor.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f66b44b256d93df23656fb2d391f9cef45e7cc694c85799f91a5f0478a3df73"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSettingsSectionsKt.ImageToolsSection (cognitive 25): ChatSettingsSectionsKt.ImageToolsSection has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 3 (11 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsSections.kt"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"468931b20c04d8c5913a37d7753c537d4f6f4474801e4fb6629a5cf1497bcf16"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelLibraryScreenKt.ModelLibraryScreen (cognitive 25): ModelLibraryScreenKt.ModelLibraryScreen has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 4, match/switch 3 (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":"app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryScreen.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d1a4b1276caa18c6400961b4d629fd845903498b26fcd093119a53b8062e33"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalSearchScreenKt.GlobalSearchScreen (cognitive 25): GlobalSearchScreenKt.GlobalSearchScreen has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18 (25 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/search/GlobalSearchScreen.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6fc360f3b68daacc76aa4475b31a7879040cb4805be9ec5efb9e4f20586a103"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemPromptsSettingsScreenKt.SystemPromptsSettingsScreen (cognitive 25): SystemPromptsSettingsScreenKt.SystemPromptsSettingsScreen has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (18 pts), match/switch 3 (6 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/SystemPromptsSettingsScreen.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad4c5e7168788d6d9789d522ede8b652a6b4c1d5d59d6a070f2a70a6677aeae"}},{"ruleId":"D2","level":"warning","message":{"text":"MainActivityKt.OrganizerScreen (cognitive 25): MainActivityKt.OrganizerScreen has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 5 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":2243}}}],"partialFingerprints":{"codehealthFindingId/v1":"90af453f91afa2460d2c18c1e2147ad9e1f6e14fb2e6abe6f7532e7e5b80d1df"}},{"ruleId":"D2","level":"warning","message":{"text":"app.collectParams (cognitive 25): app.collectParams has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 5, ternaries 1 (nesting depth added 5). Most of this is not in the body itself: 8 of the 25 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1586, 1615). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/ai_servers_webui/app.js"},"region":{"startLine":1583}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f56cdd1a503114b754e3e74801458e7aca625ff87c00c3f7c353e7b82fafdfb"}},{"ruleId":"D2","level":"warning","message":{"text":"selection.initSelection (cognitive 25): selection.initSelection has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 9, match/switch 1 (nesting depth added 3). None of this is in the body itself: all 25 points belong to 2 function literals inside it that branch (lines 175, 155). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/file_station_webui/js/selection.js"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f22a8a3f4bd53b19e2f63d1f822ef525f3c0629279212c199cff7a9676a34c2"}},{"ruleId":"D2","level":"warning","message":{"text":"BinaryRepository.deployAllBinaries (cognitive 24): BinaryRepository.deployAllBinaries has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8da85a984a58fddf2c39fd335de0223bc13477f70188bb098c6464fb237375b"}},{"ruleId":"D2","level":"warning","message":{"text":"BinaryRepository.resolveLlamaBinary (cognitive 24): BinaryRepository.resolveLlamaBinary has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (19 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb0e941058ae9d9814e2c98b6b3014e3f79acd688f840cfac13823c67ea20b8d"}},{"ruleId":"D2","level":"warning","message":{"text":"RestoreCoordinator.installPending (cognitive 24): RestoreCoordinator.installPending has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (16 pts), error handling 4 (5 pts), boolean chains 2, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/RestoreCoordinator.kt"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a5dfb6b23429bb7dd63aaf7dab7f6760fd0b8e01b9158c8398ad286beae56b"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessAppToolsSettingsKt.HarnessAppToolsSettingsDialog (cognitive 24): HarnessAppToolsSettingsKt.HarnessAppToolsSettingsDialog has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14, boolean chains 7, match/switch 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAppToolsSettings.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc5990054a213685e9e667216e65c96bb82829180a9e3a6c921d72824c51a8c"}},{"ruleId":"D2","level":"warning","message":{"text":"SdArtifactInspector.detectVideoFamily (cognitive 24): SdArtifactInspector.detectVideoFamily has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 11, match/switch 5 (8 pts), if/else 5 (nesting depth added 3). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdArtifactInspector.kt"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cbecf250cd41b7b9c8ed6f4fdd6e568075155c5406c8e3f4e6f9e3d474fa47e"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.recoverToolCallAttempt (cognitive 24): AgentService.recoverToolCallAttempt has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (16 pts), error handling 1 (3 pts), loops 2 (3 pts), boolean chains 1, match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":16479}}}],"partialFingerprints":{"codehealthFindingId/v1":"479e58989d06551d4a3c7c729b1ada3aca4375ab2fe66e9d7a5e2807d8eb96bc"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolHttpServer.routeApi (cognitive 24): ToolHttpServer.routeApi has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 22, if/else 1, match/switch 1. The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc395f4f5036996fce7ad4495e5db289b0aed5932a2b3373778c2bdbed0f9cac"}},{"ruleId":"D2","level":"warning","message":{"text":"TombstoneWireReader.message (cognitive 24): TombstoneWireReader.message has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AndroidTombstoneSummary.kt"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0cc254a7fc022365ddf431728ddfbc2422718942ef29e7677584872cb135b18"}},{"ruleId":"D2","level":"warning","message":{"text":"DistributedService.startMasterConnectionMonitor (cognitive 24): DistributedService.startMasterConnectionMonitor has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), error handling 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DistributedService.kt"},"region":{"startLine":1172}}}],"partialFingerprints":{"codehealthFindingId/v1":"d54b4b45b216a93235f58779405006ab15c4d79e197a5bee71a06c4b208a9f74"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaServerSessionRuntime.launchProcess (cognitive 24): LlamaServerSessionRuntime.launchProcess has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 2, error handling 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerSessionRuntime.kt"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad6927edebcbe964664505e05bf02ec0d0ccd1f8cf44e7cc7e7cb3d81c2c961"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFService.renderTranslatedComicPagesToPng (cognitive 24): PDFService.renderTranslatedComicPagesToPng has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (21 pts), error handling 2, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":6896}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aabca0e831814eb20603e9f40b363261cfafc8b8b10451de919fbf077b65156"}},{"ruleId":"D2","level":"warning","message":{"text":"SSHService.executeCommandForTool (cognitive 24): SSHService.executeCommandForTool has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 3 (5 pts), boolean chains 2, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SSHService.kt"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"7319e0d7e886ad7b8225618aa8163a236f3a599f94d32ddfa8e394b8886b506b"}},{"ruleId":"D2","level":"warning","message":{"text":"SdDistributedRuntimeKt.buildRamWeightedSdPlacementPlan (cognitive 24): SdDistributedRuntimeKt.buildRamWeightedSdPlacementPlan has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18 (19 pts), boolean chains 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdDistributedRuntime.kt"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ecbf5a4f297bfd83bd7c495dd4794ac87ad9c5587c8c79e9233c3525b37494"}},{"ruleId":"D2","level":"warning","message":{"text":"UnifiedNotificationManager.showTaskNotification (cognitive 24): UnifiedNotificationManager.showTaskNotification has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 9, match/switch 2, error handling 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d24fcf5f8916237d3aa8ce0a8d70f8d50745a28e5411b5e735f4e1df6a14c0"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaGameEngine.buyItemLocked (cognitive 24): TamaGameEngine.buyItemLocked has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 9, match/switch 1 (3 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":2694}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8223c1c72fad78d09a084fa6f2ed9225f2070d66f8361967e8264f2dfb7dec"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaStudySessionSupport.advanceActiveSession (cognitive 24): TamaStudySessionSupport.advanceActiveSession has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaStudySessionSupport.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"3947ba5f5abe5fba0951191debe44202ba0711030588e73d8c136fe7f8ee0ece"}},{"ruleId":"D2","level":"warning","message":{"text":"PetTransferServer.hello (cognitive 24): PetTransferServer.hello has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferServer.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a24f91e33001820941a59179b3473a5ee05e5412ed173c34256a4d8be8bd640"}},{"ruleId":"D2","level":"warning","message":{"text":"ArcadeScreenKt.advanceCatchGame (cognitive 24): ArcadeScreenKt.advanceCatchGame has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 3, match/switch 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt"},"region":{"startLine":1503}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3fc66fca23880d723bc41f78b52290a2c6137584be57a9717f6966e72629696"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaMapViewKt.LocationDetailsDialog (cognitive 24): TamaMapViewKt.LocationDetailsDialog has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17 (23 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaMapView.kt"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd6e2a342eaabf3db6b69ae474717674049102611ce35c7cb1dac74d945fb453"}},{"ruleId":"D2","level":"warning","message":{"text":"FarmLayoutKt.UpgradeItem (cognitive 24): FarmLayoutKt.UpgradeItem has cognitive complexity 24 (threshold 15). Drivers by points: if/else 19, boolean chains 5. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmLayout.kt"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd711ab33742d28e1c12c512019c7cebe291b76df522c8aca0ee11b318d7a021"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentWorkflowPanelsKt.QuestionSpecPanel (cognitive 24): AgentWorkflowPanelsKt.QuestionSpecPanel has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkflowPanels.kt"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"4464e371c5662aebfdae1dbcf17545f58f571d01beb6211815205e702983d6ad"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessScreenKt.HarnessProviderCard (cognitive 24): HarnessScreenKt.HarnessProviderCard has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 6, match/switch 2 (3 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt"},"region":{"startLine":1419}}}],"partialFingerprints":{"codehealthFindingId/v1":"266be0027dbcfc9438739a6cf6cf3dce6db8b2b0cdd312cf65f898d26a3d3696"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessTurnDetailsKt.nativeHarnessUsageFromEvent (cognitive 24): NativeHarnessTurnDetailsKt.nativeHarnessUsageFromEvent has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 6 (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":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessTurnDetails.kt"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"7207a56baafae1abe302477181670bcae9a03d7fea635422ced313aa0592f105"}},{"ruleId":"D2","level":"warning","message":{"text":"SDModelsScreenKt.inferSelectionType (cognitive 24): SDModelsScreenKt.inferSelectionType has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 22, if/else 1, match/switch 1. The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":2431}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a890f1637ade30a2c3985d1606a952fc3c63239316afdde043b02306c7b8f80"}},{"ruleId":"D2","level":"warning","message":{"text":"DelegationSubagentTabKt.RowCard (cognitive 24): DelegationSubagentTabKt.RowCard has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 4, match/switch 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/delegation/DelegationSubagentTab.kt"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"4416d9e31727130a50e283d38a254ca6f75e26880474f8ab7684e7c7b739ee40"}},{"ruleId":"D2","level":"warning","message":{"text":"ApprovalQueueDialogKt.StagedFileCard (cognitive 24): ApprovalQueueDialogKt.StagedFileCard has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18 (23 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/ApprovalQueueDialog.kt"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"caab9e6b0ac8fc9e708fe650ec8e4c12041a51ebb34f6f888a5d1153967d9da4"}},{"ruleId":"D2","level":"warning","message":{"text":"FileStationScreenKt.StatusSection (cognitive 24): FileStationScreenKt.StatusSection has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18 (20 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/filestation/FileStationScreen.kt"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"95520ef8cb0401c6b1bd7c03044f06580f1195d04d345327f538e8201a8239d0"}},{"ruleId":"D2","level":"warning","message":{"text":"LlmSavedCommandsCardKt.LlmSavedCommandsCard (cognitive 24): LlmSavedCommandsCardKt.LlmSavedCommandsCard has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 5 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/LlmSavedCommandsCard.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0fdf9de97b428cbb1bbf3541234e9afcc512422e5b24d423456d6fcb3450d9"}},{"ruleId":"D2","level":"warning","message":{"text":"MainActivityKt.localizedTamaLocationLabel (cognitive 24): MainActivityKt.localizedTamaLocationLabel has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 18, if/else 5, match/switch 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":3165}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0ddafef26f301c1431d9e1001c11d4b4090f09d9b906ead5464c87f56bd3da"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessLocalModels.streamLlamaServer (cognitive 23): HarnessLocalModels.streamLlamaServer has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 3, loops 2, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessLocalModels.kt"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a0adbcc039831e99f271380753e323854e762a7c4a9a79b85804ff7370b036c"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessOriginalWebViewKt.authenticatedHarnessStaticResponse (cognitive 23): HarnessOriginalWebViewKt.authenticatedHarnessStaticResponse has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 3, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessOriginalWebView.kt"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b68ba3a7165178f4e1d808ff35dc8293302df40f848609acf156afc11f3b227"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessRuntimePresentationKt.runtimePresentation (cognitive 23): HarnessRuntimePresentationKt.runtimePresentation has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 12, if/else 10, match/switch 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessRuntimePresentation.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f618aab91c349eb658a23907c61ab983e9befa829333817b5828f7312e484935"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessTransferMappings.review (cognitive 23): HarnessTransferMappings.review has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 8, 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":"app/src/main/java/com/example/llamadroid/harness/HarnessTransferMappings.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"134b83d85331d7dfecdf0ade679f2ad1d51c843f063aac16e11d2ee5f25a4cd2"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessRuntimeController.reconcileStaleLocked (cognitive 23): HarnessRuntimeController.reconcileStaleLocked has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 10, error handling 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"600b2a2c7801f61d61dacb02ffd6ab6dcb76cc42bd95da6822038b3997302d1e"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessTransferConfiguration.walk (cognitive 23): HarnessTransferConfiguration.walk has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 5, match/switch 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferConfiguration.kt"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"3534b1337d069fa02d8e6c28d4954afa7143c316721e1278c1adfcb4f22e3d55"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentProjectControlPlane.buildControlPacket (cognitive 23): AgentProjectControlPlane.buildControlPacket has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17 (18 pts), boolean chains 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":2349}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a0b5f2229c511618728ec7acb09dae95d9098323506ec135ce7178a78321ce"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelShareService.getAllLocalIpAddresses (cognitive 23): ModelShareService.getAllLocalIpAddresses has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (10 pts), match/switch 1 (5 pts), boolean chains 4, loops 2 (3 pts), error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ModelShareService.kt"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47822c481f93dc14352c49a40e498a24fe76647a189d0f09080de7024a7a453"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFService.detectBubbleOcrRegions (cognitive 23): PDFService.detectBubbleOcrRegions has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 7, loops 4 (6 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":5118}}}],"partialFingerprints":{"codehealthFindingId/v1":"3707e3b2e31e8b084110ae97ccc9ce1ea4c82715c071aa2524b8fdcc89e62d2e"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionService.runGenerationWithBinary (cognitive 23): StableDiffusionService.runGenerationWithBinary has cognitive complexity 23 (threshold 15). Drivers by points: error handling 9, if/else 8 (9 pts), match/switch 2 (3 pts), loops 2 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c68ba9d2ae594099be1e9b474fb8348261e38fa9043324038dc08f361f919da"}},{"ruleId":"D2","level":"warning","message":{"text":"ZimShareService.getAllLocalIpAddresses (cognitive 23): ZimShareService.getAllLocalIpAddresses has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (10 pts), match/switch 1 (5 pts), boolean chains 4, loops 2 (3 pts), error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ZimShareService.kt"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d533e332cd692677cb2540b62e666938d879cfda98e2729d3439209932c77d"}},{"ruleId":"D2","level":"warning","message":{"text":"DelegateSubagentToolbox.send (cognitive 23): DelegateSubagentToolbox.send has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 3, error handling 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegateSubagentTools.kt"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fc1aec0e3c95d28bfa7eaa4c0e162bd8e5adcab73b4e199cf59ade02605272d"}},{"ruleId":"D2","level":"warning","message":{"text":"GgufModelShapeReader.read (cognitive 23): GgufModelShapeReader.read has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 3, match/switch 1 (2 pts), error handling 1, loops 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ram/GgufModelShapeReader.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d873221ffb4740557a5d36edbc03269e7711204736a86b4e902d66efce045a"}},{"ruleId":"D2","level":"warning","message":{"text":"AdventureGateJournalKt.buildChronicleSection (cognitive 23): AdventureGateJournalKt.buildChronicleSection has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (21 pts), loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateJournal.kt"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a781abd4a4d20d238aacfee35ee3f5c00b8f553aaa9727533faa327ca8c2e7"}},{"ruleId":"D2","level":"warning","message":{"text":"AdventureGateScreenKt.SkillLoadoutTreeRow (cognitive 23): AdventureGateScreenKt.SkillLoadoutTreeRow has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11, boolean chains 9, match/switch 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":2407}}}],"partialFingerprints":{"codehealthFindingId/v1":"16611ac931368b367a0538a9f6aa632226c84c05efc51c829ccabb4648964f45"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentControlsKt.ConnectionStatusBar (cognitive 23): AgentControlsKt.ConnectionStatusBar has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 9, match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c419f6ae4b188ec294d41264b1059863c9c0ea713a053efa291287207d7d60"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentWorkspaceScreenKt.AgentWorkspacePreviewTab (cognitive 23): AgentWorkspaceScreenKt.AgentWorkspacePreviewTab has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt"},"region":{"startLine":2505}}}],"partialFingerprints":{"codehealthFindingId/v1":"1283002b6a1547f455bfccb350d21fe20c740b0ffb20a731fe36343de57b4df1"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessRootfsFileBrowserKt.HarnessRootfsFileBrowser (cognitive 23): HarnessRootfsFileBrowserKt.HarnessRootfsFileBrowser has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, error handling 4, match/switch 3, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRootfsFileBrowser.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"99506892ba700bfbc85847c6d858c21281fce576a290d73182b4975db14572ef"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessRuntimeTransferKt.ImportTransferBody (cognitive 23): HarnessRuntimeTransferKt.ImportTransferBody has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18 (21 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeTransfer.kt"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f83aaf13a76c8df48e19117c8d5136dd6086a5be909be1b132443e3fe105f4"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessStructuredTranscriptPanelKt.NativeHarnessStructuredTranscriptCard (cognitive 23): NativeHarnessStructuredTranscriptPanelKt.NativeHarnessStructuredTranscriptCard has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessStructuredTranscriptPanel.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"151c9d95c8852154470504bd0f31a615727910b86f00913662ab2b0f097ee270"}},{"ruleId":"D2","level":"warning","message":{"text":"SDModelsScreenKt.SDModelsScreen (cognitive 23): SDModelsScreenKt.SDModelsScreen has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 3, error handling 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":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"bada8e522877f792fa694728e2ab67c0fb5a7ca179a2b752d32de7b035e3849b"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatDelegationServerBlocksKt.DelegationServerChoiceBlock (cognitive 23): ChatDelegationServerBlocksKt.DelegationServerChoiceBlock has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatDelegationServerBlocks.kt"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a727238739d57054de1819717126ca733bc05ac72ead4391763390385ca4121"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatDelegationSettingsSectionKt.ChatDelegationSettingsSection (cognitive 23): ChatDelegationSettingsSectionKt.ChatDelegationSettingsSection has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 3, 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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatDelegationSettingsSection.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb1f8b2e678e0bbe3f94ae13c387eaefec9ab259522d9d99b7713e0adf039330"}},{"ruleId":"D2","level":"warning","message":{"text":"DashboardKiwixCardKt.DashboardKiwixCard (cognitive 23): DashboardKiwixCardKt.DashboardKiwixCard has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19 (21 pts), boolean chains 1, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/dashboard/DashboardKiwixCard.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"667010299171c6772e469505a8f61b8b99edfb466f50185bce0f576929b9deb3"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicFeatureManager.installModule (cognitive 23): DynamicFeatureManager.installModule has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 1, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/DynamicFeatureManager.kt"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b85f2aca7ee17729b2a80c99ad912a75d0092db3f4f33880c8fc8ee5b1dc4f7"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioOutputStorage.persist (cognitive 22): AudioOutputStorage.persist has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 4 (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":"app/src/main/java/com/example/llamadroid/audio/AudioOutputStorage.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce04f6675ea2f0cf4cc0155bc049fde741138d130c05464502f20a9b8f30b52a"}},{"ruleId":"D2","level":"warning","message":{"text":"StableAudio3Request.validate (cognitive 22): StableAudio3Request.validate has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 15, if/else 6 (7 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/music/StableAudio3Models.kt"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0231ec0fddfc06d44760e9291891a5287f0169c910b7a5d79c6b06783d81b4"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRepository.downloadModel (cognitive 22): ModelRepository.downloadModel has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 3, error handling 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"447091650a0a1d5c435d66a2d23f423b5a5dbebd04626750d79d3ce104901680"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeBaseRepository.insertChunksFromReader (cognitive 22): KnowledgeBaseRepository.insertChunksFromReader has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"547994438d6a622eb83e9e335b26f8102eb3b350b381fffa756534b88a25ddf0"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessOriginalWebViewKt.scheduleHarnessWebViewBootProbe (cognitive 22): HarnessOriginalWebViewKt.scheduleHarnessWebViewBootProbe has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessOriginalWebView.kt"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5fc1b51f616e03cd18b3debf3bf35bb9723a50043736c89cca6e1b909b93f1a"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessProjectRuns.runOwned (cognitive 22): HarnessProjectRuns.runOwned has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (14 pts), error handling 2 (7 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessProjectRuns.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"072f3105b7723af2f7f0100270a22a4f63d893305af84bd2100286de11b255cb"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessReferencesDialogKt.HarnessReferencesDialog (cognitive 22): HarnessReferencesDialogKt.HarnessReferencesDialog has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (15 pts), error handling 2 (4 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessReferencesDialog.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2245fedf033a9b445d9aa07af537bf53e1a3dbdacd413340de781603ee38bab"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessRuntimeController.finishForceStop (cognitive 22): HarnessRuntimeController.finishForceStop has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"60aaf08a4c1e0a8ebdcce696200d6f5961d07ec1da4ec09743e5106004e4787b"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.packMessagesForContextOnce (cognitive 22): AgentService.packMessagesForContextOnce has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 7, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":15615}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09a9486cef6ff6642943635166b2134593aaeb78b2dba1df8e9ab3c5b252c3b"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.updatePromptContextSnapshot (cognitive 22): AgentService.updatePromptContextSnapshot has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":16299}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c8226b273d7cc5f7227a679b0bbb8b3489f3ff74733647bc48bfb72044a7aa"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteRtLeakedThinkingStreamFilter.filter (cognitive 22): LiteRtLeakedThinkingStreamFilter.filter has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt"},"region":{"startLine":2108}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c166431f277896c17bc841a03b084cb5ad386fc87655ce6c49ea2b7867c869"}},{"ruleId":"D2","level":"warning","message":{"text":"OllamaService.checkConnection (cognitive 22): OllamaService.checkConnection has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 3, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/OllamaService.kt"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e2f94824f910221cffc38ed732804e907b8a41a625d303838e1bb064f97e3a"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcessController.setupLibrarySymlinks (cognitive 22): ProcessController.setupLibrarySymlinks has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 2 (6 pts), loops 2 (3 pts), match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ProcessController.kt"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ecfb9da781f347c85432b0ba15ca50e45107ba0292dbb441c68d11d36e560e"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcessControllerKt.filterManagedLlamaCustomFlags (cognitive 22): ProcessControllerKt.filterManagedLlamaCustomFlags has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 6, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ProcessController.kt"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ea5219ecc20b65932d6b2d2d9d8c9042509fedc62430c7006c64c7df84e335"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionService.postProcessOutputIfNeeded (cognitive 22): StableDiffusionService.postProcessOutputIfNeeded has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (13 pts), error handling 4 (6 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"852686c9b28f80003d01bd06bc31f51f309a4610577394c1b1ee175cd566e66d"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessLatestPage.page (cognitive 22): HarnessLatestPage.page has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (22 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":"app/src/main/java/com/example/llamadroid/service/delegation/HarnessLatestPage.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"38055ffd03613ce12ffb613cb2320b19856a5ab604be64994392416804794b64"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaArcadeSessions.beginArcadeSession (cognitive 22): TamaArcadeSessions.beginArcadeSession has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaArcadeSessions.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a99de1cb11e731b40159d0621f48da1f098eccd0d3d6e006e716ae3afb95847b"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaGameEngine.usePotionLocked (cognitive 22): TamaGameEngine.usePotionLocked has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (21 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"847e1ee73db6b3ae2b6a8452831be980819d63d0d6a965b7f1d10d3688610668"}},{"ruleId":"D2","level":"warning","message":{"text":"AdventureGateArenaKt.EnemySprite (cognitive 22): AdventureGateArenaKt.EnemySprite has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15, boolean chains 4, match/switch 2, loops 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateArena.kt"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd3c797ca800a51f5d09225ab32ab70679e421ee1fbbcf4604f00c9a19be7e83"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentControlsKt.AgentContextWindowBanner (cognitive 22): AgentControlsKt.AgentContextWindowBanner has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15, boolean chains 4, match/switch 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"768d936dad759613e5fcd5ac5e5dfdcab496ce2f76189418fda8ab1fca80d2b0"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaSchedulerScreenKt.LlamaSchedulerScreen (cognitive 22): LlamaSchedulerScreenKt.LlamaSchedulerScreen has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d612ae085bcc97dfedc11a0ec5d9c871c9f5178bb6231f97b9e078a0269e53"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerDetailSheetKt.ServerDetailSheet (cognitive 22): ServerDetailSheetKt.ServerDetailSheet has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/ServerDetailSheet.kt"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf792d003189494784ae135bff83183360a09ec0afdb476fe2d6d025b10b176"}},{"ruleId":"D2","level":"warning","message":{"text":"CuratedModelBundleSectionKt.CuratedModelBundleCard (cognitive 22): CuratedModelBundleSectionKt.CuratedModelBundleCard has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, boolean chains 3, match/switch 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb86c7047ca3d9060c1c5f270be781c819149871ccb9aacf1f9698b4146823c6"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoUiAvailabilityKt.clearUnavailableAdvancedSelections (cognitive 22): VideoUiAvailabilityKt.clearUnavailableAdvancedSelections has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, boolean chains 5. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/VideoUiAvailability.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"be26f4f58d7dbb84fd460beb85ee338b97d3cf31b75b47d68633709b8df896d0"}},{"ruleId":"D2","level":"warning","message":{"text":"AssetPackManagerUtil.extractAssetDirectory (cognitive 22): AssetPackManagerUtil.extractAssetDirectory has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 2 (9 pts), boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/AssetPackManagerUtil.kt"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"40911418efc52d9bf2a8d43dd8ed6396eaa8081d1b5fb96e55270946b91bcf34"}},{"ruleId":"D2","level":"warning","message":{"text":"MainActivityKt.ChatDetailScreen (cognitive 22): MainActivityKt.ChatDetailScreen has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":1924}}}],"partialFingerprints":{"codehealthFindingId/v1":"141ef98c88a2f3b7d4a5c5dba1034b27a849647529fdaf880f159338b5085f64"}},{"ruleId":"D2","level":"warning","message":{"text":"MainActivityKt.MonthCalendarCard (cognitive 22): MainActivityKt.MonthCalendarCard has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (12 pts), match/switch 3 (9 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":2861}}}],"partialFingerprints":{"codehealthFindingId/v1":"87de91767950d1130f8ed307a99d5cc9eea521ccd4b5f9382ce147484c9e6ae7"}},{"ruleId":"D2","level":"warning","message":{"text":"BinaryRepository.legacyDeploy (cognitive 21): BinaryRepository.legacyDeploy has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 3, error handling 2 (3 pts) (nesting depth added 9). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt"},"region":{"startLine":1421}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8cdfc2e7ae713127fe85bdd9a736ab9e7bc44d994572e27f67d04b7db604014"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelArtifactLifecycle.deleteOwnedPathsWithProgress (cognitive 21): ModelArtifactLifecycle.deleteOwnedPathsWithProgress has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4, loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactLifecycle.kt"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14bccad5cfda1e341009a496cb5c6efb956a65c29d18ca895f25cbaee23ab01"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaServerRegistryKt.mergeUnifiedServers (cognitive 21): LlamaServerRegistryKt.mergeUnifiedServers has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (13 pts), match/switch 2 (4 pts), boolean chains 2, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/repository/LlamaServerRegistry.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee8316d4e90e0d89b42b3b65adc4528580bdc4a870cfcb377d8ec1abf1ad9b9"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessProjectManagement.loadGroup (cognitive 21): HarnessProjectManagement.loadGroup has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 8 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessProjectManagement.kt"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf409868cb44a739d7a042588ee1840ce55c946b7e72e9622082085acc75007"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessTerminalDialogKt.HarnessTerminalDialog (cognitive 21): HarnessTerminalDialogKt.HarnessTerminalDialog has cognitive complexity 21 (threshold 15). Drivers by points: error handling 6 (8 pts), if/else 7, boolean chains 5, loops 1 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessTerminalDialog.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd1562b76247cfcd9958f1e40251c90390405501279337cb0eea5519772ea1d"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.fetchUrl (cognitive 21): AgentService.fetchUrl has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 2, error handling 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":18401}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2597a11d6937e3aadeb0584f12a93b9ad26723223423bc2621e7d14da44cb1"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFTranslationJobService.startTextLayerPdfTranslationBatch (cognitive 21): PDFTranslationJobService.startTextLayerPdfTranslationBatch has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 3, error handling 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFTranslationJobService.kt"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a71cf828ebba44b406a4d3fd734ffbdbdd62a05c486c443e83a8b151f4e043"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFTranslationLogic.extractFlexibleTranslations (cognitive 21): PDFTranslationLogic.extractFlexibleTranslations has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (12 pts), match/switch 3 (4 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFTranslationLogic.kt"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c186c5109c7222840f62d0f79711d0495eae172d46ca8dd1c009f95c7983ac"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteMasterServer.handleDownload (cognitive 21): RemoteMasterServer.handleDownload has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (15 pts), error handling 3 (4 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteMasterServer.kt"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"a420d671d89e658715c0fad81f9831dd92adef3127125b4302f20e019f189bab"}},{"ruleId":"D2","level":"warning","message":{"text":"SSHService.executeCommandStreaming (cognitive 21): SSHService.executeCommandStreaming has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3 (5 pts), boolean chains 1, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SSHService.kt"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cfd7fcff6964d0677325b339bd69b427ba53b027e13a07bad6cfcca836e7fbd"}},{"ruleId":"D2","level":"warning","message":{"text":"SSHService.startToolLogTail (cognitive 21): SSHService.startToolLogTail has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (5 pts), error handling 3, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SSHService.kt"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b19b3a17665158eaa5b5cf08a135d7c67c6d26b763652109780b8ebd05069ef"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoGenerationService.onStartCommand (cognitive 21): VideoGenerationService.onStartCommand has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 1, match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c796822d6eea0dab8c1337a4d3af1dcce5ed30c5eb96cad7d0cae25e863bb89"}},{"ruleId":"D2","level":"warning","message":{"text":"FarmPetBrain.step (cognitive 21): FarmPetBrain.step has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (20 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmAmbientModel.kt"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3ea12b2ce0033cbfe494ba2a9b9c44470964af26dddf75966b5de80e8daf43"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessScreenKt.HarnessSessionCard (cognitive 21): HarnessScreenKt.HarnessSessionCard has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec1a376f7e779e2bb027dea489c31066aefda1cd87d9a8d59d4a64ef3e2903e"}},{"ruleId":"D2","level":"warning","message":{"text":"PageReader.read (cognitive 21): PageReader.read has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 4, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessTurnActions.kt"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1ea7372ccb9c86f28e34b79b6198d28259185c83bd0646a7fb5100d40574b3"}},{"ruleId":"D2","level":"warning","message":{"text":"SDModelsScreenKt.installedCapabilitiesFor (cognitive 21): SDModelsScreenKt.installedCapabilitiesFor has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 2, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":2541}}}],"partialFingerprints":{"codehealthFindingId/v1":"f513e7f4b5852b9b84fcb8cdd90ed542d57756d61089a2d0e067b520ee6edcdf"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowsScreenKt.MediaDubbingTranslationWorkflowContent (cognitive 21): WorkflowsScreenKt.MediaDubbingTranslationWorkflowContent has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 5, error handling 3, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":4734}}}],"partialFingerprints":{"codehealthFindingId/v1":"a648460603d67316bfd4d71a50da940a67ed83755132a656c0f3b8fcfb6f3259"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatComposerKt.ChatComposer (cognitive 21): ChatComposerKt.ChatComposer has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatComposer.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd3ff9dc01f3b3daddbb868b834267416416684dd1fc7e613abc7b8afe48a28"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSettingsSectionsKt.KnowledgeBaseSection (cognitive 21): ChatSettingsSectionsKt.KnowledgeBaseSection has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (21 pts) (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsSections.kt"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f1e4774055b3665214de07d84a76e545100803e098258b8da1bca5c507d4e4"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioWorkspaceModelsKt.validationErrors (cognitive 21): AudioWorkspaceModelsKt.validationErrors has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 10 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/AudioWorkspaceModels.kt"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"184f5e5d2beb7149b132053eb4f2da4e1b333f0227bb4b63f558c3fa1828e433"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioWorkspaceRuntimeController.toUiModel (cognitive 21): AudioWorkspaceRuntimeController.toUiModel has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, boolean chains 3, match/switch 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/AudioWorkspaceRuntimeController.kt"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db1d149885d8b41f3708da44f663ddadafbdb6e7bb68206089edd411e9c16c9"}},{"ruleId":"D2","level":"warning","message":{"text":"dialogs.h (cognitive 21): dialogs.h has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 2 (5 pts), boolean chains 4, loops 1 (nesting depth added 5). Of this number, 15 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/file_station_webui/js/dialogs.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a38c7bbc1203002d8264a42d32c763e68755c062f57c417996ba31812364e42"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsRepository.migrateDirectAgentSettingsPreferences (cognitive 20): SettingsRepository.migrateDirectAgentSettingsPreferences has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae22d2d92bce8c2e0f69399cf8c38e36824b62236a74ca1f69e4f5007889118"}},{"ruleId":"D2","level":"warning","message":{"text":"BinaryRepository.getSelectedNativeBinary (cognitive 20): BinaryRepository.getSelectedNativeBinary has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 3, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"d795d740df0cec7ab936fea9e5d94554b757281c0e5651bd3ee096d49870015d"}},{"ruleId":"D2","level":"warning","message":{"text":"TermuxTools.getRunCommand (cognitive 20): TermuxTools.getRunCommand has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (19 pts), match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/TermuxTools.kt"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4f0cb03cddb1a64b9034bf518adce8faece365285c086997fd6515716066c4"}},{"ruleId":"D2","level":"warning","message":{"text":"ProotManager.extractRootfs (cognitive 20): ProotManager.extractRootfs has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 2 (4 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/proot/ProotManager.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"967788d7e801589fd85b15e3165328e1a852125f33b627c2abda65f18c2a9a85"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessPromptNormalizer.normalize (cognitive 20): HarnessPromptNormalizer.normalize has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 3 (5 pts), match/switch 3 (4 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessPromptNormalizer.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cbb7d8d334d736dd7e1df0bf0af5754d154654b106ef8296f1bde04f984cb19"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessWorkspaceAccess.invoke (cognitive 20): HarnessWorkspaceAccess.invoke has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessWorkspaceAccess.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6572276e146eb76bda7adc0d98e14c6bc4cddc03e932e588953585f7d04054"}},{"ruleId":"D2","level":"warning","message":{"text":"OkHttpHarnessClient.callWithPolicy (cognitive 20): OkHttpHarnessClient.callWithPolicy has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/client/OkHttpHarnessClient.kt"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e209128c0fa571650af56d403e20614509bd95949a846d0c4b5ce32e4e9fba"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentProjectControlPlane.classifyVerificationCheck (cognitive 20): AgentProjectControlPlane.classifyVerificationCheck has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (10 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a4d1d918ecc561227001d660732e1ac58c908baccba01a63f276db3e39c180"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentProjectControlPlane.applyVerificationResult (cognitive 20): AgentProjectControlPlane.applyVerificationResult has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, match/switch 3 (5 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"da04e86fa530f649f8f0c173832535f0614a4f0060e7ee48c17231ca8f88a781"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.writeMemory (cognitive 20): AgentService.writeMemory has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (19 pts), error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (AgentService.rewriteMemory) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":20069}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b99a67f4b9e697578371b2f8b566416273c59c7e7db2d92ca529271d1ab370"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.rewriteMemory (cognitive 20): AgentService.rewriteMemory has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (19 pts), error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (AgentService.writeMemory) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":20136}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e6edba76225426e497d004858b0767612e97063dadf78bcf9eaf6816644152"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.kiwixSearch (cognitive 20): AgentService.kiwixSearch has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), error handling 2 (3 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":20676}}}],"partialFingerprints":{"codehealthFindingId/v1":"c305aa6f4ab8ab03a793bd6bf3712b045cef64e4f706124a8c5e90bca5fbe7a7"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolHttpServer.startImageJob (cognitive 20): ToolHttpServer.startImageJob has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (17 pts), match/switch 2 (3 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"facf47784c8e4154e179e43016026ffde8473d5675ce32ab401991ff4e333d60"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaServerSessionRuntime.start (cognitive 20): LlamaServerSessionRuntime.start has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 7, error handling 1, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerSessionRuntime.kt"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b71b5afa2ae02bed106c33339a6cfeaac652f357f56e75642dc944341634f0a"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFSummaryLogic.splitOversizedSegment (cognitive 20): PDFSummaryLogic.splitOversizedSegment has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFSummaryLogic.kt"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"f381670227a2bd6a83de2d032051e19c8a264ea571f3e65fce0e52c0af5e4531"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteMasterServer.handleSpeculative (cognitive 20): RemoteMasterServer.handleSpeculative has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 1, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteMasterServer.kt"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4348ab36466b1c2ef017b4ac2e9686e2fea3b9266bb67c5ad0392816dd54478"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionService.onStartCommand (cognitive 20): StableDiffusionService.onStartCommand has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 2, match/switch 1 (nesting depth added 4). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"30843faae6047f611f5163113d43731fdab5f3bdf5c299dd01bb4cf3e54ed833"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaDailyDreamManager.buildDreamPlan (cognitive 20): TamaDailyDreamManager.buildDreamPlan has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 6 (8 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaDailyDreamManager.kt"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd595fa54fc07118e1b485e90b364919db081fbda719ec68e825e875a5a01fda"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaDailyDreamManager.fetchBackendMetadataWithConnectionLimit (cognitive 20): TamaDailyDreamManager.fetchBackendMetadataWithConnectionLimit has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaDailyDreamManager.kt"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ae98b9df95c440b2d226e192df04931a291ba844cf66dfb9f138fe8bdc2b7f"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaDailyDreamManager.extractDreamTextValue (cognitive 20): TamaDailyDreamManager.extractDreamTextValue has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 1 (3 pts) (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaDailyDreamManager.kt"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"32665e3b9f58e74335df73c22ffa4d03aa538c4ea0610327ba60cb72bbbbff34"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaDeepDreamRunCoordinator.reconcileAlbumState (cognitive 20): TamaDeepDreamRunCoordinator.reconcileAlbumState has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaDeepDreamRunCoordinator.kt"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59e2bc1fa70231503c703ddb086d165363cb502e0ff37fcd083e1708f1f4379"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessGoalPanelKt.HarnessGoalPanel (cognitive 20): HarnessGoalPanelKt.HarnessGoalPanel has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 6, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessGoalPanel.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b77f9cdce1a2a7779f89a4f8dd5be583a152f438ef166567cce72d029902000"}},{"ruleId":"D2","level":"warning","message":{"text":"OnnxTtsGalleryScreenKt.OnnxTtsGalleryScreen (cognitive 20): OnnxTtsGalleryScreenKt.OnnxTtsGalleryScreen has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxTtsGalleryScreen.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d8f96848abb39880ff76bbe307835924096194b191962ca01a12d494a09c90"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoGenScreenKt.buildVideoGenerationInfoText (cognitive 20): VideoGenScreenKt.buildVideoGenerationInfoText has cognitive complexity 20 (threshold 15). Drivers by points: if/else 19, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt"},"region":{"startLine":2389}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da20fa5108371006605e3e3c72144d6d5791e6d047beb11ba79a3155cd71007"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSettingsGroupsKt.ChatSettingsGroupList (cognitive 20): ChatSettingsGroupsKt.ChatSettingsGroupList has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17 (18 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsGroups.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66546a2632bc20a5bcd07258be6ac28a9cc4a6c7b067780a489dee96b2691b3"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoInputPickerKt.importVideoFrameDirectory (cognitive 20): VideoInputPickerKt.importVideoFrameDirectory has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/VideoInputPicker.kt"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea635fca023064a6e29384ed9648e3e8c6167d2ffc7fd09347673530a9c997e4"}},{"ruleId":"D2","level":"warning","message":{"text":"EasyModelImporterKt.EasyModelImportSection (cognitive 20): EasyModelImporterKt.EasyModelImportSection has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, match/switch 3, boolean chains 2, error handling 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/easy/EasyModelImporter.kt"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c3462bb534682fa09314e35136a15c263e45dfe796d990fa867f8aa7d02bfe"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelPromotionDialogKt.PromoteArtifactDialog (cognitive 20): ModelPromotionDialogKt.PromoteArtifactDialog has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelPromotionDialog.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7947d48eb0ebb4d12eb5f9c9f7e517f062648fe9927d8f6d0e79daa112b3b1"}},{"ruleId":"D2","level":"warning","message":{"text":"WearCompanionStore.sendRpc (cognitive 20): WearCompanionStore.sendRpc has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 2, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"f487b9342577d18f6c9bdc2055e820685967ed1ee16aeb222eb5d80b80c2623d"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelSourceRepository.promotePendingArtifact (cognitive 19): ModelSourceRepository.promotePendingArtifact has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt"},"region":{"startLine":1994}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ed573e225382b858041451b69f07df38b1b666b0fe031f382f585af26625cd"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentPreviewObservation.toJson (cognitive 19): AgentPreviewObservation.toJson has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4, loops 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentPreviewBridge.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aaf7dad04f5098719ed46378f602eb2aa0161ab377134c9aeec137eb591f825"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentProjectControlPlane.todoOutcomeForReport (cognitive 19): AgentProjectControlPlane.todoOutcomeForReport has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (16 pts), match/switch 2, boolean chains 1 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":3142}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdacb4cf3a8b034010c4ae0cf75e802cf2f24ebe0fe34c27104d6d8dcf4f590a"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.listDirectory (cognitive 19): AgentService.listDirectory has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3, match/switch 1 (2 pts), error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":1425}}}],"partialFingerprints":{"codehealthFindingId/v1":"908a296325c9bf60b802e4e7279633b2f7164572a2807e73bb40d4c2d77cfc58"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.addMessage (cognitive 19): AgentService.addMessage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 8, error handling 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":6635}}}],"partialFingerprints":{"codehealthFindingId/v1":"a460f4e8222ab6b8f29d6b1734625f3ca402eb8b17779fa0e001e7411cf3ab4b"}},{"ruleId":"D2","level":"warning","message":{"text":"AiServerNetwork.localIpv4Addresses (cognitive 19): AiServerNetwork.localIpv4Addresses has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), match/switch 1 (4 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiServerSupport.kt"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"0870ba90da340127f90c65492e57ac058244629af26bde4f1a1d8985c454d02f"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolHttpServer.watchDatasetJob (cognitive 19): ToolHttpServer.watchDatasetJob has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":2520}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd6091d272d474fee30107457151b22c0aab183045b7819454375ed5c733bb7c"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomToolHttpExecutor.prepare (cognitive 19): CustomToolHttpExecutor.prepare has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/CustomToolHttpExecutor.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a623d99aeaa53e2c99c7daa6611a73dd0ceb60e7223b8d1d1175440a59d89c"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadService.cancelDownloadInternal (cognitive 19): DownloadService.cancelDownloadInternal has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, error handling 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DownloadService.kt"},"region":{"startLine":1204}}}],"partialFingerprints":{"codehealthFindingId/v1":"1631cf5521880a427213213dfdc7bd33cbfdf629616c798e1c3ea3dbf707ac50"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaServerChatService.chatWithToolsStreaming (cognitive 19): LlamaServerChatService.chatWithToolsStreaming has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 3, error handling 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerChatService.kt"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"d316c0ffd1ecd30a691026ae1edfaf428a334f7f23975af4bdd71f0378fc62ab"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeChatLocalServerStarter.waitForHealth (cognitive 19): NativeChatLocalServerStarter.waitForHealth has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 4, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatLocalServerStarter.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ab09c2eaa79020be5432bc15a39920ed2cbca46e6f97bc93b7758e0859cbbb5"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeCalculatorParser.parseNumber (cognitive 19): NativeCalculatorParser.parseNumber has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, if/else 4 (6 pts), loops 3 (5 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":4160}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe950b7fb8df75fdf7fd8f6969d6e7d7889c4df1a82deb3fb1caf834adf15b9"}},{"ruleId":"D2","level":"warning","message":{"text":"OllamaService.chat (cognitive 19): OllamaService.chat has cognitive complexity 19 (threshold 15). Drivers by points: loops 5 (9 pts), if/else 3 (5 pts), error handling 3 (4 pts), boolean chains 1 (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/OllamaService.kt"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a188e6980e5bab7823d69508bcc0ee84e519698ff92a9ff27cdff44341e812c"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFService.compressPdf (cognitive 19): PDFService.compressPdf has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), error handling 5 (8 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":7679}}}],"partialFingerprints":{"codehealthFindingId/v1":"763614da9ccbad986aa1df5c38cd599ec903d8b6c95ad4a5630887b386d5df9c"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcessController.appendVideoArgsIfNeeded (cognitive 19): ProcessController.appendVideoArgsIfNeeded has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 3, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ProcessController.kt"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3959141055cd3ffdec236e51d5da074849fd8c8e5605b23dbac6404ccacaf6"}},{"ruleId":"D2","level":"warning","message":{"text":"QuadtrixTrainingService.handleProgressClient (cognitive 19): QuadtrixTrainingService.handleProgressClient has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 6, loops 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/QuadtrixTrainingService.kt"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c823eabe299aee9a7e69a34a940539dac45b5603d4573a9208b02dc413d0cc4"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoSumupService.transcribe (cognitive 19): VideoSumupService.transcribe has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (14 pts), error handling 4, boolean chains 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoSumupService.kt"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c78faef70352f63acf8b96246861db1bad3448a306e688f05b3caca6000331e"}},{"ruleId":"D2","level":"warning","message":{"text":"DelegationManager.messageSubagent (cognitive 19): DelegationManager.messageSubagent has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegationManager.kt"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f1a6166446241f5567ab6d07e9cb6b84ffe5ec016c2c81cea050cacf159e79"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessTaskDigest.encode (cognitive 19): HarnessTaskDigest.encode has cognitive complexity 19 (threshold 15). Drivers by points: if/else 18 (19 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/HarnessTaskDigest.kt"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb29ffa4cc5da8fdfc4e2721cb50485462740e2b4079472a1b10eed6286b6990"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorApi.save (cognitive 19): EditorApi.save has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/filestation/api/EditorApi.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"d534a3c01e29f30759a4e1a1a1b1bb760e2ef4884ac96e8dd86f0191138d1cb8"}},{"ruleId":"D2","level":"warning","message":{"text":"FsWriteApi.transfer (cognitive 19): FsWriteApi.transfer has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/filestation/api/FsWriteApi.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66403db595f32098059ddff4901832f2a350c933be4c565bec1a6f655fd85c9"}},{"ruleId":"D2","level":"warning","message":{"text":"TitleGenerationManager.processBatch (cognitive 19): TitleGenerationManager.processBatch has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), error handling 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/titlegen/TitleGenerationManager.kt"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"455b07248bdf4971a5dd82474a6128ae27d557c5fa9628ccbee95ded462ec3a4"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaAgentService.retryConnection (cognitive 19): TamaAgentService.retryConnection has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (15 pts), error handling 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"18683b6d9a85bdf2f1f88f7f6f8bfa2758153e84dca4df09fb7e4989bbdca34c"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaGameEngine.travelToClassicLocked (cognitive 19): TamaGameEngine.travelToClassicLocked has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":2016}}}],"partialFingerprints":{"codehealthFindingId/v1":"970fedc65a954163b402d53a2d00c21a02cd4e8f4e5f7e594a7e23731d66b27e"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaMemorySupportKt.extractFirstJsonObject (cognitive 19): TamaMemorySupportKt.extractFirstJsonObject has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (16 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (TamaMemorySupportKt.extractFirstJsonArray) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaMemorySupport.kt"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"b78bccec8c0b7346219d5cddbc35c756f732906d342ddb538740b8174cbb0ad8"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaMemorySupportKt.extractFirstJsonArray (cognitive 19): TamaMemorySupportKt.extractFirstJsonArray has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (16 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (TamaMemorySupportKt.extractFirstJsonObject) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaMemorySupport.kt"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"344282e4ee81885a89ad3cbe33ff7aaf7026a639742746c6979f10be59a78f40"}},{"ruleId":"D2","level":"warning","message":{"text":"AdventureGateScreenKt.AdventureGateShopDialog (cognitive 19): AdventureGateScreenKt.AdventureGateShopDialog has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 4, 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":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":1193}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae7196d315d2151f55e2f14ccb8952776e3a06f71d046770627bf4a924807a4"}},{"ruleId":"D2","level":"warning","message":{"text":"FarmTilesKt.FarmTileItem (cognitive 19): FarmTilesKt.FarmTileItem has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 2, match/switch 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmTiles.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5d0224c42faa45a1d81ba2d586da0d22c96637e28ef9167d93fff861d6a53b"}},{"ruleId":"D2","level":"warning","message":{"text":"FarmToolBarKt.FarmToolCell (cognitive 19): FarmToolBarKt.FarmToolCell has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 6, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmToolBar.kt"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f2bca087771a4f496d0eb1974814d1c9cc691c263c5e819127fb95e708f46f"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaPairedAddressKt.parseManualAddress (cognitive 19): TamaPairedAddressKt.parseManualAddress has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 3, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/transfer/TamaPairedAddress.kt"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f39b3d7bd8d089e8eda149fc178a575ec1d9d20af9b7cc782fbd08008f268bc"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentCoordinationSupportKt.shouldSurfaceColdRecovery (cognitive 19): AgentCoordinationSupportKt.shouldSurfaceColdRecovery has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 9, match/switch 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentCoordinationSupport.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a8c8cb74b0940d6cb92fd4e3e7d727f823d1df0c16637f77236429f6fb64ea"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentSkillManagerKt.AgentSkillManagerDialog (cognitive 19): AgentSkillManagerKt.AgentSkillManagerDialog has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentSkillManager.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc1a3cd8511685ce5946bdbb6154a49eb36d290d40ec9da06d6525065fc6ca0"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessQueuePanelKt.HarnessQueueCard (cognitive 19): HarnessQueuePanelKt.HarnessQueueCard has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessQueuePanel.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe44ce293863f820b3ebbfcb4517cc7daf97aaab72c46d58618ab6e732ba95e"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessWorkspaceNavigationKt.HarnessProjectsLanding (cognitive 19): HarnessWorkspaceNavigationKt.HarnessProjectsLanding has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (19 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessWorkspaceNavigation.kt"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58e55426bbf5835ee1bb138df14a7c4e0b1647950e19dd5ecb3fdf1ac7fa78b"}},{"ruleId":"D2","level":"warning","message":{"text":"GenerationQueueScreenKt.GenerationQueueScreen (cognitive 19): GenerationQueueScreenKt.GenerationQueueScreen has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 3, error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/GenerationQueueScreen.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d72d9ba032ae89a3179e7199cd91b64a7d10e06bebc396dfc83fc3088cffc1"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageGenScreenKt.buildImageGenerationHelpSections (cognitive 19): ImageGenScreenKt.buildImageGenerationHelpSections has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (17 pts), match/switch 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":5061}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e0e590d5c8fe7d29daf21c04fe9c0e1268fe63a9ac095fa893f8e245edd678"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatKvCacheSectionKt.ChatKvCacheSection (cognitive 19): ChatKvCacheSectionKt.ChatKvCacheSection has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatKvCacheSection.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"6542ef0acb68eb47241eff76f5359755aa2ab2a16ddad92f5eb63ac6fdb75e9b"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatMessageAttachmentsKt.AttachmentChip (cognitive 19): ChatMessageAttachmentsKt.AttachmentChip has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageAttachments.kt"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ae450aaa6d5c45b03e2a9ab66eb8eb8ec8b744b36d631b2db077b0b48712df"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadTaskSectionKt.DownloadTaskCard (cognitive 19): DownloadTaskSectionKt.DownloadTaskCard has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 7, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/DownloadTaskSection.kt"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a82bbdd8e54692d420b95ff4830a1bc0f67b0bcd73e7ca5a70bbd045deaef4a"}},{"ruleId":"D2","level":"warning","message":{"text":"DashboardScreenKt.DashboardScreen (cognitive 19): DashboardScreenKt.DashboardScreen has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, boolean chains 2, match/switch 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/dashboard/DashboardScreen.kt"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b541a3b773c09f79f61863a950d9549aa6baa48d3310a386a959760be363f1f"}},{"ruleId":"D2","level":"warning","message":{"text":"EasyChatOptionsSheetKt.EasyChatOptionsSheet (cognitive 19): EasyChatOptionsSheetKt.EasyChatOptionsSheet has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (12 pts), error handling 2 (4 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/easy/EasyChatOptionsSheet.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d559ea8c7c31318a1b69f3322a41ef2d05cb739a41906f13f879d5e6dec10a6"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicFeatureManager.installOptionalAccelerators (cognitive 19): DynamicFeatureManager.installOptionalAccelerators has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 1, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/DynamicFeatureManager.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"466e02bc16ab15bb767671df236d435e0e360ec904a921e20aec64462c015bb7"}},{"ruleId":"D2","level":"warning","message":{"text":"WearCompanionBridgeManager.routeCommand (cognitive 19): WearCompanionBridgeManager.routeCommand has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/wear/WearCompanionBridgeManager.kt"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f08355b889234437235d2c5ee3d15d498d8342ab002a01222fe7b17a1aaf10"}},{"ruleId":"D2","level":"warning","message":{"text":"browser.loadDir (cognitive 19): browser.loadDir has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5, ternaries 1 (2 pts), error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/file_station_webui/js/browser.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"370a4af42f5e433526e1522feee7df3405c7b48c21f7fbb874955f34a1aec0aa"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioGenerationService.localizeError (cognitive 18): AudioGenerationService.localizeError has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 16, if/else 1, match/switch 1. The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/AudioGenerationService.kt"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f10e8139659ba7d6aa917afc20a65eb620b279f9aaa21a50a689344079ab63"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioGenerationRequest.normalized (cognitive 18): AudioGenerationRequest.normalized has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/AudioModels.kt"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f79c1f38f0175b7adf945a35126f742d213a52c1f4b3bc9c9ee537c2f4a86c"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioLibraryRepository.deleteFolderContents (cognitive 18): AudioLibraryRepository.deleteFolderContents has cognitive complexity 18 (threshold 15). Drivers by points: error handling 6 (12 pts), if/else 2 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/library/AudioLibraryRepository.kt"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ebebc2d8d94f3b3b9059a4b8ae2bcaf9b12d7c0e1f170d10d220d3b7f2c79e9"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalModelImportsKt.importSDModel (cognitive 18): LocalModelImportsKt.importSDModel has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 2, loops 1 (2 pts), error handling 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/LocalModelImports.kt"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f7ce6c1ad56e181c539c300bf7c6cccc9e0baebaeff0aef0cb6ddac9876d30"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRepository.previewDeleteModel (cognitive 18): ModelRepository.previewDeleteModel has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 7. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e601de15c76c505593cb223dc03a90009b217b48608c5a5f12c0a9557d8c596"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelArtifactRecognizer.validateSd (cognitive 18): ModelArtifactRecognizer.validateSd has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 7, match/switch 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactRecognizer.kt"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6159d33749a3c435d1719cecdf5ee21e554ed3ef6af085fac78c38497d00d8"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelSourceRepository.resumePendingCustomDownloads (cognitive 18): ModelSourceRepository.resumePendingCustomDownloads has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3, error handling 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt"},"region":{"startLine":1754}}}],"partialFingerprints":{"codehealthFindingId/v1":"a848e65cc8368a599eaa134c5b259e409dcc09e18fc8014a7aed720a4b0a886a"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessAppRuntime.startOwned (cognitive 18): HarnessAppRuntime.startOwned has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 3, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAppRuntime.kt"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"26183c0be13dc5a2093433499d85bb620d3d4f159453c7209c87c600f01885d7"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessAppRuntime.monitorOwnership (cognitive 18): HarnessAppRuntime.monitorOwnership has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAppRuntime.kt"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9654410fd4a166e7f3c07b35ee638ea50bab6a1b19075383caa7a5e313ffcce"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessBridgeOperations.image (cognitive 18): HarnessBridgeOperations.image has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 5, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessBridgeOperations.kt"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48135a03ed1ef2341cea17184a8f34b48ff93753eb659dfaaeff12b5a03d6ea"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessCompletionAccumulator.add (cognitive 18): HarnessCompletionAccumulator.add has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessCompletionAccumulator.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb0da5646135fa2f6462ec8f8877e60cedb18249a1949d125dba4ed8ddd4837"}},{"ruleId":"D2","level":"warning","message":{"text":"OkHttpHarnessClient.fetchJson (cognitive 18): OkHttpHarnessClient.fetchJson has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 4, error handling 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/client/OkHttpHarnessClient.kt"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7de76ba584c9e6788ee15abeacc4273cefa130a837d137cc53d06a457dd6083"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessRuntimeController.recover (cognitive 18): HarnessRuntimeController.recover has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, boolean chains 6, error handling 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e4cc1da4bf8783dde1382aa5f2f81f7d1887438e15018b9c71c19f4d229a57"}},{"ruleId":"D2","level":"warning","message":{"text":"ClipBpeTokenizer.applyBpe (cognitive 18): ClipBpeTokenizer.applyBpe has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/onnx/ClipBpeTokenizer.kt"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"121191e6ec09d3cc3b7d90a42d140035f5c83f63d27227ed2dda3e4d265423b8"}},{"ruleId":"D2","level":"warning","message":{"text":"OnnxBackgroundRemovalSupportKt.extractMaskFromValues (cognitive 18): OnnxBackgroundRemovalSupportKt.extractMaskFromValues has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 5 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/onnx/OnnxBackgroundRemovalSupport.kt"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"6839bf7069484dab68d164d372ec855538b83ae7556ddaddae7f6c858adbda43"}},{"ruleId":"D2","level":"warning","message":{"text":"SdModelSupportKt.inferSdVariant (cognitive 18): SdModelSupportKt.inferSdVariant has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, match/switch 3 (5 pts), if/else 3 (nesting depth added 2). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdModelSupport.kt"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4502b0bb334a7c5671e8d9061d140b9bdd8eee6a7d1eeb2b2f091c0f5d6efa"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentDurableContractStore.answerQuestionAtomically (cognitive 18): AgentDurableContractStore.answerQuestionAtomically has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentDurableContractStore.kt"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"e572d8eabe62fc8b6a694d9061ba0c9e973db44e7f74d1c53e39650a8f7f540f"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentPlanProposalRecoveryKt.recoverImplementationPlanProse (cognitive 18): AgentPlanProposalRecoveryKt.recoverImplementationPlanProse has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 2, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentPlanProposalRecovery.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffcfffca1a223ff61c87ed903700dd1a561947d4ce55e0ad6483c6476d03cd0b"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentRuntimeSupport.resolveFinishTaskPayload (cognitive 18): AgentRuntimeSupport.resolveFinishTaskPayload has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 4, match/switch 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentRuntimeSupport.kt"},"region":{"startLine":1954}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d5094c795d5d5fb04fb4ab97b143cacd2ff62dfdabf07e8d981fca938cdfef"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.restorePersistentState (cognitive 18): AgentService.restorePersistentState has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb58ad95245b7ca1a47695394d8febff3d90768765ba3df6b40f30b3898f398"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.applyPatch (cognitive 18): AgentService.applyPatch has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2, error handling 1, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":19223}}}],"partialFingerprints":{"codehealthFindingId/v1":"715d254ce96eb513499e5dd9976aa2c779e7a0aa924df9309c1673e8c66153a9"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.buildToolsReferenceContent (cognitive 18): AgentService.buildToolsReferenceContent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (6 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":8029}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de7288b76c80b3427225011f3f67c8d514df47b19f8897af81864bd0073b261"}},{"ruleId":"D2","level":"warning","message":{"text":"KiwixService.startServer (cognitive 18): KiwixService.startServer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 3, loops 2 (3 pts), error handling 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/KiwixService.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"3830c3e3a37e01682b2b73a122d3d6f07889bd90ce2545fabe4f1e173c01e5aa"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteRtLmWorkerClient.streamBackendChat (cognitive 18): LiteRtLmWorkerClient.streamBackendChat has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (13 pts), match/switch 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtLmWorkerService.kt"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"63473e6bfa3460d6c09f9a6a5f20976025e8e1eaba18a933f47a26e1ba241f14"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaModelMetadataProbe.probe (cognitive 18): LlamaModelMetadataProbe.probe has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 2 (4 pts), error handling 2, loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaModelMetadataProbe.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa28748adaa69b3ec27255fdaf6196f4c522169367be516094f8f7e786b218e9"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaServerChatServiceKt.buildLlamaServerChatRequestPayload (cognitive 18): LlamaServerChatServiceKt.buildLlamaServerChatRequestPayload has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerChatService.kt"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"3889a5b4d0fe4f85d7e2f9c2c6a2e4e156d83a85ed0920fc39e668de97dff501"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaTranslationWorkflowService.startMediaQueue (cognitive 18): MediaTranslationWorkflowService.startMediaQueue has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This shape REPEATS in the file: one other method here (MediaTranslationWorkflowService.startSubtitleQueue) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f2115a1fb40d9dfdb28c07649361a5b64c26b082065eeca2433008600002f0"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaTranslationWorkflowService.startSubtitleQueue (cognitive 18): MediaTranslationWorkflowService.startSubtitleQueue has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This shape REPEATS in the file: one other method here (MediaTranslationWorkflowService.startMediaQueue) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"954da3374dd4b11bc5df4bae62fc80e149f0f90522485ec73b5a300bd1d75f68"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFService.extractTextDetailed (cognitive 18): PDFService.extractTextDetailed has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), match/switch 1 (3 pts), boolean chains 1, error handling 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca7a491aff0d653f3798eeb5dbf95977a90c2654846fbb343f8676de63980213"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFService.splitBySize (cognitive 18): PDFService.splitBySize has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), error handling 2 (3 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":7772}}}],"partialFingerprints":{"codehealthFindingId/v1":"75dcf04ce482057a01cf5a4e2cc46bbf1a2346839c662867032db4c2959983f0"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFSummaryLogic.splitIntoChunks (cognitive 18): PDFSummaryLogic.splitIntoChunks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFSummaryLogic.kt"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f7bd5bd69fea00b6c63a31356ba6dc652ee0331c3f7b55ab005ece26c70993"}},{"ruleId":"D2","level":"warning","message":{"text":"SdLaunchPreflightKt.resolveSdPipelineForLaunch (cognitive 18): SdLaunchPreflightKt.resolveSdPipelineForLaunch has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5, match/switch 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdLaunchPreflight.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"708bb7c1ec4e2a9aa563740a58447884ec2dfee3be5f8f09cb6e3b505281823a"}},{"ruleId":"D2","level":"warning","message":{"text":"SdRuntimeSupportKt.setupSdLibrarySymlinks (cognitive 18): SdRuntimeSupportKt.setupSdLibrarySymlinks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), error handling 2 (7 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdRuntimeSupport.kt"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af3467d041baa1edd1e23c7f60db618295820c1a9f8dfd097c6b1d13d601811"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaDeepDreamService.runDeepDream (cognitive 18): TamaDeepDreamService.runDeepDream has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 1, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/TamaDeepDreamService.kt"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78cff4187f054bc8d19981ce97364a11d3ad4f914949af3e38b5e3f71975152"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoInterpolationService.onStartCommand (cognitive 18): VideoInterpolationService.onStartCommand has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 1, match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoInterpolationService.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"6881693eabcf5cf00b826143127fcd6f08015398ba40e252813653a7cceb26ce"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoInterpolationService.runRife (cognitive 18): VideoInterpolationService.runRife has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 5, loops 2, error handling 1, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoInterpolationService.kt"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d9fd16b6e8c6748590bfd6b67e5d43ac99865fe6a0e15764bd592db9b33db2"}},{"ruleId":"D2","level":"warning","message":{"text":"DelegateHarnessDriver.followLoop (cognitive 18): DelegateHarnessDriver.followLoop has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), error handling 2 (6 pts), boolean chains 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegateHarnessDriver.kt"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2fc6f2a19ea2c78a67bda9e228426a86817789887797fc410a4b4614a483ba"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolSpec.parse (cognitive 18): ToolSpec.parse has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 4, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/filestation/api/ToolsApi.kt"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a13424816070bed3bb6674b0d90aed583ae0817aefc839351f2d77a6388c21"}},{"ruleId":"D2","level":"warning","message":{"text":"ShimejiMotion.chooseNext (cognitive 18): ShimejiMotion.chooseNext has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (11 pts), match/switch 3 (5 pts), boolean chains 1, loops 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/shimeji/ShimejiMotion.kt"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf60494d28c19fb21c1cad75bd70e7e1bb9e52c3adf358642a08eb3327bee37a"}},{"ruleId":"D2","level":"warning","message":{"text":"AdventureGateStoryUiKt.AdventureGateStoryOverlay (cognitive 18): AdventureGateStoryUiKt.AdventureGateStoryOverlay has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateStoryUi.kt"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"757469793f75818bc1687a5373402d6d54b93abc3912468169d5b01076b7e18a"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChatListKt.AgentChatList (cognitive 18): AgentChatListKt.AgentChatList has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 6, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentChatList.kt"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"8609064bba2ac54640f069889eb6d39f5df3d6cd3c769bda02182c5f131d0e1b"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessCommandsTabKt.HarnessCommandRunCard (cognitive 18): HarnessCommandsTabKt.HarnessCommandRunCard has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, match/switch 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessCommandsTab.kt"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9ac008542324fb8b0cbf799595a158d548987b5941311502f0ab1e2ddd05f4"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessInlineLinksKt.parseHarnessInlineDestination (cognitive 18): HarnessInlineLinksKt.parseHarnessInlineDestination has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 6 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessInlineLinks.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"6164dc6fbc8e1e73ceefc69fc019398ec4511be2c299f25ecaf5b7c14b6323d4"}},{"ruleId":"D2","level":"warning","message":{"text":"AIHubScreenKt.ToolsTab (cognitive 18): AIHubScreenKt.ToolsTab has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, boolean chains 4, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/AIHubScreen.kt"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c10193a0b7591ae005013b2372b988347e2df28b99c8b065424877c6ba30e4"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageGenScreenKt.SdParamsBackendProfileControls (cognitive 18): ImageGenScreenKt.SdParamsBackendProfileControls has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (16 pts), match/switch 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":4848}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c1a01854f10d3f372848881238e58ed9a2c51c244b4cba31e77031ede76638"}},{"ruleId":"D2","level":"warning","message":{"text":"AssetDownloadDialogKt.AssetDownloadDialog (cognitive 18): AssetDownloadDialogKt.AssetDownloadDialog has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (11 pts), match/switch 3 (7 pts) (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/AssetDownloadDialog.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"4440438b1dbc55ff08c2335332176488fd9937e3182b7f85121faf583f82cb0e"}},{"ruleId":"D2","level":"warning","message":{"text":"CuratedModelBundleSectionKt.CuratedModelBundleSection (cognitive 18): CuratedModelBundleSectionKt.CuratedModelBundleSection has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 13, if/else 4 (5 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"0795bf0a095f5cfada4e15d6bd5f82dd12b585bbda4cfc7b40a745e2d652f515"}},{"ruleId":"D2","level":"warning","message":{"text":"EasyChatModelPickerKt.EasyChatModelPicker (cognitive 18): EasyChatModelPickerKt.EasyChatModelPicker has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7, error handling 4 (6 pts), boolean chains 4, match/switch 1 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/easy/EasyChatModelPicker.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91c9b4c280b6f43eff22b42ee87c1dd17241fa58d8f92f4f7ffa5fc62e874ae"}},{"ruleId":"D2","level":"warning","message":{"text":"EasyImportKindsKt.detectEasyFileKind (cognitive 18): EasyImportKindsKt.detectEasyFileKind has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/easy/EasyImportKinds.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cfab77ce9aaeb159273cfd62d42ff4203167064d368e568dadfd37fe45e84a9"}},{"ruleId":"D2","level":"warning","message":{"text":"EasyImportKindsKt.easyImportVerdict (cognitive 18): EasyImportKindsKt.easyImportVerdict has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/easy/EasyImportKinds.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24376aff33b5d22dfcff2a024b96e94989e2dc21708a61ae36b705dfef87940"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteRtModelsScreenKt.LiteRtInstalledTab (cognitive 18): LiteRtModelsScreenKt.LiteRtInstalledTab has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd8dc0c07057b212304810050251627edc71019c44cb370f20da66694ba1b31"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelLibraryScreenKt.PendingArtifactCard (cognitive 18): ModelLibraryScreenKt.PendingArtifactCard has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryScreen.kt"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"6244656a313ac9da6c06c70c5a65af0b14434c10784a5dbffba32cb78bac2e81"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelManagerScreenKt.importModelWithProgress (cognitive 18): ModelManagerScreenKt.importModelWithProgress has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, error handling 2 (3 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"78cc0848551c1f65fe36a2ffd5be73added83d45638eab02f568b77ba4a4a10d"}},{"ruleId":"D2","level":"warning","message":{"text":"TitleGenerationSettingsCardKt.TitleGenerationSettingsCard (cognitive 18): TitleGenerationSettingsCardKt.TitleGenerationSettingsCard has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 3 (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":"app/src/main/java/com/example/llamadroid/ui/settings/TitleGenerationSettingsCard.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73a4a9a4b3a20f2a57b60338c95a43eef94a3a412d5746a2c9c125399133e1e"}},{"ruleId":"D2","level":"warning","message":{"text":"MainActivityKt.ChatsScreen (cognitive 18): MainActivityKt.ChatsScreen has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":1846}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea62bf5e1bef808f8432274d440f22ba9e061c12ba665947a11e3b1b018e7f5"}},{"ruleId":"D2","level":"warning","message":{"text":"picker.pickFolder (cognitive 18): picker.pickFolder has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 11, if/else 4 (5 pts), error handling 1, ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 3 of the 18 points are its own statements and the rest belongs to 6 function items inside it that branch (show, a function literal at line 51, row, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/file_station_webui/js/picker.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf678fbf708d7e8c9b0d0546d8ffe187908d76c1f6af1053b32bba2a0e50b506"}},{"ruleId":"D2","level":"warning","message":{"text":"main.route (cognitive 18): main.route has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 6, error handling 1 (2 pts), ternaries 2 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/file_station_webui/js/main.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae5221e83dc697da971294efd91bd0b86dbc75bd2ad8bedaaf70b1f52b0cb69a"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioWavSupport.isPcm16Silent (cognitive 17): AudioWavSupport.isPcm16Silent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/AudioWavSupport.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cdc4e9becfb23b9bcd7b2530d6ea5bc1523741b7fc06e31bf615a9ae99eebf7"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioLibraryRepository.deleteLocalOutput (cognitive 17): AudioLibraryRepository.deleteLocalOutput has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/library/AudioLibraryRepository.kt"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d557aaf7b0754c7b6a17a0369d4302c7030e03dfd91bf983cf19d4a59018dc"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelSourceRepository.awaitDownloadCompletion (cognitive 17): ModelSourceRepository.awaitDownloadCompletion has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt"},"region":{"startLine":2349}}}],"partialFingerprints":{"codehealthFindingId/v1":"9061942610571ef4bb2afcdb5d982de1922555b039ab7778bc0792ca5f6e7b67"}},{"ruleId":"D2","level":"warning","message":{"text":"ProotManager.extractDataFromDeb (cognitive 17): ProotManager.extractDataFromDeb has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts), error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/proot/ProotManager.kt"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"01fd372fd25c5d1c3e046366efed3e1473a9f657730dfdc7506b9f46dea2230d"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessLegacyDeletion.finish (cognitive 17): HarnessLegacyDeletion.finish has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 6 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessLegacyDeletion.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7982c95f6f6a15000ad2bd6a4cb79abdbef03caa27c4c4528e20344bb8ae98"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessLegacyHistoryKt.HarnessLegacyHistory (cognitive 17): HarnessLegacyHistoryKt.HarnessLegacyHistory has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), error handling 2, match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessLegacyHistory.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"11df1241ab65648f4acf69bf7e3cf740c2d8ed6b661882fb6493d420c4a80031"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessLocalModelCapabilityStore.apply (cognitive 17): HarnessLocalModelCapabilityStore.apply has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 7 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessLocalModelCapabilities.kt"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"608908898083ce70c42139fae9cc5ad44fa96c712090db0021f8eea12027db9f"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessProviderErrorCodes.classify (cognitive 17): HarnessProviderErrorCodes.classify has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, loops 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessProviderErrorCodes.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0782ad9cae65412f5935a32830300de01cba310529d24b88534b7b1aa3b15a"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessSessionDeletion.wake (cognitive 17): HarnessSessionDeletion.wake has cognitive complexity 17 (threshold 15). Drivers by points: error handling 2 (6 pts), if/else 4 (5 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessSessionDeletion.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"b799b3e88a3f2b610f97ec51ac41e023450704c65d383f4223ac95f96415e23c"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessTerminalDialogKt.HarnessTerminalRoute (cognitive 17): HarnessTerminalDialogKt.HarnessTerminalRoute has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, error handling 4 (6 pts), boolean chains 3, loops 1 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessTerminalDialog.kt"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"33faffa0c3173b8d3916b75779ef7820dc79520e4c4f11c5b5ab0c14ec4cb1a6"}},{"ruleId":"D2","level":"warning","message":{"text":"SdModelSupportKt.resolveSdFamilySpec (cognitive 17): SdModelSupportKt.resolveSdFamilySpec has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 1, match/switch 1 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdModelSupport.kt"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"54176af32f83db3e8e8fc49821d2ff686a9243c18dbf7bd9f2662b863198d657"}},{"ruleId":"D2","level":"warning","message":{"text":"SdParamsBackendProfile.parse (cognitive 17): SdParamsBackendProfile.parse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 4, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdParamsBackendProfile.kt"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b0c7735fa7582a025de287b4f1c069ee07cba5ed1847206222a4857d96cf83"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentDurableContractStore.normalizeAgentReportOutcome (cognitive 17): AgentDurableContractStore.normalizeAgentReportOutcome has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (13 pts), match/switch 3, boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentDurableContractStore.kt"},"region":{"startLine":1963}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c41b3654d00815ba5b7b5dab95f366562a3429e91608bdf4f4aa9db5f605cf0"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentForegroundService.onStartCommand (cognitive 17): AgentForegroundService.onStartCommand has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentForegroundService.kt"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b3c1f0b044a08d960a906a33a7ac1ce9cc504facddafc645efefe2b6e00333"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentPromptBudgetKt.buildAgentPromptAtomicUnits (cognitive 17): AgentPromptBudgetKt.buildAgentPromptAtomicUnits has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (4 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentPromptBudget.kt"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d92ca19b9d8336ae0101f0659fd230cc6deee9eba7ab7e8bcf63656564fd894"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.persistFrozenTurnContext (cognitive 17): AgentService.persistFrozenTurnContext has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 3, match/switch 2 (3 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":4371}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5fbfdabbfe4dadf74a4dab8e59694ba2499268fc6d6317c11ca036d73354c4"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.runHardCompactionIfNeeded (cognitive 17): AgentService.runHardCompactionIfNeeded has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 3, error handling 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":15010}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c77092cdacb6afedea77a880d703d3420aa0388d35f320c81b17948c40fbac"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolHttpServer.startPdfToolJob (cognitive 17): ToolHttpServer.startPdfToolJob has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (16 pts), match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":1775}}}],"partialFingerprints":{"codehealthFindingId/v1":"e89266a61566f02d69112f128a1c707b4134315f931d9adcf84cee6683755ea4"}},{"ruleId":"D2","level":"warning","message":{"text":"DeepResearchSupport.scoreCandidate (cognitive 17): DeepResearchSupport.scoreCandidate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 6. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DeepResearchSupport.kt"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"8020cabb0a49fd42373a36807f6f60518e23bc3ce17bb2c6d8908462f9b6d3ec"}},{"ruleId":"D2","level":"warning","message":{"text":"GenerationQueueService.drain (cognitive 17): GenerationQueueService.drain has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 2 (4 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/GenerationQueueService.kt"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9c44e470f7b9f89df6f805f4ebb0f4c58ac397b7ed22c33d97f2c714e25622"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveTranslatorService.startLoop (cognitive 17): LiveTranslatorService.startLoop has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), error handling 2, boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"f315a2f736dd3e03725ca00a03bd76147e9c07f5f5ce8b6cd1a0e193736e68ec"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaClientService.chatWithLiteRtToolsStreaming (cognitive 17): LlamaClientService.chatWithLiteRtToolsStreaming has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":2460}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb76a02c78d60f909e0dff6edf395f493322b502fe346cce670b94322170edcd"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeChatLocalServerStarter.ensureReady (cognitive 17): NativeChatLocalServerStarter.ensureReady has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), match/switch 2 (5 pts), boolean chains 3, error handling 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatLocalServerStarter.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcbe089bb6816e5621b1ddbe93b1a9088f972423c35b58f6cb21b5040fd0efa8"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeVideoDependencies.ensure (cognitive 17): NativeVideoDependencies.ensure has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeVideoDependencies.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce600328cca85e1e092ee4d2c660d7df8c84675c91d01b32d70e023f4d5ba9ba"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFService.collectPdfOcrText (cognitive 17): PDFService.collectPdfOcrText has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), error handling 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":2817}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0e78143cfe635abececd4ec3a2d2dd282047be8a0d339f1dc4e419b22cfe1e"}},{"ruleId":"D2","level":"warning","message":{"text":"QuadtrixTrainingService.updateQuadtrixNotification (cognitive 17): QuadtrixTrainingService.updateQuadtrixNotification has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 2 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/QuadtrixTrainingService.kt"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c77db951f757532299d5c2e7b976438f60f924681f7d44ccfd1c49d5639583f"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteMasterServer.handleRestart (cognitive 17): RemoteMasterServer.handleRestart has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 1, error handling 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteMasterServer.kt"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d8d14017ac16e429ad9dc8cd0ec553f17ae8d80f9dee1c557cd2b290df67d1"}},{"ruleId":"D2","level":"warning","message":{"text":"SdAdetailerSupportKt.validateSdADetailerConfig (cognitive 17): SdAdetailerSupportKt.validateSdADetailerConfig has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 6. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdAdetailerSupport.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c97dcd8d425efbed3546c8e7b75ad6d6877115f195ecd2cc3d71385c1272b5"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoGenerationService.startGeneration (cognitive 17): VideoGenerationService.startGeneration has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 3, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"1326c48653e17e859eae1dec4d231bb130bff9105e5352a472303b107291057d"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoRecognitionSummaryService.startLegacyFallback (cognitive 17): VideoRecognitionSummaryService.startLegacyFallback has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3, error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoRecognitionSummaryService.kt"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c5d2ef37c863c0d9ee148628e5f4aa0e9e6750bac7a5e5c8189d886c82dd48"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoUpscalerService.getVideoInfo (cognitive 17): VideoUpscalerService.getVideoInfo has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 2, error handling 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoUpscalerService.kt"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a62a1d5a6050c34cbac66efd00e578bf366316d575899ddb56ebf13e303c0f"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaChatContextBudgetKt.mapTamaImages (cognitive 17): TamaChatContextBudgetKt.mapTamaImages has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaChatContextBudget.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9ef5476e3f754f86e10ef426d752a1039083f4637a90c81575b3edb7ee1f96"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaGameEngine.advancePoopState (cognitive 17): TamaGameEngine.advancePoopState has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 3 (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":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":3775}}}],"partialFingerprints":{"codehealthFindingId/v1":"952a8ee5d6910039de20e3eaf74e7baf16b89e50b6e70ad9df7c0c1b229743ee"}},{"ruleId":"D2","level":"warning","message":{"text":"AdventureGateScreenKt.AdventureGateLoadoutDialog (cognitive 17): AdventureGateScreenKt.AdventureGateLoadoutDialog has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da8651725167088bcf8aabd12d90a0a36305d212473b3a8ea49c724747fd528"}},{"ruleId":"D2","level":"warning","message":{"text":"FarmActionController.batch (cognitive 17): FarmActionController.batch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmActionController.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82e4e18a33908164102e73743f0313de8c1f61426d67d7ef269996302992c1d"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomToolsScreenKt.CustomToolEditorDialog (cognitive 17): CustomToolsScreenKt.CustomToolEditorDialog has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/CustomToolsScreen.kt"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35f59b9aba2fef998eccbb413d1345554f52afe4c3bf19bea5558ae8295eda8"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessComposerKt.replaceHarnessComposerToken (cognitive 17): HarnessComposerKt.replaceHarnessComposerToken has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessComposer.kt"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f0e7f55e476df5afce1b7c29a9c958928972e8c7f9a055c936d67495222b65a"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessController.refreshSessions (cognitive 17): NativeHarnessController.refreshSessions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a6c7ee39d924ae6ce58d7b88ea974d9adfff69895b138b5713bacb78744260"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessController.applyControlFrame (cognitive 17): NativeHarnessController.applyControlFrame has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2, match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt"},"region":{"startLine":1926}}}],"partialFingerprints":{"codehealthFindingId/v1":"eecb3f43f959fd07ca7037ba56a749d71b0a870e3015a0235e830a0a5a42ff9c"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessCustomProviderPanelKt.NativeHarnessCustomProviderPanel (cognitive 17): NativeHarnessCustomProviderPanelKt.NativeHarnessCustomProviderPanel has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 8. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessCustomProviderPanel.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3ed362d24406dfe710664d5600c0d2234205906bf5ab8f9c07efa6ba794ae5"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessDraftProviderDiscovery.discover (cognitive 17): NativeHarnessDraftProviderDiscovery.discover has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, error handling 1 (2 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessDraftProviderDiscovery.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d112a0772a852840485975ac72bdfa582c72915736ae8152986cb38a4c85e5"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessFeedbackActions.refresh (cognitive 17): NativeHarnessFeedbackActions.refresh has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), error handling 2, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessFeedback.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b041fc9a52897f496aa964755039f75b313b46bb6990049ba1173c320324b724"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessStructuredTranscriptKt.reprojectNativeHarnessLiveSkillBatch (cognitive 17): NativeHarnessStructuredTranscriptKt.reprojectNativeHarnessLiveSkillBatch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, match/switch 5 (7 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessStructuredTranscript.kt"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"3518a2d276c3098fe84c655f9d9e2a7e2e924c0788a709eb45615705446b6ead"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageGenPhaseCOptionsKt.ImageGenADetailerOptionsCard (cognitive 17): ImageGenPhaseCOptionsKt.ImageGenADetailerOptionsCard has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (17 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenPhaseCOptions.kt"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a503d5836287620750098e2a25a61d016aafa935894525feaaed6a1029a98ce"}},{"ruleId":"D2","level":"warning","message":{"text":"InpaintMaskRaster.paintCircle (cognitive 17): InpaintMaskRaster.paintCircle has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/InpaintMaskRaster.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"33b3e0351bf3353acc457af81d4dc14a4f689d311495d09ef0604c8e77f03afe"}},{"ruleId":"D2","level":"warning","message":{"text":"OnnxTtsScreenKt.OnnxTtsScreen (cognitive 17): OnnxTtsScreenKt.OnnxTtsScreen has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 4, error handling 1, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxTtsScreen.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"707e3114b8b19f005cf87c3f9e908f39d0d5610a0b03059ee2b6e7d1bc34c1e7"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatDelegationServerBlocksKt.DelegationServerUsageLine (cognitive 17): ChatDelegationServerBlocksKt.DelegationServerUsageLine has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4, match/switch 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatDelegationServerBlocks.kt"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d15808edf230308f99a03f415878d1e808ec46b8abaf77b0e88cd347fa9ab9b"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalServerFormKt.validateLocalForm (cognitive 17): LocalServerFormKt.validateLocalForm has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/LocalServerForm.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e032449ca098b043fe7c33e842901a96eb0ef1a3d4a8fe8e3393cdbed5f1f9"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatScreenKt.ChatScreen (cognitive 17): ChatScreenKt.ChatScreen has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, boolean chains 7. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/chat/ChatScreen.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f6bfcc657395220f624afd5dbbbc629de40a0d5651d532b34bb57092295bd2"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextUsageRingKt.ContextUsageRing (cognitive 17): ContextUsageRingKt.ContextUsageRing has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/ContextUsageRing.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"916403f7a2161be5577f404518024a1c922b1a2af617d6fe3bb1d800e61ee05d"}},{"ruleId":"D2","level":"warning","message":{"text":"EasyModelRemovalKt.removeEasyModels (cognitive 17): EasyModelRemovalKt.removeEasyModels has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), error handling 2 (4 pts), boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/easy/EasyModelRemoval.kt"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"255b2f8217619f259fc22e0691cb3ae4b9e13128a617fb9a6c5d668240084e7a"}},{"ruleId":"D2","level":"warning","message":{"text":"LogsScreenKt.LogsScreen (cognitive 17): LogsScreenKt.LogsScreen has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), match/switch 4, boolean chains 3, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/logs/LogsScreen.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"1789cda50cc2d8fd587116cd4cf54596e13171a408a8f93da3a41ca335e1cd9e"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteRtModelsScreenKt.LiteRtCatalogTab (cognitive 17): LiteRtModelsScreenKt.LiteRtCatalogTab has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (10 pts), error handling 2 (4 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad80b52f0981d2cdc127aa951007da8cb8839e0790da20826bf5a7b39526edd"}},{"ruleId":"D2","level":"warning","message":{"text":"OnnxModelsScreenKt.InstalledOnnxModelsTab (cognitive 17): OnnxModelsScreenKt.InstalledOnnxModelsTab has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 3, match/switch 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"62bbaac5b886b0d1da2bc5bdda71d2534318ec7dc3c57fad8a5ff3cc19d640d7"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaFarmWidgetProvider.updateWidget (cognitive 17): TamaFarmWidgetProvider.updateWidget has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/widget/TamaFarmWidget.kt"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a0e27388e69311539cddb48e014cb48b7881f53ee48e32278ba4e564cb491e"}},{"ruleId":"D2","level":"warning","message":{"text":"StableAudio3WorkerService.verifyComponents (cognitive 16): StableAudio3WorkerService.verifyComponents has cognitive complexity 16 (threshold 15). Drivers by points: error handling 5 (10 pts), boolean chains 4, if/else 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/music/StableAudio3WorkerService.kt"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15c6835c471f18a618ad177702941002acd1173af2d332dcf78634f1e9c8250"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelArtifactGroupsKt.resolvePendingArtifactGroup (cognitive 16): ModelArtifactGroupsKt.resolvePendingArtifactGroup has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactGroups.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8cba362f5c98305587373bfb620364ae2a092a8ec52412e07bf9f238db3dfb9"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessAndroidBridge.serve (cognitive 16): HarnessAndroidBridge.serve has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 2, error handling 1, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAndroidBridge.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e15e2bf5cf75067bc6280860e8532830cf5136787b7b3df7eb06dae8e5f9d7"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessLegacyDeleteDialogKt.HarnessLegacyDeleteDialog (cognitive 16): HarnessLegacyDeleteDialogKt.HarnessLegacyDeleteDialog has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 5. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessLegacyDeleteDialog.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4907532f99af11dc3954d9c89beab652c4e3de4fb4a1bf170a5539dd03d63f3"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessTransferMetadata.apply (cognitive 16): HarnessTransferMetadata.apply has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 3, loops 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessTransferMetadata.kt"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f881e9605eb5e831e7f6ea6e9c4ef836de5202dc5d0cb5c7d577d441796c0c1"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessWorkspaceFiles.ensureDirectories (cognitive 16): HarnessWorkspaceFiles.ensureDirectories has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), error handling 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessWorkspaceFiles.kt"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"c839055b4f7977e836c30f680d0962a4ce0bd48caa8b68d482b27ec0aa9f5322"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessRequestReceipts.execute (cognitive 16): HarnessRequestReceipts.execute has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 3, error handling 2, loops 1 (2 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/client/HarnessRequestReceipts.kt"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a55abaddf4e14bd9b130774c0e52b1f2c91214f1d723b60a4cfce8770182b76b"}},{"ruleId":"D2","level":"warning","message":{"text":"OkHttpHarnessClient.stream (cognitive 16): OkHttpHarnessClient.stream has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), error handling 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/client/OkHttpHarnessClient.kt"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"005e7ea7f731044cdb87a1e21cf738dacef2baa394111c1b2284df8fd5adfdb1"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessMux.ensureSocket (cognitive 16): HarnessMux.ensureSocket has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), error handling 3 (4 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/client/OkHttpHarnessClient.kt"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"352d6512eae769ff9558fc0fe4f7d843e2e7714571e849b6d16c97de5b844a8a"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessTransferCodec.inspect (cognitive 16): HarnessTransferCodec.inspect has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 6 (8 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebcbb4dc7f08ab017a975caff534154957a8357e9204e0071a89e997aa47aad3"}},{"ruleId":"D2","level":"warning","message":{"text":"OnnxTtsSupportKt.chunkText (cognitive 16): OnnxTtsSupportKt.chunkText has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/onnx/OnnxTtsSupport.kt"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"facaf37191ad1049849199949c641b00449eecc2ae1001c6506946ece9e0058d"}},{"ruleId":"D2","level":"warning","message":{"text":"SdPipelineResolver.requiredExternalRoles (cognitive 16): SdPipelineResolver.requiredExternalRoles has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdPipelineResolver.kt"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5284cdfadfb241073cccba322a07b91ab9a42b7cd70ab2abe3ae26db63cd6a3"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentImageOperations.generateSdAgentImage (cognitive 16): AgentImageOperations.generateSdAgentImage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 7. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentImageOperations.kt"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb14c3c6f83c861583e9985b2c0296a2da5e73348d4de6f57ba77d43f8371f25"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLocalProjectRunner.stopProject (cognitive 16): AgentLocalProjectRunner.stopProject has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (16 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentLocalProjectRunner.kt"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f7b58fab9dafd112a73c3b6a2259ce8eccb3bfb7d858df4479f978f6ce15243"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.persistVisibleRuntimeStateNow (cognitive 16): AgentService.persistVisibleRuntimeStateNow has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 2, error handling 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d5ee88ecf457b85647fbaa1465886aef6cb31be800c427c0aba8a71a6bdd60"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.deletePath (cognitive 16): AgentService.deletePath has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":1525}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab1d44e6ce62f84183af011cf1d089601f37798ccaf58ae16f4117f9c06cbc5"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.summarizeAgentReferenceContent (cognitive 16): AgentService.summarizeAgentReferenceContent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (16 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":20373}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d467d2d5b86fe4e9602bed4f87a8550e895f64da767fdecd06e45d391eeb63"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.drainAgentContinuationQueue (cognitive 16): AgentService.drainAgentContinuationQueue has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":5004}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4262c2cd62c4a233f94051eddadd295e7e3886a93082b044eff5b9da06d049"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.extractWorkspaceFileReferences (cognitive 16): AgentService.extractWorkspaceFileReferences has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 6, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":14621}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1a62b6e33a7ae1e417e3caf91b573f817e7d26efa60c4d94004b58f82675f0"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService.restoreHardCompactionStateFromBrain (cognitive 16): AgentService.restoreHardCompactionStateFromBrain has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":14789}}}],"partialFingerprints":{"codehealthFindingId/v1":"d396cbd5efae6700619864b96df859a35ad7828197c248063e3bc564d9212284"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolHttpServer.validateModelCapabilities (cognitive 16): ToolHttpServer.validateModelCapabilities has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 3 (6 pts), match/switch 1 (nesting depth added 3). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":1484}}}],"partialFingerprints":{"codehealthFindingId/v1":"159f8673fc5fcb03bd39f8c9c553766d9827ba8a0f685ee1c9b5cfbc07e44af5"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomToolHttpExecutor.execute (cognitive 16): CustomToolHttpExecutor.execute has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/CustomToolHttpExecutor.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"218448b29a3eb7fde8956214f679043023129231330bfcd4241b46dcbc3c98cc"}},{"ruleId":"D2","level":"warning","message":{"text":"DistributedService.startWorkerMode (cognitive 16): DistributedService.startWorkerMode has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 2, error handling 2, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DistributedService.kt"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"631f9e1d2f59adb02bd1f9453acf62a323cf64506b45eeb3ff01473019bce906"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteRtLmChatService.backendCandidates (cognitive 16): LiteRtLmChatService.backendCandidates has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cfc6603382dc430706984f19b7b4700544800809a8e5c6b0e7b2a11d44168c2"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveTranslatorService.recordUtterance (cognitive 16): LiveTranslatorService.recordUtterance has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"20950ee2620f07e66710b29c14c43edc50b887d5afbcf7b2e3e40738818e5a8a"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaCallService.recordUtterance (cognitive 16): LlamaCallService.recordUtterance has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15b93d11be1975e53b950918dc0fcd182d874358767b1cd3fb08ce19db7823d"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaClientService.onStartCommand (cognitive 16): LlamaClientService.onStartCommand has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38bd4b5fa4af5f002c6094a6c9d90183b5dc451c6e79294ec5c4a36fbf4bc8a"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaClientService.selectLiteRtToolsForPrompt (cognitive 16): LlamaClientService.selectLiteRtToolsForPrompt has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 4, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":2930}}}],"partialFingerprints":{"codehealthFindingId/v1":"8112798896bc9ac8d6effd9cbbbf8da82f525b40f7c502150074ed6020e6f8c9"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaServerLauncher.composeLlamaOcrFlags (cognitive 16): LlamaServerLauncher.composeLlamaOcrFlags has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 1, loops 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerLauncher.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"831a9076a60afe5e6111d2a4838148d28623352de654d111501f9bae16d4f70c"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFService.translationGroupsShouldMerge (cognitive 16): PDFService.translationGroupsShouldMerge has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 6 (7 pts), match/switch 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":1878}}}],"partialFingerprints":{"codehealthFindingId/v1":"02550d16278a2f2b3cc3a942b093e135a070fadf9ddffc6f3dd839c7661c4e49"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFService.collectImageOcrText (cognitive 16): PDFService.collectImageOcrText has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 1, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":2964}}}],"partialFingerprints":{"codehealthFindingId/v1":"091dbbda038d9c3938226a4c2629b0aa13c2274be3c1725c39569b86cf7b1c1f"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFService.performOCR (cognitive 16): PDFService.performOCR has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (15 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":7599}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a419b08c79707b5d6388e3f9770e723a6d73032c5ecb88b4c9d1f1f6bdf7c55"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcessController.substituteTemplateValues (cognitive 16): ProcessController.substituteTemplateValues has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15 (16 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ProcessController.kt"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"993b3ed38ffe0dacdbec5bb969d07e420dfbe8b62f9e0ef8412a3439f967fc6a"}},{"ruleId":"D2","level":"warning","message":{"text":"UnifiedNotificationManager.updateSummaryNotification (cognitive 16): UnifiedNotificationManager.updateSummaryNotification has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), error handling 2 (3 pts), boolean chains 1, 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":"app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19a9c0403900b32e11eca012cf429111dc754913d6799a47c0359776c31a129"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeChatStepHistory.expand (cognitive 16): NativeChatStepHistory.expand has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 1, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/chat/NativeChatStepHistory.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"153e7f7beeda1db39a88e39c2c2d5403a51d0b995f39cc0e6328d860b1f8565f"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeChatTurnDecorators.apply (cognitive 16): NativeChatTurnDecorators.apply has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), error handling 2, boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/compaction/NativeChatTurnDecorators.kt"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"327d1bacca209d4f690bba632fe1981f3f226791b3808a15c9f4ed3c2325bb88"}},{"ruleId":"D2","level":"warning","message":{"text":"DelegationFileBridge.resolve (cognitive 16): DelegationFileBridge.resolve has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegationFileBridge.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f6b8345e4e4f8a6381d72200da43de631dd81dce35ac58e13bcffebb138f230"}},{"ruleId":"D2","level":"warning","message":{"text":"DelegationProjectFiles.list (cognitive 16): DelegationProjectFiles.list has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegationProjectFiles.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c48ca2f693a72946f90440e7dcd10d252cdd435389bf551421d9c06032872c"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaCommerceCatalog.offer (cognitive 16): TamaCommerceCatalog.offer has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (13 pts), match/switch 2 (3 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/data/TamaCommerceCatalog.kt"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ebccc9c1dfea6936e284c35e3a19018004566800dde234de6b02fb6f4656aa0"}},{"ruleId":"D2","level":"warning","message":{"text":"GeneticTraits.inherit (cognitive 16): GeneticTraits.inherit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/data/TamaPet.kt"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"51cc139315c560b959e0a6964a93296e4fbd6d6f07396db3d54283ab4f8f1c8c"}},{"ruleId":"D2","level":"warning","message":{"text":"FarmEngine.updateFarm (cognitive 16): FarmEngine.updateFarm has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 6 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/FarmEngine.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d80a32367d6cb3c44f923817cba85f9bcd9d0086fd9b49f6dd637ae72fbcdf56"}},{"ruleId":"D2","level":"warning","message":{"text":"TamaArcadeSessionRules.validate (cognitive 16): TamaArcadeSessionRules.validate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, match/switch 3 (5 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaArcadeSessionRules.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e86863bf9de39b39375b8d5cc77c3268ea5099466f016745fd9aa3e39433a77"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessCommandsTabKt.HarnessCommandsTab (cognitive 16): HarnessCommandsTabKt.HarnessCommandsTab has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessCommandsTab.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb9efb808917fab6a3a94da9f4c684f56da64564c57af32fee2bf72c7797f24"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessExtensionsPanelsKt.HarnessPluginRow (cognitive 16): HarnessExtensionsPanelsKt.HarnessPluginRow has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 6, match/switch 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessExtensionsPanels.kt"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea06218feea4115b17d431c25eb1450cc72630cf400acda3adb5bb09e3266a2"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessProviderCreationKt.validateNativeCustomProviderRequest (cognitive 16): NativeHarnessProviderCreationKt.validateNativeCustomProviderRequest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessProviderCreation.kt"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c6e97f1b991f7521872397899065ef6727341b1d02952ab6e49ee38bff9033"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHarnessProviderSaveKt.buildNativeHarnessProviderSavePlan (cognitive 16): NativeHarnessProviderSaveKt.buildNativeHarnessProviderSavePlan has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 6, error handling 1, match/switch 1 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessProviderSave.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"559da677690c23c793cc3c21b53ed2ac3bb94be4937367400002ba16c569316b"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessAssistantStreamTracker.accept (cognitive 16): HarnessAssistantStreamTracker.accept has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessStreaming.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb8b9bf8a69c8f2d2d2fa623bfbe9e827c0f0c09d944513d22d21db9900e33d"}},{"ruleId":"D2","level":"warning","message":{"text":"FastsdGalleryScreenKt.ImageCard (cognitive 16): FastsdGalleryScreenKt.ImageCard has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/FastsdGalleryScreen.kt"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86f4c63cb7b6b2d4fbb3f8394ef25770e28f04d99da1eb24f859abb6bcefee3"}},{"ruleId":"D2","level":"warning","message":{"text":"SdCuratedBundlesSectionKt.SdCuratedBundlesSection (cognitive 16): SdCuratedBundlesSectionKt.SdCuratedBundlesSection has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 8. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0b8ebf84f46904344e89482037aca5ad2fb605d4d7a46d8be0c0662f8753c7"}},{"ruleId":"D2","level":"warning","message":{"text":"SdCuratedBundlesSectionKt.SdCuratedBundleCard (cognitive 16): SdCuratedBundlesSectionKt.SdCuratedBundleCard has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14 (15 pts), match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08b61baff07dc9dc63170d50ba9cfccdbee99770987d70871ce8092fbb85eb9"}},{"ruleId":"D2","level":"warning","message":{"text":"SdDistributedScreensKt.ImageComponentPickerSection (cognitive 16): SdDistributedScreensKt.ImageComponentPickerSection has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":3731}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b476089b6ccb2c78cbebd399e538d38db0a4a4662a90ca20afe62bb49aeb8ab"}},{"ruleId":"D2","level":"warning","message":{"text":"KiwixViewerScreenKt.KiwixViewerScreen (cognitive 16): KiwixViewerScreenKt.KiwixViewerScreen has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 3, match/switch 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/kiwix/KiwixViewerScreen.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c427b413ddb780738652c71df7ae8e6e9a6b402c349d404363ec01e6a19a7591"}},{"ruleId":"D2","level":"warning","message":{"text":"WhisperVadModelsSectionKt.WhisperVadModelsSection (cognitive 16): WhisperVadModelsSectionKt.WhisperVadModelsSection has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 1, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/WhisperVadModelsSection.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"714f94b3bc7c0f80f04e73d2e0da65402abc59568eb35f46012c14daf0dfdebd"}},{"ruleId":"D2","level":"warning","message":{"text":"NotesManagerScreenKt.NoteFullScreenDialog (cognitive 16): NotesManagerScreenKt.NoteFullScreenDialog has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt"},"region":{"startLine":2211}}}],"partialFingerprints":{"codehealthFindingId/v1":"7134472377b9c924ddabd8b009d8c31ca6f2e75dc821052d2996e138c748d3fc"}},{"ruleId":"D2","level":"warning","message":{"text":"WhisperSettingsScreenKt.WhisperSettingsContent (cognitive 16): WhisperSettingsScreenKt.WhisperSettingsContent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 3, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/WhisperSettingsScreen.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c8f890e7667411db4e1079e323cf4c8400987c675af7770fd4ee58cc4f704a"}},{"ruleId":"D2","level":"warning","message":{"text":"WearCompanionStore.applyGenerationFinal (cognitive 16): WearCompanionStore.applyGenerationFinal has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8f0b5711e190267c1f1359f0d4c9c2da6f75cc87c4da115e0adcbcd31a73f5"}},{"ruleId":"D2","level":"warning","message":{"text":"MainActivityKt.locationBackgroundAssetPath (cognitive 16): MainActivityKt.locationBackgroundAssetPath has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 14, if/else 1, match/switch 1. The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":3201}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bede826f7d46d9a92625d43d47060cdddd969da0352fdfd6f40a17635a41901"}},{"ruleId":"D2","level":"warning","message":{"text":"app.syncActiveChatState (cognitive 16): app.syncActiveChatState has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 11, if/else 5. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/ai_servers_webui/app.js"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a81c4aff88be06302a038500cf1c50f3db4d9aa87709b84a2245a0e8b02d4d"}},{"ruleId":"D2","level":"warning","message":{"text":"browser.initBrowser (cognitive 16): browser.initBrowser has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5 (nesting depth added 2). None of this is in the body itself: all 16 points belong to 6 function literals inside it that branch (lines 257, 254, 230, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/file_station_webui/js/browser.js"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"e522cb7c852d87ec43f11437e897a897154b0204198e3e5f2f9431c3b49b2a6b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentService: ClassTooLong \u2014 15551 significant lines (blank, comment-only and punctuation-only lines excluded), 159 methods. The bar is 400 significant lines; this is 15151 over it, 38.88\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"4854fd2d3883ea1b0626e8939f27f77d25ae403b3167fab1b675b47fcefc27dc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ImageGenScreenKt.ImageGenScreen: MethodTooLong \u2014 ImageGenScreen runs 3262 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3162 over it, 32.62\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f16165c9b9755d6a51ee1ea8b9e1efaef3e4186d17fd22cb1b7f7b7b3b59684"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/AgentService.kt: FileTooLong \u2014 15797 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: AgentService (301-20821). The bar is 500 significant lines; this is 15297 over it, 31.59\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89a7a5eb5ecbf65043242b592c894728b279834a10cfaf7692d087e66a4c59c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MasterModeScreenKt.MasterModeScreen: MethodTooLong \u2014 MasterModeScreen runs 2482 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2382 over it, 24.82\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"328a5200dc6125df8ae9f096ef3e4f81950fa76397e4146de0bed06449402b4c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Companion.executeToolCall: MethodTooLong \u2014 executeToolCall runs 2321 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2221 over it, 23.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":11014}}}],"partialFingerprints":{"codehealthFindingId/v1":"caaad3d8f874fbc1461ab59ca435151fc5e0226b5baf753d3a2482919ea04c24"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Companion.sendMessage: MethodTooLong \u2014 sendMessage runs 2168 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2068 over it, 21.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":8199}}}],"partialFingerprints":{"codehealthFindingId/v1":"610aaed1d7562b78faf5eec3f4243d201705042fa53d1f6202e2e1e7be479c9a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SettingsRepository: TooManyMethods \u2014 542 methods. The bar is 30 methods; this is 512 over it, 18.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":"app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd5a57830cd5f4ab1af58875eba07b64a553ded6b62edf5ec2406ff7e29d4ac"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SdDistributedScreensKt.SdDistributedMasterScreen: MethodTooLong \u2014 SdDistributedMasterScreen runs 1450 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1350 over it, 14.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3076b18d62631558b08db6381d63111acd2327ccde14199795a31f39cdeb8e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LLMSettingsScreenKt.LlmSettingsContent: MethodTooLong \u2014 LlmSettingsContent runs 1352 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1252 over it, 13.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"63cda40007588600a45a1c5b1fb2ce24dc4ded1933a8ea2c48e1427b48404c90"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/PDFService.kt: FileTooLong \u2014 6401 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 5901 over it, 12.80\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e04696223868f36636b59a8a66fa3494eab93d185ecef9f6e80c5f5f199987"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ai/WorkflowsScreen.kt: FileTooLong \u2014 5792 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 5292 over it, 11.58\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc88b17537dfdac57544059a56acfb5c6804023915eb0f00157d0d6c2d5cd50f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WorkflowsScreenKt.WorkflowsScreen: MethodTooLong \u2014 WorkflowsScreen runs 1128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1028 over it, 11.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc8f3d2c0dd28777a52931d3b759615f4eae878f388ced2e5ea0166d0d216ac"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VideoGenScreenKt.VideoGenScreen: MethodTooLong \u2014 VideoGenScreen runs 1060 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 960 over it, 10.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e38e5223ed5e4953b43cdc980b648fd7d5f97b28ab703eb7aed0893c7d4d22c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SettingsRepository: ClassTooLong \u2014 4082 significant lines (blank, comment-only and punctuation-only lines excluded), 542 methods. The bar is 400 significant lines; this is 3682 over it, 10.21\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"f629e702c589fc49764137f764ba3b84469469bcc05d7f71e983e10c114fd8d1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AiToolServerService: ClassTooLong \u2014 3983 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 3583 over it, 9.96\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"884caceb75df1e37128359742c522aae8f1d6a20a8e9db0c05e8f771db351266"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OnnxImageGenScreenKt.OnnxImageGenScreen: MethodTooLong \u2014 OnnxImageGenScreen runs 991 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 891 over it, 9.91\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ea5255120e878226791be81cf2e0e28ae9858e179c6f07303083729527151d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PDFToolboxScreenKt.PDFToolboxScreen: MethodTooLong \u2014 PDFToolboxScreen runs 990 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 890 over it, 9.90\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5daa5d5ca3b8d33e86f3880a2a98cbb1800de4f11ff332de4e64095855339b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Companion: TooManyMethods \u2014 293 methods. The bar is 30 methods; this is 263 over it, 9.77\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":2738}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a9dc91a755d6b6bfc6efe27fe5f8ec28f2f8ab5cafeaec804c9b45bd7c9cfb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/TamaScreen.kt: FileTooLong \u2014 4819 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 4319 over it, 9.64\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9985e08cda0a21db007df6887b2e8fe15ee287936c3760ed0aecd4604b457b2a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LlamaService.startServer: MethodTooLong \u2014 startServer runs 925 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 825 over it, 9.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaService.kt"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a590844fe9fb27ba72938e43f79d549b88572020d58e1a2af449b50190d726c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MasterModeScreenKt.RemoteMasterCard: MethodTooLong \u2014 RemoteMasterCard runs 904 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 804 over it, 9.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":3845}}}],"partialFingerprints":{"codehealthFindingId/v1":"d20eca869615cd6f921febc3fae6ca7f299efb67ff1663af2dea0d49513ae3ee"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WorkflowsScreenKt.MangaTranslationWorkflowContent: MethodTooLong \u2014 MangaTranslationWorkflowContent runs 858 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 758 over it, 8.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":1497}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4715ab579f1b0734aeaece177a1f0a0ebdaea2ad4ca00b9bd966652a0ce1526"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: data/SettingsRepository.kt: FileTooLong \u2014 4227 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: SettingsRepository (188-6114). The bar is 500 significant lines; this is 3727 over it, 8.45\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5169c9f96d9ebf6e6e96fbe50ba34acb8c1c79e9b598058205720101bc77a14"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TamaGameEngine: TooManyMethods \u2014 250 methods. The bar is 30 methods; this is 220 over it, 8.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"95314f468879672374e35ddc44e99e4b0cfc3111595b04c197b24ff3d3e8ce06"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TamaGameEngine: ClassTooLong \u2014 3325 significant lines (blank, comment-only and punctuation-only lines excluded), 250 methods. The bar is 400 significant lines; this is 2925 over it, 8.31\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc78df843a666e1f53d31a3f9600369f84b713a1507f8991733145fcf8ef8a9e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GeneralSettingsScreenKt.GeneralSettingsScreen: MethodTooLong \u2014 GeneralSettingsScreen runs 829 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 729 over it, 8.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"c677d03f4086d02834f9fb83f71380324ce371fea7c956a7b1297b3e06ef4f56"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/AiToolServerService.kt: FileTooLong \u2014 4114 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: AiToolServerService (139-5109). The bar is 500 significant lines; this is 3614 over it, 8.23\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"accb5ceba0675139e00a694d717f5364f4b4bba2dac289025bb8b6ada1545cb4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ai/ImageGenScreen.kt: FileTooLong \u2014 4029 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3529 over it, 8.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc819cd9b91c9f5436efb310ea5a075df3cbf6a8413acfc724547d1bec42baac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: distributed/MasterModeScreen.kt: FileTooLong \u2014 3808 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3308 over it, 7.62\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a107ebd78b4400f783c5927d823f446a56387e06d3b005847552f9073b3c57e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: distributed/SdDistributedScreens.kt: FileTooLong \u2014 3791 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3291 over it, 7.58\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6645be4087dd2426db962429d4323a46c96ff07abc71a4f4dd9c42dbb3a2eb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/AdventureGateScreen.kt: FileTooLong \u2014 3636 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3136 over it, 7.27\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51726efd22bf33bf3993333acf986a0b746c6d0f80feec6ed7e1085973842fd2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/NativeChatTools.kt: FileTooLong \u2014 3409 significant lines (blank, comment-only and punctuation-only lines excluded), about 61% of them inside a single declaration: NativeChatToolRuntime (937-3545). The bar is 500 significant lines; this is 2909 over it, 6.82\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62cbabc69e7b9445be9e23eaf647099a7581899cfcf6559ff9cddb8c5ccafed8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentDirectReceiptTransition: ClassTooLong \u2014 2712 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 2312 over it, 6.78\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":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e33355b47e7ecfc33ec8515a2a070fad8e068e47a3192ac807c3898bbc5d885"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/AgentDialogs.kt: FileTooLong \u2014 3385 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2885 over it, 6.77\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"988e7d3feb293c44d5c5a3c358699e26baae4db06f2c25e4c46975dc7b5ae0d0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: game/TamaGameEngine.kt: FileTooLong \u2014 3382 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: TamaGameEngine (64-4568). The bar is 500 significant lines; this is 2882 over it, 6.76\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d922bdac4e50b6ced9012098ce03398b004f540350afa3e6c8dcf1aedb6881"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/LlamaClientService.kt: FileTooLong \u2014 3381 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2881 over it, 6.76\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cca4d51d4cc72cf7d3e4f52bf86d281f9921118e421c9826ce4560378a9d06a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VideoSumupScreenKt.VideoSumupScreen: MethodTooLong \u2014 VideoSumupScreen runs 653 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 553 over it, 6.53\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoSumupScreen.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"96eb6010d2e2601f060f926fcc1c79d5269b771e030fbe10429cf6ff08ab51af"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessAgentRouteKt.HarnessCapturedAgentRoute: MethodTooLong \u2014 HarnessCapturedAgentRoute runs 632 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 532 over it, 6.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAgentRoute.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"218120ac30110dd6b603beb30c611ed9d260ccaa23b11991a0f39d49e9fa4890"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ToolHttpServer: TooManyMethods \u2014 189 methods. The bar is 30 methods; this is 159 over it, 6.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08e8393ae05eceb5eb0b431978959101037fdac8d16e9e0a09afd83277d5027"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: db/Migrations.kt: FileTooLong \u2014 3139 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2639 over it, 6.28\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/Migrations.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d67f769811fdf9594f8a466568535cf33fc4fa6bb142d537ac461f6fb5f9a4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PDFService: TooManyMethods \u2014 188 methods. The bar is 30 methods; this is 158 over it, 6.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"6799407ef23a85cfa702a2823ddff92bc83d1d65cbf20eb399828eb585fed20b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Companion.getAgentTools: MethodTooLong \u2014 getAgentTools runs 615 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 515 over it, 6.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":17281}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f25ecff4f2c95f616efac3e84f8be75184a2a09297f78ceea44959a378150ed"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NotesManagerScreenKt.NotesManagerScreen: MethodTooLong \u2014 NotesManagerScreen runs 604 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 504 over it, 6.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b789f16f75f5743d9bd7af01d3b101d4f3c3c59c8eb6b740fb39385041d3c8d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TermuxScreenKt.TermuxScreen: MethodTooLong \u2014 TermuxScreen runs 594 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 494 over it, 5.94\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc648222ee048b04ffea12e7e2de6dc74321d956b47decf217ece2c173ea84cd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/AgentProjectControlPlane.kt: FileTooLong \u2014 2896 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: AgentDirectReceiptTransition (249-3731). The bar is 500 significant lines; this is 2396 over it, 5.79\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a86d70b7976f545a8b367f5f80e6f7bbfbeb4e373bc5a050ad888afc263876ff"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiteRtModelsScreenKt.LiteRtModelsScreen: MethodTooLong \u2014 LiteRtModelsScreen runs 571 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 471 over it, 5.71\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b7ac2745d1df5d7168bb2330d34061877e5b7e58cd227646136eb1a52da564"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ai/SDModelsScreen.kt: FileTooLong \u2014 2778 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2278 over it, 5.56\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49dd27bd01b43d76f7bef7c6e31fc04aa5db781d7ecfd87c7f8963faf06c5ce5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RemoteServerFormKt.RemoteServerForm: MethodTooLong \u2014 RemoteServerForm runs 538 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 438 over it, 5.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/RemoteServerForm.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a10c6f0849934e634a047b7a3dde022eaa32685a0bf7dc57bd07359406a15a9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: wear/MainActivity.kt: FileTooLong \u2014 2658 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2158 over it, 5.32\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d1a4ee3fba5a6ee238a77125b956686ed3f51c1be226076ebce5a0d18aefdf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentService: TooManyMethods \u2014 159 methods. The bar is 30 methods; this is 129 over it, 5.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"338811b2324d88ed22f46b92c0d71d60224ce7acb1c172b27cbf0662501300b6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NativeChatToolRuntime: ClassTooLong \u2014 2071 significant lines (blank, comment-only and punctuation-only lines excluded), 67 methods. The bar is 400 significant lines; this is 1671 over it, 5.18\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60ff9b80b1ea5be1eec860d6894b2660ed0beb47b4b630c54faf64388a6c3e9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TermuxFileManagerScreenKt.TermuxFileManagerScreen: MethodTooLong \u2014 TermuxFileManagerScreen runs 510 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 410 over it, 5.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/TermuxFileManagerScreen.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89cbc4675899f0b0187c78d4690350646cb14d19356005c4c3ab939f3cccde1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LlamaSchedulerScreenKt.LlamaScheduledTaskEditorDialog: MethodTooLong \u2014 LlamaScheduledTaskEditorDialog runs 506 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 406 over it, 5.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"02295bbe3d6308dface39401763e08aea8219327da8bed40610d0a01b35340c8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LlamaChatListScreenKt.LlamaChatListContent: MethodTooLong \u2014 LlamaChatListContent runs 503 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 403 over it, 5.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaChatListScreen.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6bd9e125dd191167a04486fc8b840de8942d5ee43fce7eda8dec8151f499109"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DownloadService.startDownloadInternal: MethodTooLong \u2014 startDownloadInternal runs 468 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 368 over it, 4.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DownloadService.kt"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"adbf4bdb1260d593052fc824cab3fbe52a52516f7978429e8332c95856b74885"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TamaChatServerSettingsKt.TamaChatSettingsDialog: MethodTooLong \u2014 TamaChatSettingsDialog runs 461 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 361 over it, 4.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatServerSettings.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd3a9eafaa6aa2ee42e421ca6f4fa6ef2c800be3845bac3a18263daaa8d9880"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/AgentWorkspaceScreen.kt: FileTooLong \u2014 2291 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1791 over it, 4.58\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f564a7c8c1d6824239994184001dbd767f7f3dcf059c317ae3fffdc3b33a2e6c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/LiteRtLmChatService.kt: FileTooLong \u2014 2233 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1733 over it, 4.47\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e63611a05beac4af1dd7f793fec181025cda48ad6349c764fc6573c24dd3ecc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Companion: TooManyMethods \u2014 131 methods. The bar is 30 methods; this is 101 over it, 4.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DistributedService.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca9ca5d99890a30a06e4a2ebaf3b36e35ecea18c96ae5e61f3f35283dbc0ffb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: wear/PhoneWearGateway.kt: FileTooLong \u2014 2151 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1651 over it, 4.30\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4869c00f595e880d7321473da7a4f6a28c557df862991f912eb8990e31a69a4d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: notes/NotesManagerScreen.kt: FileTooLong \u2014 2142 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1642 over it, 4.28\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf9e4ba8bca017127f93f5020d48f2fb87835667c23ad8f1c2e6264e6367be3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ModelSourceRepository: ClassTooLong \u2014 1710 significant lines (blank, comment-only and punctuation-only lines excluded), 54 methods. The bar is 400 significant lines; this is 1310 over it, 4.28\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6df72fea5c91490af0e14bca3a327b0dcabda148281b6a5d66bb3e291b5c9c5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LlamaService: ClassTooLong \u2014 1704 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 1304 over it, 4.26\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaService.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d01bd22a86bac53a9cc8b5ff1d5ebba92054f10d78e11bff4eecabb3784daed"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VideoInterpolationScreenKt.VideoInterpolationScreen: MethodTooLong \u2014 VideoInterpolationScreen runs 423 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 323 over it, 4.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoInterpolationScreen.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"702c5c42798b4e799ba56b564764baba1cb30725322328550d31e75b6f86f6ee"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ai/VideoGenScreen.kt: FileTooLong \u2014 2105 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1605 over it, 4.21\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7eaafbfc60520266003c07144345336d479fdcc9fea5035385a32357d7efc95"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StableDiffusionService: ClassTooLong \u2014 1679 significant lines (blank, comment-only and punctuation-only lines excluded), 99 methods. The bar is 400 significant lines; this is 1279 over it, 4.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c8c36cc88aa2d2910baa537a9abacfd3f6593862837322fadd66352076cffd8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/AgentRuntimeSupport.kt: FileTooLong \u2014 2049 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1549 over it, 4.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentRuntimeSupport.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e307cc1347df84215321f63c9fab043e3516a2f8780b06e6b7f41681ecb348"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FarmScreenKt.FarmScreen: MethodTooLong \u2014 FarmScreen runs 393 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 293 over it, 3.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmScreen.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c9adbe2ec2d0860ba6644cc62960993842fd1954f7edbbaa1ea90921e1bea9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: llama/LlamaSchedulerScreen.kt: FileTooLong \u2014 1914 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1414 over it, 3.83\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"883e12d2c5701a8cf15cb5d739ea11953722e37e7a029563676f1139119cbe3a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: library/ModelSourceRepository.kt: FileTooLong \u2014 1868 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: ModelSourceRepository (177-2482). The bar is 500 significant lines; this is 1368 over it, 3.74\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac500936944af37be2f5f912539a8f2359dc4210116cdcb4f785d883912ada3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/StableDiffusionService.kt: FileTooLong \u2014 1836 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: StableDiffusionService (53-2289). The bar is 500 significant lines; this is 1336 over it, 3.67\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62479850f394506e2eb46f2630add424cef05eab6a4211206751525939e41fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: repository/KnowledgeBaseRepository.kt: FileTooLong \u2014 1830 significant lines (blank, comment-only and punctuation-only lines excluded), about 62% of them inside a single declaration: KnowledgeBaseRepository (158-1601). The bar is 500 significant lines; this is 1330 over it, 3.66\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bfcf38bd889831b8060f8da5ddc478ad78d2f5ba78b5055fdd1d7d5519f7e80"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VideoRecognitionSummaryService.run: MethodTooLong \u2014 run runs 364 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 264 over it, 3.64\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoRecognitionSummaryService.kt"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"843cea2603e362672a30ace81fb7a97180561f6efe99665e1cc5f113c202182f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VideoUpscalerScreenKt.VideoUpscalerScreen: MethodTooLong \u2014 VideoUpscalerScreen runs 364 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 264 over it, 3.64\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoUpscalerScreen.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf31c5a7d1e95fc4d35a71adec33f61b59568e2436cd2698ce2dcdbc417bfa8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NativeChatToolRuntime.availableTools: MethodTooLong \u2014 availableTools runs 360 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 260 over it, 3.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"218fc044b62c94ac609d1ee59d43e4d1dfd5441a8f5297424ba3c56bb1a6c1fc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SdCliSupportKt.buildSdCommandArgs: MethodTooLong \u2014 buildSdCommandArgs runs 356 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 256 over it, 3.56\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdCliSupport.kt"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"51753f93eaa3846d160757a37c7bf147f12798cf1d55ed5b10302832293d2797"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/LlamaService.kt: FileTooLong \u2014 1755 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: LlamaService (68-2314). The bar is 500 significant lines; this is 1255 over it, 3.51\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e29929845eb08b7a528fe9008aeb956ce8428aeefb4301466abfca56089fed"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Companion.validateToolCall: MethodTooLong \u2014 validateToolCall runs 349 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 249 over it, 3.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":16676}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52cc87385077eae8c40856410606fa3bdda3d3a83c970ff8f6d829d5497f973"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DatasetProjectScreenKt.SettingsTab: MethodTooLong \u2014 SettingsTab runs 348 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 248 over it, 3.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt"},"region":{"startLine":1873}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ed60fe944644e606cdbafa56818bc5e784d7a62ac5c0a0de00022843811657"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KnowledgeBaseScreenKt.KnowledgeBaseScreen: MethodTooLong \u2014 KnowledgeBaseScreen runs 348 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 248 over it, 3.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"1949cdba9c9580396f4567dc1a5d46482e753704e146cf39a19531267fb219e6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WhisperModelsScreenKt.WhisperModelsScreen: MethodTooLong \u2014 WhisperModelsScreen runs 348 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 248 over it, 3.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"f823135c6ceef8485c8551a34f203cbd22f5d3b6bbdd8de3913c542f1c638a0e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MangaPaintedMaskEditorKt.PaintedMaskEditorContent: MethodTooLong \u2014 PaintedMaskEditorContent runs 347 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 247 over it, 3.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/MangaPaintedMaskEditor.kt"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae23aa72d3f3511c85e84e2a556967c824c1642108d2a44a0cb2022f9dfbe1b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ai/OnnxImageGenScreen.kt: FileTooLong \u2014 1728 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1228 over it, 3.46\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12e7c7cf6324172217694d69320d0153e85dce9e65e44ec20a611474897c0f2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DownloadService: ClassTooLong \u2014 1378 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods. The bar is 400 significant lines; this is 978 over it, 3.45\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DownloadService.kt"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d6d4d59985f2acc63a4de33ce1f3c1055e153b3ff8f3141d0d71f21483ef53"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiveTranslatorScreenKt.LiveTranslatorScreen: MethodTooLong \u2014 LiveTranslatorScreen runs 344 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 244 over it, 3.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/LiveTranslatorScreen.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe27d524d5c8e8e5ec95277e7fa0ca6301843ad14a48d44eb6ec1b40f492473"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelManagerScreenKt.DiscoverTab: MethodTooLong \u2014 DiscoverTab runs 343 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 243 over it, 3.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt"},"region":{"startLine":1296}}}],"partialFingerprints":{"codehealthFindingId/v1":"a487c097ff4a727084aad0182b04531c0ee72318c83c33dd4446221a96cc2af4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pdf/PDFToolboxScreen.kt: FileTooLong \u2014 1710 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1210 over it, 3.42\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef036b8271acd49d29098ddef69177b24dcfcfc7ced54ae3d370261cd63e275"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/AgentDurableContractStore.kt: FileTooLong \u2014 1702 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1202 over it, 3.40\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentDurableContractStore.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd084f707724aeff8b92c2235c73b8b264addeefd4bc92fb60fe10ac1e91bf2a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentWorkflowDao: ClassTooLong \u2014 1345 significant lines (blank, comment-only and punctuation-only lines excluded), 148 methods. The bar is 400 significant lines; this is 945 over it, 3.36\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentWorkflowDao.kt"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06bd049c551a772bf49af953fd0507b367282054b9f546cc071cdb0f2587943"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ModelRepository: ClassTooLong \u2014 1337 significant lines (blank, comment-only and punctuation-only lines excluded), 52 methods. The bar is 400 significant lines; this is 937 over it, 3.34\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d34fc56c63d10192b4cecfdc8f0f31afdcc04d5b43e071933fb21c97c3c181"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: harness/NativeHarnessController.kt: FileTooLong \u2014 1669 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: onDiagnostic (96-2230). The bar is 500 significant lines; this is 1169 over it, 3.34\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9816ac3fcfaf9b3a71df9b4682d0f2951911ada6546f2a131042c4e002998031"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: model/ModelRepository.kt: FileTooLong \u2014 1664 significant lines (blank, comment-only and punctuation-only lines excluded), about 80% of them inside a single declaration: ModelRepository (92-1957). The bar is 500 significant lines; this is 1164 over it, 3.33\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4135ecea1dac499f0bb3bbe69f4ec5ea5d5bda82b0aa9d5bc8b291fe4ea82158"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dataset/DatasetProjectScreen.kt: FileTooLong \u2014 1664 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1164 over it, 3.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"872b5b87127159cca6117255241f470f86d1de9bb13d49d7aebfc9d859f27889"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelLibraryScreenKt.BundleEditorDialog: MethodTooLong \u2014 BundleEditorDialog runs 332 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 232 over it, 3.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryScreen.kt"},"region":{"startLine":1393}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c5d2844028cac916e4dbc1c00451a154295a2c99d5d89e836c4f7b5c2da083f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StableDiffusionService: TooManyMethods \u2014 99 methods. The bar is 30 methods; this is 69 over it, 3.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4ba9310af5686ea5eaa547286bb941b5bf563833b5530beac9ac2831219ffa"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelLibraryScreenKt.ModelLibraryScreen: MethodTooLong \u2014 ModelLibraryScreen runs 330 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 230 over it, 3.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryScreen.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"9245402ea9ec8d74bc42d6abfc0d1efedef66bf0dced0b30a252d68ee17124ad"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BenchmarkScreenKt.BenchmarkScreen: MethodTooLong \u2014 BenchmarkScreen runs 328 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 228 over it, 3.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkScreen.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea6787d6b09a8a316856b7ab9d328182f617c3dd230c9500e8e33597add3da11"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WearCompanionStore: TooManyMethods \u2014 98 methods. The bar is 30 methods; this is 68 over it, 3.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf6515075a74c713bc8d49e763f2cb8d821dce9edee9370b2b1206a0bb0b2cd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/LiteRtModelsScreen.kt: FileTooLong \u2014 1601 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1101 over it, 3.20\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4068c56d8cfeb43fd4a6e74858b4c5d169a77fc5da1b21949639977983040776"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WearRequestRouter: ClassTooLong \u2014 1275 significant lines (blank, comment-only and punctuation-only lines excluded), 92 methods. The bar is 400 significant lines; this is 875 over it, 3.19\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"37aedc84692ef3405ed416237786b63b44d22e1e94af2f0f39486ce9c1f22f47"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Companion.approvePendingPlan: MethodTooLong \u2014 approvePendingPlan runs 318 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 218 over it, 3.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":7093}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a1f6674243c7f0092a9607289e846a4be24f80b6096b1d58e424ca92f88358"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PDFSummaryScreenKt.PDFSummaryScreen: MethodTooLong \u2014 PDFSummaryScreen runs 311 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 211 over it, 3.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFSummaryScreen.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc6f66eebaa9fdd20c5a86fef7d9e5459dc11069787e21b16bface0c68d66192"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AdventureGateScreenKt.AdventureGateBattleView: MethodTooLong \u2014 AdventureGateBattleView runs 310 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 210 over it, 3.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":2657}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53aa5cc3c35bae20194a017d3b73896692ffa04e0f3d323b6042df6b02054d4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: harness/HarnessScreen.kt: FileTooLong \u2014 1547 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1047 over it, 3.09\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd797429f4958938b4d18ea36cdfe9e112425f542f74d0bf937a9b898ac0c46"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WearRequestRouter: TooManyMethods \u2014 92 methods. The bar is 30 methods; this is 62 over it, 3.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":"app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6f541f3169e2fd4c14269d4711e95664a50e742c572b9145e7ebd1d99fdbe7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TamaScreenKt.TamaPetDisplay: MethodTooLong \u2014 TamaPetDisplay runs 305 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 205 over it, 3.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":4784}}}],"partialFingerprints":{"codehealthFindingId/v1":"b01295e3c659bf29796d709093dcdac1db043835010ef3898daf395b3437c287"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LlamaClientService: TooManyMethods \u2014 91 methods. The bar is 30 methods; this is 61 over it, 3.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d8f399885131a41dd543022212c5dcd620ee178f7fa63cd11007474b887978"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VideoGenerationService: ClassTooLong \u2014 1202 significant lines (blank, comment-only and punctuation-only lines excluded), 58 methods. The bar is 400 significant lines; this is 802 over it, 3.01\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f4a965b3813c99ab46c3d087717602491502d94d03aa23b0d6355663ee87ae"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/ModelLibraryScreen.kt: FileTooLong \u2014 1496 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 996 over it, 2.99\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a166c77caec3a0f2e221919aab22b2cf5c1c3bbac1d7afe480205a2ea0f7df"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentDialogsKt.AgentGlobalOverrideCard: MethodTooLong \u2014 AgentGlobalOverrideCard runs 299 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 199 over it, 2.99\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":2695}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a166545dda45989ab157647d0ff70839aa192003b66b3bd11f354189f00744e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/DownloadService.kt: FileTooLong \u2014 1482 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: DownloadService (145-2077). The bar is 500 significant lines; this is 982 over it, 2.96\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DownloadService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba8226aa6015b5afcd9d74eda2b315b7537873159c4a17fc9b932a98edb60eb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AdventureGateScreenKt.AdventureGateScreen: MethodTooLong \u2014 AdventureGateScreen runs 294 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 194 over it, 2.94\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"569055c1a678a6cd581fda75004feb2c7965024f7febbe77aa33eb889d33e068"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OllamaManagerScreenKt.OllamaManagerScreen: MethodTooLong \u2014 OllamaManagerScreen runs 294 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 194 over it, 2.94\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ollama/OllamaManagerScreen.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"c908c4073f803b82b186006b80ce460b75fabedb5a34d2598e4818e86cff6c07"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PDFToolboxScreenKt.GuidedPdfOcrTool: MethodTooLong \u2014 GuidedPdfOcrTool runs 294 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 194 over it, 2.94\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":1493}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e0ffd260f73f600b1d6ad3e5fadf5a7e8d4730af4adde968c454201773c371"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rpg/AdventureGateCombatEngine.kt: FileTooLong \u2014 1463 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 963 over it, 2.93\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateCombatEngine.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4de5aac4f2fedaccaf314997ab239f73e9e8367377337b42a522003ebc525d4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KnowledgeBaseRepository: ClassTooLong \u2014 1143 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods. The bar is 400 significant lines; this is 743 over it, 2.86\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":"app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a6dc51b09553b680cff3c6cea1d46849e58153bb9a67a1bc0c3416f38b8ece9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: settings/LLMSettingsScreen.kt: FileTooLong \u2014 1416 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 916 over it, 2.83\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29bf8a9b4758dae2c91e35b2f900729c5910198ab007aa574f30c828015076c8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/AgentChatList.kt: FileTooLong \u2014 1402 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 902 over it, 2.80\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentChatList.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05859df1959ac5de432dcb7d0b3484879e3e9eb6c4628d967bf57bc6b3f553d2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/MangaTranslationSupport.kt: FileTooLong \u2014 1401 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 901 over it, 2.80\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16bfe74079786828fd42a8c804f73b89f7ebdb6ca06d253967c95a353c689c1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ai/TermuxScreen.kt: FileTooLong \u2014 1394 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 894 over it, 2.79\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf806ed71dca7e0231ad7e4665193e31afd3b3efd8a829a8cd886c6f1bb55953"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/ModelManagerScreen.kt: FileTooLong \u2014 1388 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 888 over it, 2.78\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c971fe3227a31e3bdba84ff8835387b2f52e45237f0045c4696585374b4e34"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessRootfsFileBrowserKt.HarnessRootfsFileBrowser: MethodTooLong \u2014 HarnessRootfsFileBrowser runs 275 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 175 over it, 2.75\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRootfsFileBrowser.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"94bf1b6ac4d73bbed6962f9894f7f7b344eb6e4e31308d0958b34fbdd7f5a7fd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: chat/LlamaChatScreen.kt: FileTooLong \u2014 1372 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 872 over it, 2.74\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/LlamaChatScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a7c72bd4c0d3e93e24457b0c4ad3d40961da8df44d8d882e95ddf656c75af9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LlamaServerChatService.performChatWithToolsStreaming: MethodTooLong \u2014 performChatWithToolsStreaming runs 271 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 171 over it, 2.71\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerChatService.kt"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9376c41c6f3f3c0a73965029672530cfdfd2ae2e797b35e72e5eb59781180cc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: db/AgentWorkflowDao.kt: FileTooLong \u2014 1354 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: AgentWorkflowDao (12-1675). The bar is 500 significant lines; this is 854 over it, 2.71\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentWorkflowDao.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac09f7355683e9bcd3ccc621dda3f6a9c77757fc1c8965f70be9dec7b665c0c3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiveTranslatorScreenKt.LiveTranslatorBackendCard: MethodTooLong \u2014 LiveTranslatorBackendCard runs 268 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 168 over it, 2.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/LiveTranslatorScreen.kt"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"a21b68129c65813564bccabb32764283cedef131fa512a19554e5b9fa5866608"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentDurableContractStore: TooManyMethods \u2014 80 methods. The bar is 30 methods; this is 50 over it, 2.67\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":"app/src/main/java/com/example/llamadroid/service/AgentDurableContractStore.kt"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb2c86cf71293a425510d193dd535acb39c958cd85dfdb646d607fde1458c0b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: settings/GeneralSettingsScreen.kt: FileTooLong \u2014 1333 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 833 over it, 2.67\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ad522da58a58d75d39ef919f054b23109c58602d43a2303a8c4aedbe9ad3833"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VideoCommandBuilderKt.buildVideoCommandArgs: MethodTooLong \u2014 buildVideoCommandArgs runs 265 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 165 over it, 2.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoCommandBuilder.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a6e0daf5275000266fa6207d003ee4dd73071b1ed7a8c7b86680651fefecf50"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WearCompanionStore: ClassTooLong \u2014 1057 significant lines (blank, comment-only and punctuation-only lines excluded), 98 methods. The bar is 400 significant lines; this is 657 over it, 2.64\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d252624449d03d7245ba9fa6a0235da793333d54439efd13cffe844531768d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/ProcessController.kt: FileTooLong \u2014 1317 significant lines (blank, comment-only and punctuation-only lines excluded), about 77% of them inside a single declaration: ProcessController (49-1488). The bar is 500 significant lines; this is 817 over it, 2.63\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ProcessController.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66555114e183c9660b295d2b3af8a64d17ded696bb595655f56e040a0a47e2ef"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PendingAgentPreviewBlobDownload: ClassTooLong \u2014 1040 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 640 over it, 2.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e81b2a5a19a51b0cc848d8124ee2c5fd931433dc36b924d7c5cfa6e5a22d5b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MemoryFilePolicy: ClassTooLong \u2014 1039 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 639 over it, 2.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentRuntimeSupport.kt"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc583a4593fdd71fe7e343800d79e5b133052025341123d87d981c761f16f315"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SubtitleBurnScreenKt.SubtitleBurnScreen: MethodTooLong \u2014 SubtitleBurnScreen runs 259 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 159 over it, 2.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SubtitleBurnScreen.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ba4090c1fe22b2c2756a369efebf385f14c1a12487ba9d4f130d0d09d5808d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentSkillManagerKt.AgentSkillManagerDialog: MethodTooLong \u2014 AgentSkillManagerDialog runs 258 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 158 over it, 2.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentSkillManager.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"11765799b0a8c93877a2de360668d72bd7e8fb61b703708c28e519735f321d3d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NativeHarnessController: TooManyMethods \u2014 77 methods. The bar is 30 methods; this is 47 over it, 2.57\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2449ba9ba6ebf2600cd22b0d20b64540b91bc439060eea85ab7e3591e8dc154"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentProjectControlPlane: TooManyMethods \u2014 76 methods. The bar is 30 methods; this is 46 over it, 2.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"158b2a752812d295cadc495e316c4fec986319c36b2035f434d6222bf7f5f658"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ProcessController: ClassTooLong \u2014 1013 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods. The bar is 400 significant lines; this is 613 over it, 2.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ProcessController.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"666d0336f61ef32f99e6cbee7b131dc2be1fc90a16ceef62fd77be571ebbc3a6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: knowledge/KnowledgeBaseScreen.kt: FileTooLong \u2014 1262 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 762 over it, 2.52\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a3915416efc3dc300a1bc7150358653584a239f03dd0aa1bd0fdaeb2f9a4145"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DatasetProjectScreenKt.ReviewTab: MethodTooLong \u2014 ReviewTab runs 251 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 151 over it, 2.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt"},"region":{"startLine":1323}}}],"partialFingerprints":{"codehealthFindingId/v1":"56133f708d85d6763fe5673105c85a6d798fe6e1216a7c0f5771408ae65a4bc9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DistributedService: ClassTooLong \u2014 996 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods. The bar is 400 significant lines; this is 596 over it, 2.49\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DistributedService.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"615576f70e336f5833cdd13549dd9cd87defcf1607f3c18189f81c98d934852b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/VideoGenerationService.kt: FileTooLong \u2014 1245 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: VideoGenerationService (50-1628). The bar is 500 significant lines; this is 745 over it, 2.49\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9a90bb3150e2f540ebbda605e15dd6db96e940fe2f7e6a6db06d77d5f356e4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SystemPromptsSettingsScreenKt.SystemPromptsSettingsScreen: MethodTooLong \u2014 SystemPromptsSettingsScreen runs 249 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 149 over it, 2.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/SystemPromptsSettingsScreen.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bad2fb345681fa8a93cb2411cb4a6f44e6d5d6051731670ebb1c5f8a60ccf84"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessSettingsNavigationKt.HarnessSettingsNavigator: MethodTooLong \u2014 HarnessSettingsNavigator runs 246 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 146 over it, 2.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessSettingsNavigation.kt"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"374d6662fda48213e563c2c6f2b0f6665327325ade7829817950ec46f2a34f7e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TamaAgentService: ClassTooLong \u2014 974 significant lines (blank, comment-only and punctuation-only lines excluded), 45 methods. The bar is 400 significant lines; this is 574 over it, 2.44\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"becb366ab4250fa1d6ed7aa53ffb4e3a63b3aa40adc585076f54e4168c32f14f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DatasetProcessor: ClassTooLong \u2014 972 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 572 over it, 2.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f3524ab17dfcb6f9371f5f9b7ada2a5a7dda6eed6a181d741e0c1b0b96a2c6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HarnessRuntimeController: ClassTooLong \u2014 964 significant lines (blank, comment-only and punctuation-only lines excluded), 41 methods. The bar is 400 significant lines; this is 564 over it, 2.41\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":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e80b4e8a004ac035781c772a8bf4a02d4ee9f86ad8b5565820515433203d2e2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DatasetProjectScreenKt.DatasetProjectScreen: MethodTooLong \u2014 DatasetProjectScreen runs 241 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 141 over it, 2.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc2f12eaecbd467e4ea6b7738801750aba4499637ff25c239619232175e4482"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/ArcadeScreen.kt: FileTooLong \u2014 1197 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 697 over it, 2.39\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23591a945b321868c7794f082cc174de736ca85850ba1a255759b70949e14667"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DailyDreamMoment: ClassTooLong \u2014 953 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 553 over it, 2.38\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaDailyDreamManager.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b45900a03cd6fa07b3886c23ae9f76df2103d9f08545fedfa84f63daf97d3f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OnnxTtsScreenKt.OnnxTtsScreen: MethodTooLong \u2014 OnnxTtsScreen runs 237 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 137 over it, 2.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxTtsScreen.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9cae2baf4309f1997056c30d7bdac978d5c871c41a12cfc7d917b996fdbb967"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/UnifiedNotificationManager.kt: FileTooLong \u2014 1181 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 681 over it, 2.36\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5ef556f5b6f0aca9674dd36556aabbef802ba4b78c28bb7284d2e4b51d0acb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LlamaService.onStartCommand: MethodTooLong \u2014 onStartCommand runs 235 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 135 over it, 2.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaService.kt"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d09ff061b1fb3dac858781a37157cd494b502a24e9632c620aba5e1dc34baa5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SdArtifactInspector: ClassTooLong \u2014 935 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 535 over it, 2.34\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdArtifactInspector.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd296ec22f9c2101aa4dbea6e7290595ac3d164c06dcab2ff26d137357d9dd9c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: audio/AudioWorkspaceScreen.kt: FileTooLong \u2014 1167 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 667 over it, 2.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/AudioWorkspaceScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92830ff07b4c886d423e197fbbeba07f8a1fa653c4f27518748aa9974c2923cc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MangaTranslationSupport: TooManyMethods \u2014 70 methods. The bar is 30 methods; this is 40 over it, 2.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"98671d9669aae32fe5811e0ed1872bdb9d6349fb6c626df80bb5c1e749cc27b4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatScreenKt.ChatScreen: MethodTooLong \u2014 ChatScreen runs 233 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 133 over it, 2.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/chat/ChatScreen.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a9e9d2600589c0e1220e9e7df4e44fb4ee77189f5afa1099fd6954c894d4fa"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AdventureGateScreenKt.AdventureGateShopDialog: MethodTooLong \u2014 AdventureGateShopDialog runs 232 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 132 over it, 2.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":1193}}}],"partialFingerprints":{"codehealthFindingId/v1":"a490cd1969e0ecc1fbac905e550e3d01303d32e94b212d906d2570964508755e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AdventureSettingsDialogKt.AdventureSettingsDialog: MethodTooLong \u2014 AdventureSettingsDialog runs 231 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 131 over it, 2.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureSettingsDialog.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"501f4aba1bf8ff6e1ee77872479e58cfa1fc15d2bc87652c5abc18477b8268ff"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InpaintMaskEditorKt.InpaintMaskEditorContent: MethodTooLong \u2014 InpaintMaskEditorContent runs 230 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 130 over it, 2.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/InpaintMaskEditor.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7cb966be1efb9e6dd6821558e608e073880f46ce9b79f4401b4ed655ddbf88f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ToolHttpServer.generateWebChatReply: MethodTooLong \u2014 generateWebChatReply runs 229 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 129 over it, 2.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":3075}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f32a4b952c715d892fce1d64bcd73bdfb31fd83814aab941774e03c3b2ef877"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transfer/HarnessTransferCodec.kt: FileTooLong \u2014 1124 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 624 over it, 2.25\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f0dfd437c77530dbc02382c5db61dea90c42e2a5c5367cd836b72599ee5bd0d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NativeChatToolRuntime: TooManyMethods \u2014 67 methods. The bar is 30 methods; this is 37 over it, 2.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"857e2f94156b599427f286c2e74434091b559346015bc9a4e018f03a9899d5ca"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ZimManagerScreenKt.InstalledZimsTab: MethodTooLong \u2014 InstalledZimsTab runs 223 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 123 over it, 2.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/kiwix/ZimManagerScreen.kt"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"062816a7c6b495370a613b13161ba169f15809a88b7dc55cd284db31882bba64"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: llama/LlamaChatListScreen.kt: FileTooLong \u2014 1111 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 611 over it, 2.22\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaChatListScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b6e1613bd9ba25199205a0e696551c9827e9cb21739c6cc5b200c8b3c716b1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backup/NativeChatNotesBackupManager.kt: FileTooLong \u2014 1105 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 605 over it, 2.21\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/backup/NativeChatNotesBackupManager.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26a22c37202f78fec812ae72c802a2cc280a60748da27b8044bc4b0a8821044"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelSourceAttachmentKt.ModelSourceAttachmentDialog: MethodTooLong \u2014 ModelSourceAttachmentDialog runs 221 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 121 over it, 2.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelSourceAttachment.kt"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"589d2d89955e162382f272ffb422e4db18916869ed974ff9a250567605b7dd5c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BinaryRepository: TooManyMethods \u2014 66 methods. The bar is 30 methods; this is 36 over it, 2.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dfc70094892545d5e7c91f9f6916d38400bca212fc5690f405f8fb09a3cc24b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: game/TamaAgentService.kt: FileTooLong \u2014 1099 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: TamaAgentService (63-1377). The bar is 500 significant lines; this is 599 over it, 2.20\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"138a59f85440982cad68469e54438b465a5e485fcfec4aa0ec9287e82ceec9e3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BinaryRepository: ClassTooLong \u2014 874 significant lines (blank, comment-only and punctuation-only lines excluded), 66 methods. The bar is 400 significant lines; this is 474 over it, 2.19\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"6223d56bbc2c5aded0f430a9486f3e3f75f8e5735c0536128992898aa0ebdd5c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatMessageListKt.ChatMessageList: MethodTooLong \u2014 ChatMessageList runs 218 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 118 over it, 2.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageList.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b855f96f0370119d33363164744851f8959d12ef2a5eca68bd4025dffcd0f0a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: repository/LiteRtModelRepository.kt: FileTooLong \u2014 1085 significant lines (blank, comment-only and punctuation-only lines excluded), about 77% of them inside a single declaration: LiteRtModelRepository (247-1297). The bar is 500 significant lines; this is 585 over it, 2.17\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/repository/LiteRtModelRepository.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb9fa86b53c831bc00ba529e0c1bf49bcf3fe9262be2472b6323329c5e329cd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/VideoRecognitionSummaryService.kt: FileTooLong \u2014 1085 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 585 over it, 2.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoRecognitionSummaryService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebb70065dd440d322879d3d2581c402963f25deda6bce9039d4246e9d9f76bb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/OnnxModelsScreen.kt: FileTooLong \u2014 1084 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 584 over it, 2.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f42b6b718b3e2d2b73f4c3e1b99be0ab7152084b871155541a5ea10425a8d74"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AdventureGateCatalog: TooManyMethods \u2014 65 methods. The bar is 30 methods; this is 35 over it, 2.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateCatalog.kt"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea62eac6a5282c6953ee8f2eb216c764f91704931fc73c2e0eeb3c2b313354af"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AdventureGateCombatEngine: TooManyMethods \u2014 65 methods. The bar is 30 methods; this is 35 over it, 2.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateCombatEngine.kt"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"e397f38598ea8857f7ec16cdd7aef31e828de4cf6703da238bcb09733f7e98a1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FarmLivestockScreenKt.FarmLivestockScreen: MethodTooLong \u2014 FarmLivestockScreen runs 215 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 115 over it, 2.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/FarmLivestockScreen.kt"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad3e4954aecce48e77e33fa03832f2b9934b5dfbe11b32275e40428c4546af7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TamaSettingsDialogKt.TamaSettingsDialog: MethodTooLong \u2014 TamaSettingsDialog runs 212 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 112 over it, 2.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaSettingsDialog.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"3461a51a2a76a90043c1bff7aa76fb6b1ffae39afe90f4231f150be5e88e37c1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: runtime/HarnessRuntimeController.kt: FileTooLong \u2014 1054 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: HarnessRuntimeController (93-1389). The bar is 500 significant lines; this is 554 over it, 2.11\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df095fcc6c6d399e79de193a40fcde17910c76351759ead8d41d20194c89e94"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AdventureGateRepository: ClassTooLong \u2014 840 significant lines (blank, comment-only and punctuation-only lines excluded), 55 methods. The bar is 400 significant lines; this is 440 over it, 2.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"738956f9c23ff3092ff5bd8b8b9dacec6fb68c3b2881e1d17ee815a6018e79de"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/DistributedService.kt: FileTooLong \u2014 1050 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: DistributedService (83-1640). The bar is 500 significant lines; this is 550 over it, 2.10\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DistributedService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bafe9ae4ba2762b8b93eaf8d681d3239883765ac87fc1ba642b7083eb1c3672"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TamaDailyDreamManager.buildDreamPlan: MethodTooLong \u2014 buildDreamPlan runs 209 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 109 over it, 2.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaDailyDreamManager.kt"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c89760d354b9ce8805a674ed23388a3ada708b4159bcf7fa005aab2b88dd0b7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LiteRtModelRepository: ClassTooLong \u2014 835 significant lines (blank, comment-only and punctuation-only lines excluded), 58 methods. The bar is 400 significant lines; this is 435 over it, 2.09\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":"app/src/main/java/com/example/llamadroid/data/repository/LiteRtModelRepository.kt"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"110eb540ee37df3a650f4b1e39fb9655c844d86dcd8537fb6a2c564bd36a67ce"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TamaNotificationReceiver.handleAlarm: MethodTooLong \u2014 handleAlarm runs 208 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 108 over it, 2.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":"app/src/main/java/com/example/llamadroid/tama/notifications/TamaNotificationReceiver.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"33fec6750632a7264ffc734e6ec4f40b5bf2ff3b60a66f72bf2bd71785bde91f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NativeHarnessController.dispatchInternal: MethodTooLong \u2014 dispatchInternal runs 208 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 108 over it, 2.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":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"d757dcbbb5a50e758ba5fce6cc9756c091f7922cfabcdd086b1085d6525635b6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NativeHarnessCustomProviderPanelKt.NativeHarnessCustomProviderPanel: MethodTooLong \u2014 NativeHarnessCustomProviderPanel runs 207 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 107 over it, 2.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessCustomProviderPanel.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"68074657ea0289d309e537b922c4b174469f79fc7f5d4948fc96d7d5e37e373f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VideoAdditionalOptionsEditorKt.VideoAdditionalOptionsEditor: MethodTooLong \u2014 VideoAdditionalOptionsEditor runs 207 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 107 over it, 2.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/VideoAdditionalOptionsEditor.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"5778f9ac268aadf4b3f25bcb026ac3c4fa5ca87ea8c0b17988933da9d6bb4618"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/AgentControls.kt: FileTooLong \u2014 1031 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 531 over it, 2.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ce9a149c035c9ecb82a66c9af92424a56a936399f179492f54c190d2449a04"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kiwix/ZimManagerScreen.kt: FileTooLong \u2014 1029 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 529 over it, 2.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/kiwix/ZimManagerScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e907b5593dd161ba19e8dd252af133c012d4b9c06ad438d7bd6b81f0cca09622"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ai/LiveTranslatorScreen.kt: FileTooLong \u2014 1025 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 525 over it, 2.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/LiveTranslatorScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6037ec36336e67196ad13ded3398c2cfdbbd8f38fb6897578e09b6b17f6f23bd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessRuntimeController.runStart: MethodTooLong \u2014 runStart runs 205 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 105 over it, 2.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"da29582d96e1396927dc9100414dab6e8c1c3f8aadcd0a141b4cea789d3b222c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TamaChatScreenKt.TamaChatBubble: MethodTooLong \u2014 TamaChatBubble runs 204 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 104 over it, 2.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cda1b62e2d546a39a1ed663775283327e28006399f9fb8b026656474e0a6da1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SdIpAdapterControlsKt.SdIpAdapterCard: MethodTooLong \u2014 SdIpAdapterCard runs 203 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 103 over it, 2.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SdIpAdapterControls.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b1de7cd9ff35e01dd408dd2fb1a988da5d0a7968923b0e2ebb322857c7ae54f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AudioWorkspaceScreenKt.AudioWorkspaceScreen: MethodTooLong \u2014 AudioWorkspaceScreen runs 202 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 102 over it, 2.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/AudioWorkspaceScreen.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3928a3273b41050332c6717016bf04de167a8e287396fc7e5e1699e279f1d6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessExtensionsPanelsKt.HarnessPluginsCard: MethodTooLong \u2014 HarnessPluginsCard runs 201 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 101 over it, 2.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessExtensionsPanels.kt"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"2384984dffeda6ac2f0280bcde94dcd94d278267d77b0fa72191da99484e7aa9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelPromotionDialogKt.PromoteArtifactDialog: MethodTooLong \u2014 PromoteArtifactDialog runs 201 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 101 over it, 2.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelPromotionDialog.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c2d26bc12bc15bb8d7e574e8ec85af8b450eb6736026d25feb740e85be744f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UnifiedNotificationManager: TooManyMethods \u2014 60 methods. The bar is 30 methods; this is 30 over it, 2.00\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcfd70a7380cdb9ce280b13fc858302814d7dd108d91488d40be1195a281fc27"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelShareScreenKt.ModelShareScreen: MethodTooLong \u2014 ModelShareScreen runs 200 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 100 over it, 2.00\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelShareScreen.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"f75766d7f63e78019418e97df98458f7d4b79812e3d9c4f3e5d678247521733b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WhisperVadModelsSectionKt.WhisperVadModelsSection: MethodTooLong \u2014 WhisperVadModelsSection runs 200 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 100 over it, 2.00\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/WhisperVadModelsSection.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47cccd46c984ad547b9184b28275ce3703f08d551630acdd4fc6a53b7583a00"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/VideoReusePayload.kt: FileTooLong \u2014 997 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 497 over it, 1.99\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoReusePayload.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d28d009b1f619bc41a4d98eac53f74dab9b45daac32c871edbf45c2636a7887"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: game/TamaDailyDreamManager.kt: FileTooLong \u2014 997 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: DailyDreamMoment (51-1279). The bar is 500 significant lines; this is 497 over it, 1.99\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaDailyDreamManager.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"374c4e7dbe4cbdfc4f380da7dab5dff5e929d3bf5cac56ff03da2f9a363d154a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ImageGenScreenKt.buildImageGenerationHelpSections: MethodTooLong \u2014 buildImageGenerationHelpSections runs 199 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 99 over it, 1.99\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":5061}}}],"partialFingerprints":{"codehealthFindingId/v1":"db03d92e47245d278c63e5fa143df5c27dcd8e441f127fea3deecbf274fa1ada"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AiServersHubScreenKt.AiServersHubScreen: MethodTooLong \u2014 AiServersHubScreen runs 198 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 98 over it, 1.98\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/AiServersHubScreen.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0396f0c6e9e05b86ce37722227bbbae935ccd857875be700ae481b29f32766"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AboutScreenKt.AboutScreen: MethodTooLong \u2014 AboutScreen runs 198 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 98 over it, 1.98\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/AboutScreen.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe9d9842227c716b73424517d0cb4b2cbcc99b8f7fbea5a6e5c7be550bd9baf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/DatasetProcessor.kt: FileTooLong \u2014 988 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: DatasetProcessor (25-1397). The bar is 500 significant lines; this is 488 over it, 1.98\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89b2f827e94b570a876d9b7e171c5ce9a03af652a957ad403cebcac4b113a1c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/LlamaServerChatService.kt: FileTooLong \u2014 987 significant lines (blank, comment-only and punctuation-only lines excluded), about 65% of them inside a single declaration: LlamaServerChatService (124-990). The bar is 500 significant lines; this is 487 over it, 1.97\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerChatService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b9ce7f54f4ee6c3a6a5414cfc817a7d4094b90e87e5270f564477362880f5f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SubtitleBurnService.burnSubtitles: MethodTooLong \u2014 burnSubtitles runs 197 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 97 over it, 1.97\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SubtitleBurnService.kt"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"9649f860d169d6060b3c1111dad1bc6f6c0266f3f06fa0689568973aa2e94dfe"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TamaScreenKt.TamaParkEncounterDialog: MethodTooLong \u2014 TamaParkEncounterDialog runs 197 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 97 over it, 1.97\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"515811e31e089919f8d4f28437c2176fd97fbbeed0375ef5f1b1306ee0eaa2b3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: QuadtrixWebUiScreenKt.QuadtrixWebUiScreen: MethodTooLong \u2014 QuadtrixWebUiScreen runs 197 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 97 over it, 1.97\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/QuadtrixWebUiScreen.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"890e03a3bcd51d2bac426ef294a60d6eefedcf0d4501ffbbd89c44521f62c74f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/AgentRuntimeProfileControls.kt: FileTooLong \u2014 983 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 483 over it, 1.97\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentRuntimeProfileControls.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"359fd45c91e0c5eff9df3efac008c8a48cbae7b95cc2ca7bd63b51ab9898f4e8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GeneralSettingsScreenKt.NativeBinaryCatalogSheet: MethodTooLong \u2014 NativeBinaryCatalogSheet runs 195 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 95 over it, 1.95\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6c26215452e0a5c7a1e7b6480ad73b77a3b312bb4d20eeaabdd3ada29dba31"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/LiteRtLmWorkerService.kt: FileTooLong \u2014 973 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 473 over it, 1.95\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtLmWorkerService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1f780ba4a902bbdead1bc789756e80d034c5bd0e840fad3807dbf2c5f9922c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LiteRtModelRepository: TooManyMethods \u2014 58 methods. The bar is 30 methods; this is 28 over it, 1.93\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":"app/src/main/java/com/example/llamadroid/data/repository/LiteRtModelRepository.kt"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"b515c2044c06377f2b7b324b262c70ffce338942810368084a3a31c20e3dfc6e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentRuntimeSupport: TooManyMethods \u2014 58 methods. The bar is 30 methods; this is 28 over it, 1.93\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":"app/src/main/java/com/example/llamadroid/service/AgentRuntimeSupport.kt"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"5794e44d1448c7124ad5d6259029b428d8d2036a07f0c0a46b6202308b1efb5d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VideoGenerationService: TooManyMethods \u2014 58 methods. The bar is 30 methods; this is 28 over it, 1.93\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":"app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"3226a7b75695c1a88701fad0bc8cd442ee1a8296e4b0e0dadc9a3c2f6723716c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sd/SdArtifactInspector.kt: FileTooLong \u2014 966 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: SdArtifactInspector (39-1270). The bar is 500 significant lines; this is 466 over it, 1.93\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdArtifactInspector.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df87e8379962ec62317164f254f44f2fde2c0cb373ae099902d1e5b120db2a68"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/TamaChatScreen.kt: FileTooLong \u2014 965 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 465 over it, 1.93\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a107b7288ffde2ab3d866f20ebe00f56d806a7939953aab7ed4f6344ba651e8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentWorkspaceScreenKt.AgentWorkspacePreviewTab: MethodTooLong \u2014 AgentWorkspacePreviewTab runs 193 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 93 over it, 1.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt"},"region":{"startLine":2505}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbd8023a3589312639ee9d8d5814fb23ec9aa2387f9a9f34d11e898afdb2bab"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessProjectActionDialogKt.HarnessProjectActionDialog: MethodTooLong \u2014 HarnessProjectActionDialog runs 193 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 93 over it, 1.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessProjectActionDialog.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"838502b6596fdb53576067eca48ca8a085e4c8736a83e69bf9a43c86fe24c1d5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VideoInterpolationService: ClassTooLong \u2014 770 significant lines (blank, comment-only and punctuation-only lines excluded), 37 methods. The bar is 400 significant lines; this is 370 over it, 1.93\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":"app/src/main/java/com/example/llamadroid/service/VideoInterpolationService.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cdaae6e16e4a39965f4879fb45955613ed982d78bae409066f284c8ae49e79a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentDialogsKt.SetupInfoDialog: MethodTooLong \u2014 SetupInfoDialog runs 192 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 92 over it, 1.92\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f55f2efe32af4f9dce1290346b8f7e3369e3ac14b078e8976265ba7b90cd32e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CuratedModelBundlePickerKt.CuratedModelBundlePicker: MethodTooLong \u2014 CuratedModelBundlePicker runs 192 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 92 over it, 1.92\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundlePicker.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d59c58cf0853fe8c67baf5ce8ec5a6c194ed1d82d3a453d033ce19b97e21a4d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LlmSavedCommandsCardKt.LlmSavedCommandsCard: MethodTooLong \u2014 LlmSavedCommandsCard runs 192 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 92 over it, 1.92\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/LlmSavedCommandsCard.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"234d2d3b76f53f70a80127cc285731e4d9a37e06b21fe2cb5816824479fd0659"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/VideoGenerationConfig.kt: FileTooLong \u2014 956 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 456 over it, 1.91\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoGenerationConfig.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f584574125a8797fda8a980e2611300590bae194d695ffd60860cf93395e9a4b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: binary/BinaryRepository.kt: FileTooLong \u2014 951 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: BinaryRepository (106-1490). The bar is 500 significant lines; this is 451 over it, 1.90\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b4a26cc587d299f81567c4473f7368d5f63ba238e3f122e94bb61147692967"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatSettingsSectionsKt.ImageToolsSection: MethodTooLong \u2014 ImageToolsSection runs 188 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 88 over it, 1.88\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsSections.kt"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"5199fcc0dfb83aaf03ea47560a7c00bc5eb9efe9cc2b23811297014110a05956"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: game/TamaTransferBundle.kt: FileTooLong \u2014 937 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 437 over it, 1.87\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaTransferBundle.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0eb6db692b9116d4506f41d62261a355dfed2315455c42e4ad4c303655e634f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SdCuratedBundlesSectionKt.SdCuratedBundlesSection: MethodTooLong \u2014 SdCuratedBundlesSection runs 187 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 87 over it, 1.87\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"282dc1e817b9416c17a87d30a8a0201c6675135fea23dd8c14d11c48154eea87"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AppDatabase: TooManyMethods \u2014 56 methods. The bar is 30 methods; this is 26 over it, 1.87\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AppDatabase.kt"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"017c66661cd41aa46237ec7a6dc6c0c38facfca8c10afc8b71027cae5c01a925"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LlamaRepository: TooManyMethods \u2014 56 methods. The bar is 30 methods; this is 26 over it, 1.87\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/repository/LlamaRepository.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2d93fa76e2328a77d205670c0b5d24fe57fa6934bde6e0c2136af645248972"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/VideoRuntimeOptionsEditor.kt: FileTooLong \u2014 932 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 432 over it, 1.86\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/VideoRuntimeOptionsEditor.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b04f8db1f24fbecb2704a9235c1f42e37fed7eb816f68463a25801581789f3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: QuadtrixTrainingService: ClassTooLong \u2014 745 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods. The bar is 400 significant lines; this is 345 over it, 1.86\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":"app/src/main/java/com/example/llamadroid/service/QuadtrixTrainingService.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d5a36d764fad27b9d1a96f6131bd8be5532681ac3eec731ec5ded6840922b8f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentDialogsKt.AgentLiteRtBackendCard: MethodTooLong \u2014 AgentLiteRtBackendCard runs 186 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 86 over it, 1.86\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":3877}}}],"partialFingerprints":{"codehealthFindingId/v1":"695542ef323c0ac863a94ea340d7ef79f3bb2221d020cd08a861cdab6be4bacc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AllMediaGalleryScreenKt.AllMediaGalleryScreen: MethodTooLong \u2014 AllMediaGalleryScreen runs 186 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 86 over it, 1.86\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/library/AllMediaGalleryScreen.kt"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47fc795a5da3e97ee7862308a90c55f70f3271babdce02d908a5601160e60b1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentWorkspaceScreenKt.AgentWorkspaceRunTab: MethodTooLong \u2014 AgentWorkspaceRunTab runs 185 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 85 over it, 1.85\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt"},"region":{"startLine":2245}}}],"partialFingerprints":{"codehealthFindingId/v1":"332bba3091b0729b89c9a0fd5550d28d469209a9c8de383baa3d50d4141b95aa"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AdventureGateRepository: TooManyMethods \u2014 55 methods. The bar is 30 methods; this is 25 over it, 1.83\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":"app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"b50ca92a7511c073c650e0b4f906acb56ddda56756dc8fa59e8fed078fe8b61f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HarnessLocalModels: ClassTooLong \u2014 731 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 331 over it, 1.83\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":"app/src/main/java/com/example/llamadroid/harness/HarnessLocalModels.kt"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"b986e25e0a9de8a248db17efdd73990f5c9fabaee9ff8554276f77612cc38150"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NativeChatDelegationScreenKt.DelegationHeader: MethodTooLong \u2014 DelegationHeader runs 182 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 82 over it, 1.82\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/delegation/NativeChatDelegationScreen.kt"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f30a9b3b9bc5c8549d71699e47c32571a8a02680f8e0dc1fa9afbf0f343426"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PrepareCachesSheetKt.PrepareCachesSheet: MethodTooLong \u2014 PrepareCachesSheet runs 182 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 82 over it, 1.82\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/PrepareCachesSheet.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b218881a9ccc7320c5a480e5a0114bf69b4da1a05b14ca507e0aad5f51815b6a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WorldFarmMaintenance.complete: MethodTooLong \u2014 complete runs 181 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 81 over it, 1.81\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/WorldFarmMaintenance.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25cedeb233d9854dbf608fcfcc9c7035e2e11c95028e9914da06124a438b996"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EasyModelsScreenKt.EasyModelsScreen: MethodTooLong \u2014 EasyModelsScreen runs 181 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 81 over it, 1.81\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/easy/EasyModelsScreen.kt"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0f1682c046d481f07fc9bbf3c95abce75adec4626ba0a8ce83f0e52b9fe510"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ZimManagerScreenKt.ZimShareTab: MethodTooLong \u2014 ZimShareTab runs 181 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 81 over it, 1.81\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/kiwix/ZimManagerScreen.kt"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"708c280158f228ec1b6bbcb745abaa63959cbaae31ba152394276381855bbd01"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ModelSourceRepository: TooManyMethods \u2014 54 methods. The bar is 30 methods; this is 24 over it, 1.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"71bae89d173efd58ae36668207028a49b79ea2e8dc3a05632b2d520a970d95c3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentControlsKt.AgentWorkspaceConsoleHeader: MethodTooLong \u2014 AgentWorkspaceConsoleHeader runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"321a482236f2e5f9111cb9f719ee18a9e675465026d912adc1e4e24c197685e5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiteRtModelsScreenKt.LiteRtCatalogTab: MethodTooLong \u2014 LiteRtCatalogTab runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67352f5125556c87eb5fa835b22cf08f08c7b80f58ea9f99b11e8102348f831"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DistributedLlamaLaunchResolver.resolve: MethodTooLong \u2014 resolve runs 179 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 79 over it, 1.79\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DistributedLlamaLaunchProfile.kt"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd2a073572c6d228c0967312ef8e58233a78e9318bc1b963ef47ff236981d61"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CustomToolsScreenKt.CustomToolEditorDialog: MethodTooLong \u2014 CustomToolEditorDialog runs 179 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 79 over it, 1.79\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/CustomToolsScreen.kt"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed112ba293a06bca7ab28f2109848b6e5aca8dbcc8804e828a726d90e171eaf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NewChatSheetKt.NewChatSheet: MethodTooLong \u2014 NewChatSheet runs 179 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 79 over it, 1.79\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chatlist/NewChatSheet.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"1513ca61bd8f96e0608728f91218978f2e749b50a60b177eb4173b14fdcac16c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentProotDialogsKt.AgentProotEnvironmentManagerDialog: MethodTooLong \u2014 AgentProotEnvironmentManagerDialog runs 178 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 78 over it, 1.78\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentProotDialogs.kt"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"8facf12f73f3670183dac38b7748f2a9d144c45f14870eccd3077a49b403abfc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: library/AudioLibraryScreen.kt: FileTooLong \u2014 884 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 384 over it, 1.77\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/library/AudioLibraryScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a1e7549ec7aca405dbedd08aec32b872e4df10c1493ce0482471a179ba75c27"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TamaAgentService.summarize: MethodTooLong \u2014 summarize runs 176 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 76 over it, 1.76\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb258c905b43f54300282788a9f2d588b0cc160f7b858ab211592ecfbd05df0e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SharedFileDestination: ClassTooLong \u2014 703 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 303 over it, 1.76\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":"app/src/main/java/com/example/llamadroid/ui/LlamaApp.kt"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab6193d25d116011b64f0a2933bfffbfe5e23d8079bf6e0e17811b60f671091"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/LlamaApp.kt: FileTooLong \u2014 878 significant lines (blank, comment-only and punctuation-only lines excluded), about 80% of them inside a single declaration: SharedFileDestination (183-1175). The bar is 500 significant lines; this is 378 over it, 1.76\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/LlamaApp.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c607fba53602152dc84830d8262ce728a1e05668517346d3f21f01758e971d0c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rpg/AdventureGateCatalog.kt: FileTooLong \u2014 875 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 375 over it, 1.75\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateCatalog.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"266ea6e32edcdfa9a3094cfff5d9c955e565b78ff023ddb274fc8f9abb92fa1c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rpg/AdventureGateRepository.kt: FileTooLong \u2014 871 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: AdventureGateRepository (30-1124). The bar is 500 significant lines; this is 371 over it, 1.74\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95c0edf24c4dbf7d55bb84f2090d4baf7f803fb888c2446c38e753bd5f9ea2e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ModelRepository: TooManyMethods \u2014 52 methods. The bar is 30 methods; this is 22 over it, 1.73\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"4222375e16f39e3ba7fd79f99a729da828de5d052015d2cbe4863223efdc9339"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HarnessTransferCodec: TooManyMethods \u2014 52 methods. The bar is 30 methods; this is 22 over it, 1.73\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"8213ac7ca3bb551f2f85b2b8c394d62a57afa055298d27d6f7dcc95628aba12b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WearCompanionBridgeManager: TooManyMethods \u2014 52 methods. The bar is 30 methods; this is 22 over it, 1.73\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/wear/WearCompanionBridgeManager.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f59136a842b4dd60df0ed1a6955213a54b51b62d80fee96b1cda4475f45b69"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: harness/HarnessLocalModels.kt: FileTooLong \u2014 866 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: HarnessLocalModels (133-1112). The bar is 500 significant lines; this is 366 over it, 1.73\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessLocalModels.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12025a67ff0f5a8057b4aa92b36d4f2ed3f6e4b1f7b87ac4eed4540cadaaa9f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessRuntimeInstallationsKt.RuntimeInstallationsPanel: MethodTooLong \u2014 RuntimeInstallationsPanel runs 173 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 73 over it, 1.73\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeInstallations.kt"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8175cc48a15890130633176307b7197629a9c1962e3df6e090433c508b840c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessScreenKt.HarnessProviderCard: MethodTooLong \u2014 HarnessProviderCard runs 173 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 73 over it, 1.73\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt"},"region":{"startLine":1419}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac4c59b1f1c6956981979eca9a71e5e7361b75d8bd6d3486d17971282189c7e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ai/TermuxFileManagerScreen.kt: FileTooLong \u2014 860 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 360 over it, 1.72\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/TermuxFileManagerScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8f02f5908f9e207a0e2e91e547a03bce412e1b224a4051f50797152876d76f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WorkflowsScreenKt.MediaTranslationBackendCard: MethodTooLong \u2014 MediaTranslationBackendCard runs 171 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 71 over it, 1.71\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":5337}}}],"partialFingerprints":{"codehealthFindingId/v1":"4546de34bb5eb26852818adc5f042d8cccbcdb1dd1bf0e188ec680567bea6f7d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatDelegationSettingsSectionKt.ChatDelegationSettingsSection: MethodTooLong \u2014 ChatDelegationSettingsSection runs 169 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 69 over it, 1.69\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatDelegationSettingsSection.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd29086a446ce999bac880ab254ae01a5932996c00e6a60340dc400a7182e27"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ai/VideoInterpolationScreen.kt: FileTooLong \u2014 844 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 344 over it, 1.69\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoInterpolationScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0597ed99aaea9227cb8d931c5cdc9f82044731a008b98695c153406732f8b26d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: wear/AdtWearProtocol.kt: FileTooLong \u2014 841 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 341 over it, 1.68\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear-protocol/src/main/java/com/example/llamadroid/wear/AdtWearProtocol.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7a08fba45674e5d7f44bd59736c85b957d4d49022b7e7497a94d6dcf19e057"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OnnxImageGenerationService.startGeneration: MethodTooLong \u2014 startGeneration runs 168 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 68 over it, 1.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/OnnxImageGenerationService.kt"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"acaef14813a0c959db6927296c00fe6de1b0a89e81c0949ddac924299749a095"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KiwixViewerScreenKt.KiwixViewerScreen: MethodTooLong \u2014 KiwixViewerScreen runs 168 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 68 over it, 1.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/kiwix/KiwixViewerScreen.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad49f3ea6d5f83ba8d2b12a94ab92cfd59cc58722b1fbf2216f6dca81885fbfe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transfer/HarnessTransferSessionCodec.kt: FileTooLong \u2014 837 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 337 over it, 1.67\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferSessionCodec.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b9ccd98a37edaa5f3e9fb1d34b2fc57c81aefc77fcc4e939c7808ba14e6182"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AudioGenerationService.runJob: MethodTooLong \u2014 runJob runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 67 over it, 1.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/AudioGenerationService.kt"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a4785b3c320b5e0a05d894ed54989dcc49be594e2fdc52963ff931d006c6469"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessRuntimeInstallationsKt.RuntimeInstallationCard: MethodTooLong \u2014 RuntimeInstallationCard runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 67 over it, 1.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeInstallations.kt"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"a950571aa5a38d9e202016c0d60424052f00110af438126c8dd001fbe05830d9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NativeChatKvCacheCoordinator: ClassTooLong \u2014 665 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 265 over it, 1.66\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":"app/src/main/java/com/example/llamadroid/service/NativeChatKvCacheCoordinator.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7d4ea2fc0fba2f89bcd72207f368ef48ea66fa55aecd2ffaf1db667bff0d4e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: wear/WearCompanionBridgeManager.kt: FileTooLong \u2014 828 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 328 over it, 1.66\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/wear/WearCompanionBridgeManager.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ed93bfec5bd08bf6a16bc3c97440d7e7d8046050523b08f483cb6ed31b83fb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: onnx/OnnxModelSupport.kt: FileTooLong \u2014 822 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 322 over it, 1.64\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/onnx/OnnxModelSupport.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc5d4d03a26137e93e8b10e01960a618b9f967594c97560e38fc60cd0a20fd1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FarmRepository: TooManyMethods \u2014 49 methods. The bar is 30 methods; this is 19 over it, 1.63\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/FarmRepository.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf112bc539fc91019747dcf664ee6611ac15d8034170faea643759ec34568e7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/QuadtrixTrainingService.kt: FileTooLong \u2014 816 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: QuadtrixTrainingService (78-1020). The bar is 500 significant lines; this is 316 over it, 1.63\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/QuadtrixTrainingService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f2ad315ac5029b012345cd38240620eed485720a5d198133e5737c4af13548"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MusicWorkspaceKt.MusicWorkspace: MethodTooLong \u2014 MusicWorkspace runs 163 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 63 over it, 1.63\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/music/MusicWorkspace.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b749dd3706108b42afdc1072699c9eff83c7867c9e2bfa80f3e0bda5fe021a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ai/LegacyUpscaleScreen.kt: FileTooLong \u2014 813 significant lines (blank, comment-only and punctuation-only lines excluded), about 78% of them inside a single declaration: val (109-984). The bar is 500 significant lines; this is 313 over it, 1.63\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed6622d16bcdb2ac1d842694ee1b1a6678c544d4e3beb462ff067449616b4a1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/AgentRemoteChatWorkerService.kt: FileTooLong \u2014 810 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 310 over it, 1.62\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentRemoteChatWorkerService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc86765c1755708bfe3c27612c4ad2decb2275a25184d4badf1aee4a777bbc0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: db/TamaMigrations.kt: FileTooLong \u2014 809 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 309 over it, 1.62\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/db/TamaMigrations.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ebd12965a8f495f7e634bb6576787d9b7d80040e413967b7df3e8662c32a8ca"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: harness/HarnessAgentRoute.kt: FileTooLong \u2014 808 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 308 over it, 1.62\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAgentRoute.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1fa473e7d3ef4f4ae256703dfd88bd1f5a70eccac892cf2ecb472674c0d2e31"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KnowledgeBaseScreenKt.KnowledgeEmbeddingPanel: MethodTooLong \u2014 KnowledgeEmbeddingPanel runs 161 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9879a9129fb669c97e4c72d627a0ba75124252caa1f11d6c6f1014c9ec7f0a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LibraryScreenKt.LibraryContent: MethodTooLong \u2014 LibraryContent runs 161 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/library/LibraryScreen.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"2789ceb7cafa123488c29e9990f854a5013b81541ef222dcab26826c653d539e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/RemoteSummaryClient.kt: FileTooLong \u2014 804 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 304 over it, 1.61\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c64e97d7164e69a10e823da1dbbc8f3cba0b5f3e4bac6c87de37387cc9f201"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/VideoInterpolationService.kt: FileTooLong \u2014 800 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: VideoInterpolationService (33-1021). The bar is 500 significant lines; this is 300 over it, 1.60\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoInterpolationService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b19844332db78a466d9041dc3974dee972b5ca266a6e9af7e150831e3438466"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ProcessController.getCommand: MethodTooLong \u2014 getCommand runs 160 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 60 over it, 1.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ProcessController.kt"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"d458b0e6a26aa87bf950ff4cab3d153817d47d84eff7bc7c39216d6d893c179b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LlamaServerChatService: ClassTooLong \u2014 638 significant lines (blank, comment-only and punctuation-only lines excluded), 11 methods. The bar is 400 significant lines; this is 238 over it, 1.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerChatService.kt"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ac2946be9797f243153af7401cab368d5d927fafb4af6395832196b93a506b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: library/ModelArtifactRecognizer.kt: FileTooLong \u2014 797 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 297 over it, 1.59\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactRecognizer.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"779edb0761723f43e24a7de6b247a8fda7b4a1bd4260b2937c58dc0da432f3e4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: settings/BenchmarkHistoryCharts.kt: FileTooLong \u2014 797 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 297 over it, 1.59\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkHistoryCharts.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c6b24a75b8fd6b152afd71116246f2cc89aa9c884ff22fe48add6191119daf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessTransferMetadata.apply: MethodTooLong \u2014 apply runs 159 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 59 over it, 1.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessTransferMetadata.kt"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"254bbdb1379bf5a13372e2ca09609f89b6aac7052548290ff6f946d7d632613e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentService.restorePersistentState: MethodTooLong \u2014 restorePersistentState runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7d16465fa872188ea02932b796c9bdc72172438c923b4af767c703bfb360a3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AdventureGateScreenKt.GearClosetDialog: MethodTooLong \u2014 GearClosetDialog runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":1840}}}],"partialFingerprints":{"codehealthFindingId/v1":"e709e254c84ee414e566c3921d8246d188e96bd88d3f31fa94185b82411a9586"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AdventureService: ClassTooLong \u2014 630 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 230 over it, 1.58\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":"app/src/main/java/com/example/llamadroid/tama/adventure/AdventureService.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2e0c9dbb4355f8b7307c576db87a2f109e55c4512fa3fc72f2ec42051f588a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentControlsKt.AgentContextWindowBanner: MethodTooLong \u2014 AgentContextWindowBanner runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f441d44516cbc3b1c8607e23dce1e048bc1434d8fb928560e29518e6de4bda"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OnnxImageGenScreenKt.OnnxFullscreenImageDialog: MethodTooLong \u2014 OnnxFullscreenImageDialog runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt"},"region":{"startLine":1817}}}],"partialFingerprints":{"codehealthFindingId/v1":"adcccf4d2ae9a97c680ecbfed8d078fdaeced1c17db6e38471f3b22c3bbe9878"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BenchmarkHistoryScreenKt.BenchmarkHistoryScreen: MethodTooLong \u2014 BenchmarkHistoryScreen runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkHistoryScreen.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c478f3e3e5442887291697233dd4bc134b38054ed082092a6af9179776c4857"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OllamaService: ClassTooLong \u2014 627 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 227 over it, 1.57\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/OllamaService.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"3626d8efef9466ba2472569843cff3288d282fb08ff4c284803d144672306880"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KnowledgeBaseRepository: TooManyMethods \u2014 47 methods. The bar is 30 methods; this is 17 over it, 1.57\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3dbe32d01364482f05bf33c71dce83e8bef9517c451a5c35270e95fa3adbf3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ProcessController: TooManyMethods \u2014 47 methods. The bar is 30 methods; this is 17 over it, 1.57\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ProcessController.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f8b5928bdfe602079979fdebf504eec1cbe1e702098769e23073f40d288960"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ServerProfileEditorScreenKt.ServerProfileEditorScreen: MethodTooLong \u2014 ServerProfileEditorScreen runs 156 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/ServerProfileEditorScreen.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"febff1067195203f30382364cb547f819fe7d3bf5ba9dd26be09bc928a780fda"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: harness/NativeHarnessTurnDetails.kt: FileTooLong \u2014 778 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 278 over it, 1.56\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessTurnDetails.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee625517eafb111dae202ef2f62d92015a2547b8e91770ab22eb3ebfc476de5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ai/AudioTranscriptionScreen.kt: FileTooLong \u2014 773 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: val (62-1038). The bar is 500 significant lines; this is 273 over it, 1.55\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec82ba91518400df235ea4ed71409863085fa154fca37939f5cfc132972ff99"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GlobalSearchScreenKt.GlobalSearchScreen: MethodTooLong \u2014 GlobalSearchScreen runs 154 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 54 over it, 1.54\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/search/GlobalSearchScreen.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd6c649a1d7a1a48ecd061823fffa57ffc21238a470c4277d0d222cd7b00109"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SystemMonitor: ClassTooLong \u2014 612 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 212 over it, 1.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/SystemMonitor.kt"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"19f43c7d1c7a81d61c97b2be4acdfe5a216e0476b09c07c370d9cf20b217e567"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PDFSettingsScreenKt.PDFSettingsContent: MethodTooLong \u2014 PDFSettingsContent runs 153 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 53 over it, 1.53\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/PDFSettingsScreen.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59fbc58ce82e4d85114ba5a0cad5968c9e8ab03169a3a4834e192ab8de37881"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NativeVideoRecognitionRuntime: ClassTooLong \u2014 610 significant lines (blank, comment-only and punctuation-only lines excluded), 37 methods. The bar is 400 significant lines; this is 210 over it, 1.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeVideoRecognitionRuntime.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0902330adc31effc6a0f65aacb70d51e4a4f36af9c0b2f5fd12fa60ddb38a05"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sd/SdModelSupport.kt: FileTooLong \u2014 761 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 261 over it, 1.52\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdModelSupport.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c210d34028c19ddbc99ee647d8a712e131a8ac3c93682fc6c58793d626222f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AudioWorkspaceRuntimeController: ClassTooLong \u2014 608 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods. The bar is 400 significant lines; this is 208 over it, 1.52\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/AudioWorkspaceRuntimeController.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8faac2056d4f0409f2dc23ad480ef233aea25f2acfd3eefa6a0506271ad005"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelRepository.downloadModel: MethodTooLong \u2014 downloadModel runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b533303bc38ffb4ef1769af1d82879b54488b4f9df0ee2d72d5659b5c93751a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessProjectActionDialogKt.HarnessProjectBatchRemovalDialog: MethodTooLong \u2014 HarnessProjectBatchRemovalDialog runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessProjectActionDialog.kt"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2ab95cedca66b84fb4d1c9356633afd27c90577a6d84329a7e803a5003b1da"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: harness/HarnessUiModel.kt: FileTooLong \u2014 759 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 259 over it, 1.52\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessUiModel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6277a25a2a1d3dd3a1f029677b41c17e2a6f599bdc3ab6d66389df5210606fbf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: distributed/WorkerModeScreen.kt: FileTooLong \u2014 758 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 258 over it, 1.52\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/WorkerModeScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce17db6c012fe47bd4ca532579f738014d06505edd6e99deb2ea763001989835"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: chat/ChatImageToolSettings.kt: FileTooLong \u2014 756 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 256 over it, 1.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ec9101fd3daed010fb911d39a04e59c50835ac1fb8fb289eeca1d6375ac048"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TamaScreenKt.StudySetupDialog: MethodTooLong \u2014 StudySetupDialog runs 151 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 51 over it, 1.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":3413}}}],"partialFingerprints":{"codehealthFindingId/v1":"90cf59d4ca6cbce7f33d05bbc731758a33b32e2ef6f17e4427822a919ca2cc6b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/NativeChatKvCacheCoordinator.kt: FileTooLong \u2014 751 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: NativeChatKvCacheCoordinator (76-1054). The bar is 500 significant lines; this is 251 over it, 1.50\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatKvCacheCoordinator.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff56074e829c120ba6d82ced3d997f05904d7b34a376f44a5a0bd20fbcc5d76d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TamaAgentService: TooManyMethods \u2014 45 methods. The bar is 30 methods; this is 15 over it, 1.50\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":"app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e61f66495f6b265c88a02a7bcc018e6c05e9bae7e3994fe7dcbea3ffdb977a6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: harness/HarnessRuntimeTransfer.kt: FileTooLong \u2014 745 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 245 over it, 1.49\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeTransfer.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6f73072e18541117a1631d3893412f18a7031155a95faf07e560804e80ab542"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ResponsiveComponentsKt.AdaptiveAppNavigation: MethodTooLong \u2014 AdaptiveAppNavigation runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/ResponsiveComponents.kt"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ef93cc8fd22565933c3c2cdadc2f5150c88257753d0b6e37311c0afe166a74"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ImageGenSettingsScreenKt.ImageGenSettingsContent: MethodTooLong \u2014 ImageGenSettingsContent runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae57db1bde467f47b82493af19855e9826f9f38b165aa94cfae2496e49335e7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MainActivityKt.OrganizerScreen: MethodTooLong \u2014 OrganizerScreen runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":2243}}}],"partialFingerprints":{"codehealthFindingId/v1":"288e48a68ea1d1b797ee4ba0363fbc31e1bff3c858aa3daa9072bd21a0e4c272"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ai/AiServersHubScreen.kt: FileTooLong \u2014 735 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 235 over it, 1.47\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/AiServersHubScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f597fe24eba188bcf19c175c928ca892c69435a2c053b84e5e581e2d403d8d4b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LogsScreenKt.GenerationDiagnosticsContent: MethodTooLong \u2014 GenerationDiagnosticsContent runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/logs/LogsScreen.kt"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"52a348d1f9138d47c57a3a545b01aea00c577c5a89307d21e6259a67c4dc855d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OnnxModelsScreenKt.CatalogOnnxModelsTab: MethodTooLong \u2014 CatalogOnnxModelsTab runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"46dd8e1df3b6d9115eecb2a0915a714aa7a801840ca47073287554f7c3529cb7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: harness/HarnessExtensionsPanels.kt: FileTooLong \u2014 734 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 234 over it, 1.47\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessExtensionsPanels.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26fb0e36f9ba88e13ce082e2211597acf90ae7b8241e4f9598bc38bc554f4439"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentProjectControlPlane.applyVerificationResult: MethodTooLong \u2014 applyVerificationResult runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"0471f191beb8c862f8986c3eea4ee2ddd6cff089a8af4bc063484e7c4d1c0eee"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessModelEditorKt.HarnessEditableModelRow: MethodTooLong \u2014 HarnessEditableModelRow runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessModelEditor.kt"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef898ca85b94d707315ecb46e847b58850ac9af529bb45760993db82322cbbd3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LlamaSchedulerScreenKt.LlamaSchedulerScreen: MethodTooLong \u2014 LlamaSchedulerScreen runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"d571156e431dc4ac0738c2a8738c52ec8ce6402edb5a9198874aad4a464b0b07"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatSettingsSectionsKt.ToolsSection: MethodTooLong \u2014 ToolsSection runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsSections.kt"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"1360d322d09b235d27eb9dbe0bccca23a47de90293dda766f43440798aec7fd0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: runtime/HarnessRuntimeProcess.kt: FileTooLong \u2014 726 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 226 over it, 1.45\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeProcess.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1562d2347a12aafb0a1f21e66b99f0f36663d7f7ab83c326b45220357fdd8cc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AdventureGateCombatEngine.applyEnemyAction: MethodTooLong \u2014 applyEnemyAction runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateCombatEngine.kt"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75e3e134d265a2d679e58bcdbc6f93f944c7d362fe1dc5f6b88f499a8df7814"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TamaScreenKt.ParkSellerCropRow: MethodTooLong \u2014 ParkSellerCropRow runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":1665}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22dc12e4554629573f62e58fbac18f882bf4b0b53fcc2d91fe4ada49d284d91"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentChatListKt.ToolCallGroupRow: MethodTooLong \u2014 ToolCallGroupRow runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentChatList.kt"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24e7706765a97c8bff21d32b938fb9a1885e6df2c79b7d308ba53c6bcc5daee"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VideoGenScreenKt.VideoDetailDialog: MethodTooLong \u2014 VideoDetailDialog runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt"},"region":{"startLine":2147}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ee3af305ae25b9c784603bfe66ad187911b3342a00a23175f85c17a7713e74"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: harness/NativeHarnessStructuredTranscript.kt: FileTooLong \u2014 722 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 222 over it, 1.44\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessStructuredTranscript.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b2eef0346b9325c6d637542a971078031baeb65484c5ea78e18b49dd8b64287"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ai/VideoSumupScreen.kt: FileTooLong \u2014 721 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 221 over it, 1.44\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoSumupScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ba2faa8c34ddbb3d2875fc9120a2206b770aec6bc551070dcbbeeafbe444b5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SdArtifactInspector.classifyEvidence: MethodTooLong \u2014 classifyEvidence runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdArtifactInspector.kt"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a786816fa84b12f32e19e663d8d1ccdc7a6f45a092a87a8f463cfac152533ba"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AIHubScreenKt.ToolsTab: MethodTooLong \u2014 ToolsTab runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/AIHubScreen.kt"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb1adf74f7f43afcdb29a81404342b237daddd9182ada97aab671fc9b0252c2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AudioLibraryRepository: ClassTooLong \u2014 575 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 400 significant lines; this is 175 over it, 1.44\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/library/AudioLibraryRepository.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb7032baf92f5e53fb1cbc2ff3bcefc6a5e9c1b982854439d15f30d3900f5e4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/TamaChatServerSettings.kt: FileTooLong \u2014 718 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 218 over it, 1.44\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatServerSettings.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c050c64b4777d13f3a8d73a3c08ecf9dd011d0fa107e125566ed68c9cf727688"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentForegroundService: ClassTooLong \u2014 573 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 173 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentForegroundService.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c2439528bc6c3f45e76a0d6bf38a35c5b7d677b2b5a3d962a96dfda7101d38"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EasyChatTabKt.EasyChatTab: MethodTooLong \u2014 EasyChatTab runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/easy/EasyChatTab.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"7efc1d833a80b3e6b1e60d24ea3b9b2aa0f910a94ff62478df306198c8e044c8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NotesManagerScreenKt.NoteCard: MethodTooLong \u2014 NoteCard runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt"},"region":{"startLine":1363}}}],"partialFingerprints":{"codehealthFindingId/v1":"f528bd36a000d9e2e61bd2afa490a1cff99890eb2942258fd6d7609f20bd6056"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SSHService: ClassTooLong \u2014 571 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 171 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SSHService.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b04682471d10afc763190d7cc7cfda59ff9e03ba13f09052b27eca7d5a5d8c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RemoteMasterServer: ClassTooLong \u2014 568 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 168 over it, 1.42\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":"app/src/main/java/com/example/llamadroid/service/RemoteMasterServer.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"537d64456e772610037ba0744f9c62d5b5777f734afdb42f0ef04ed518959973"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FarmRepository: ClassTooLong \u2014 565 significant lines (blank, comment-only and punctuation-only lines excluded), 49 methods. The bar is 400 significant lines; this is 165 over it, 1.41\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":"app/src/main/java/com/example/llamadroid/tama/game/FarmRepository.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c334a1a510219475b6deba66cf6298095b80de8d9824593361c4eaeec052cfce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: harness/HarnessTransferMetadata.kt: FileTooLong \u2014 706 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 206 over it, 1.41\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessTransferMetadata.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed129562b353cc4c39a8f6528fb821e069a8e537a241abda8d5d7c5dd4105ea2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: model/TermuxTools.kt: FileTooLong \u2014 705 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 205 over it, 1.41\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/TermuxTools.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf9ad57e4235e797f808cdbcc25bd0799e67d60e0fd6fb15587a400e8017380f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentProjectControlPlane.applyDirectToolReceipt: MethodTooLong \u2014 applyDirectToolReceipt runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab04473ae1d80af834ddaed6c40355ba8e765dbef1067366f9145c89fc62afd3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Companion.completePendingDelegation: MethodTooLong \u2014 completePendingDelegation runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":5373}}}],"partialFingerprints":{"codehealthFindingId/v1":"d193595137c5f05e5d1c4b3f374171e02bef02d6a49f23ef8f9173bbb94cf244"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentWorkspaceScreenKt.AgentInvocationDetailContent: MethodTooLong \u2014 AgentInvocationDetailContent runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt"},"region":{"startLine":2809}}}],"partialFingerprints":{"codehealthFindingId/v1":"488e27587d4f89a51bc70ac065e2fed5391fc45ad9a80f0d05ed4ca703726c66"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KnowledgeBaseScreenKt.KnowledgeEmbeddingServerCard: MethodTooLong \u2014 KnowledgeEmbeddingServerCard runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"a984a089d2f3db53db1700a8ac28fdd6b1611c99f9c61533f59ccc54c0874862"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FullHfRepositoryBrowserKt.FullHfRepositoryBrowser: MethodTooLong \u2014 FullHfRepositoryBrowser runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/FullHfRepositoryBrowser.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab34fc9e5bd86bb576b633ab65c2414fdf8bebd78410788cb74ecb63e36b2e96"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: harness/HarnessComposer.kt: FileTooLong \u2014 702 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 202 over it, 1.40\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessComposer.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a75801066a133d12ed7767183a4b0d0a69ce5d065b3d5fb6df47dd4d35c320e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AudioLibraryRepository: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/library/AudioLibraryRepository.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"310202167714d4c7a53c34522c529b86ad4019408ebf951d17e8b8a7982a6aca"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HarnessRootfsFileStore: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessRootfsFileStore.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"1086a90c40f32b0eb5b5857c12c3df4c97a83536c274efe5454a86eeea72a251"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessLocalModels.streamLiteRt: MethodTooLong \u2014 streamLiteRt runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessLocalModels.kt"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02cb14dc36058111fb16e9afae9f5c7a5a9179fc1d932b68e327f4ae8553bdf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessTransferCodec.stage: MethodTooLong \u2014 stage runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"22981a851137921411f70fe3e6b025a3d1c03d431b73e1e5bd671ffb4b6a995a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: onnx/OnnxTtsSupport.kt: FileTooLong \u2014 696 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 196 over it, 1.39\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/onnx/OnnxTtsSupport.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa6bbab4c56cbcb1b80edcdd3abfe889e220db9bba0c7c681cafeecb2694096d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: harness/HarnessWorkspaceNavigation.kt: FileTooLong \u2014 695 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 195 over it, 1.39\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessWorkspaceNavigation.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96518cd4be691deb019f9ab320b88bbfd6359b88bd56d72648e9e94f524212f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OnnxImageGenScreenKt.buildOnnxImageGenerationHelpSections: MethodTooLong \u2014 buildOnnxImageGenerationHelpSections runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt"},"region":{"startLine":2054}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f6ed82a6a7ac8a48aa4f532ccc45e48de6c35927ba306d1608505115110f350"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: chat/ChatSettingsSections.kt: FileTooLong \u2014 692 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 192 over it, 1.38\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsSections.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a555494691cf91bc47fd9d9fd04a2ae159163fdc205a9856b9cbad8fd12d8f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NativeChatToolConfig: ClassTooLong \u2014 552 significant lines (blank, comment-only and punctuation-only lines excluded), 7 methods. The bar is 400 significant lines; this is 152 over it, 1.38\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"5abeee0659abf4364c385fc7e1a01ef8a0eebefcb5c346baa76528a061ba6d33"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Companion.updatePromptContextSnapshot: MethodTooLong \u2014 updatePromptContextSnapshot runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":16299}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3c3524ae864bdca6ca3d215bcaf99227e9cf237c6fdf2201ac523a3aa13486"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessRuntimeTransferKt.ImportTransferBody: MethodTooLong \u2014 ImportTransferBody runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeTransfer.kt"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"706e731e9f851dc4c92c541d6e64afc213e6fbbf86961a3d17faba0541006bad"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatImageToolSettingsKt.LlamaNativeBackgroundRemovalToolSettings: MethodTooLong \u2014 LlamaNativeBackgroundRemovalToolSettings runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"41aa0892f0984a0f6eb8da819771b04a5e0aaf810d1b42593f2a501b79beb2c5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HarnessRuntimeController: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1007df886d3651ccbba040907b8cfdced428ec7fe3c8fe93c1cf4e5b6e25877"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DelegateHarnessDriver: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegateHarnessDriver.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b87633f7c8aecb752731abe1ca2ce75e393c6fd627fa46fed64f87065a8b872"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LiveTranslatorService: ClassTooLong \u2014 546 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 146 over it, 1.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c8ac8efbc2fe010d68408933e7d79d9396c242ffc6c75a83ad96329290cdb2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HarnessBridgeOperations: ClassTooLong \u2014 546 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 146 over it, 1.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessBridgeOperations.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8d494b1a73cf41c138790dad36194467360fa87bd303768f412c2fd43c407d6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: client/OkHttpHarnessClient.kt: FileTooLong \u2014 682 significant lines (blank, comment-only and punctuation-only lines excluded), about 63% of them inside a single declaration: OkHttpHarnessClient (53-613). The bar is 500 significant lines; this is 182 over it, 1.36\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/client/OkHttpHarnessClient.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f945da4dc97c025efbaaab4ae0fb8731c9837a91f15af276699b7473e0604530"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/MangaPaintedOcrSupport.kt: FileTooLong \u2014 682 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 182 over it, 1.36\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MangaPaintedOcrSupport.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dffe64d16d2382299f970c48400ef3bab325592840b56dfef7ddc34b32c64a63"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OnnxImg2ImgPipeline: ClassTooLong \u2014 545 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 145 over it, 1.36\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ba6bb8b60ab521831db4427cd7d8f8fd294f1deeb8050109152a8cb5476524"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ZimManagerScreenKt.CatalogTab: MethodTooLong \u2014 CatalogTab runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/kiwix/ZimManagerScreen.kt"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd6c314e8eab1659ebbf2cf065e7974710d85d7ba799785700e0587c3a87d61"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KnowledgeEmbeddingService: ClassTooLong \u2014 538 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 138 over it, 1.35\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt"},"region":{"startLine":1603}}}],"partialFingerprints":{"codehealthFindingId/v1":"555ba506f1d31f6cbcd61b513fb8ea3fd8c16b6997c31c27b0fe468553dfd7d6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Companion.migrateJson: MethodTooLong \u2014 migrateJson runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerLaunchProfile.kt"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"c346562d8a765bafcca6d80616020834ba0313d7142144f684567a3a52b9ee55"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StoreScreenKt.StoreItemRow: MethodTooLong \u2014 StoreItemRow runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/StoreScreen.kt"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"55963be6e76b477a03032565296976ba14468f0edf7beadc7764c3e0269ea2c0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TamaScreenKt.AlchemistPotionKitchenTab: MethodTooLong \u2014 AlchemistPotionKitchenTab runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":3074}}}],"partialFingerprints":{"codehealthFindingId/v1":"c220f92694f78f4c9ce0683e4eefe7cc3400bcf106b59d286e85ec67305c91cb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TamaScreenKt.PetStatusDialog: MethodTooLong \u2014 PetStatusDialog runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":6146}}}],"partialFingerprints":{"codehealthFindingId/v1":"56665da562b3ef0ef849e5a886a135b98b5cc0cb837090c285638f8307a35fb3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentDialogsKt.AgentDirectRuntimeCard: MethodTooLong \u2014 AgentDirectRuntimeCard runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":2471}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd9ce4ded352cc175886b91c706cf359189a784b05d5be4c2dbfc0fb2bf4ac1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CuratedModelBundleSectionKt.CuratedModelBundleCard: MethodTooLong \u2014 CuratedModelBundleCard runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24ecc64b2b16f67e919e4c687d173e3000d70d1f4a4fe8b07dd56af66d69551"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: QuadtrixTrainingService: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/QuadtrixTrainingService.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a9f7e793fe02221c1fdaf0e1c5b65e3f09bab0d5381c25a310f6c9a3814fdc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WearLocalCache: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b96e69656ab7c9f55a99311885038a2ba5b8a76699d9343f22c31c631475ee"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/RemoteMasterServer.kt: FileTooLong \u2014 664 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: RemoteMasterServer (30-954). The bar is 500 significant lines; this is 164 over it, 1.33\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteMasterServer.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e724730f55c91f0e02b58f2578f61c59bc7f912581164e29eee1d12af66443c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: llama/MarkdownText.kt: FileTooLong \u2014 664 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 164 over it, 1.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/MarkdownText.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e037e12a8a42e7d2559feab59c5a0458a6cef5578f7a852307275f91c4093815"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: adventure/AdventureService.kt: FileTooLong \u2014 663 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: AdventureService (36-874). The bar is 500 significant lines; this is 163 over it, 1.33\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/adventure/AdventureService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a03196586e79e0809b492921ba1d5554c29c2eb211d24c8cfa5863b14d4fe18"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: audio/AudioWorkspaceRuntimeController.kt: FileTooLong \u2014 660 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: AudioWorkspaceRuntimeController (48-854). The bar is 500 significant lines; this is 160 over it, 1.32\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/AudioWorkspaceRuntimeController.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34286a5f877542b9b3265a64cc6db99e96f9c83a26e42a51c38a6185a02f2311"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DownloadService.finalizePendingDownload: MethodTooLong \u2014 finalizePendingDownload runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DownloadService.kt"},"region":{"startLine":1791}}}],"partialFingerprints":{"codehealthFindingId/v1":"f035c415f2652496fa80b268090146771d8263760c50e850088bfddcfb045c07"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: settings/BenchmarkHistoryScreen.kt: FileTooLong \u2014 658 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 158 over it, 1.32\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkHistoryScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8081e3e9fcdb823fff08d09c7dff8a286df86af4accf97931be7c7edffefad9d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/AgentDirectRuntimeSupport.kt: FileTooLong \u2014 657 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 157 over it, 1.31\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentDirectRuntimeSupport.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0090a7c4b030f7ca63c37fbc73754adcddaf49ce0c3b4006104e23cb131aaff"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/OllamaService.kt: FileTooLong \u2014 656 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: OllamaService (35-929). The bar is 500 significant lines; this is 156 over it, 1.31\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/OllamaService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c872341643a600493a59823e3d459e7f4a1f59ebec8ffb31f1d98c0c8c405bc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentProjectControlPlane.permittedNextActions: MethodTooLong \u2014 permittedNextActions runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":3209}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4800ea76ba766ee421fa40c33640452cac1e384573e14a8188bbf8c19b3a2d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FarmLivestockScreenKt.LivestockSlotCard: MethodTooLong \u2014 LivestockSlotCard runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/FarmLivestockScreen.kt"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f4f380cd47f5b68c41fb0dcf70fd1fff70da172cb43c7faa1fbda652ec50c83"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentWorkflowPanelsKt.QuestionSpecPanel: MethodTooLong \u2014 QuestionSpecPanel runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkflowPanels.kt"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"7661db206d2b225a9cbb6649ec72de51ee2de047bc4e087e4ce7883e582e9759"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatSettingsState.loadFromParams: MethodTooLong \u2014 loadFromParams runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsState.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e9a493dbc7d0e92ae2ab6c610e2be59c786a4bcdfa6a5b4ded21659b26f624"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DownloadService: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DownloadService.kt"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"467217aacf2b75bdf403be11c2dc0fdadd59ca11bd8e9c0977bd14b32a0ca501"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AudioWorkspaceRuntimeController: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/AudioWorkspaceRuntimeController.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"189e54dfc966cc839c8adb8b3a87f57d82d563b0d09b3cd156e4ddeabd6b78c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/CuratedModelBundleSection.kt: FileTooLong \u2014 650 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 150 over it, 1.30\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"999f3e9e298abc3cb1efdadd48878ea735f5ff4168197adea3c34bba5e7a70a3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BinaryRepository.findTieredBinary: MethodTooLong \u2014 findTieredBinary runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd6931b98e7864a9774dafd90f3b245cb2646af03ab234a420fbdaaf655283cd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NativeHarnessPluginActions.install: MethodTooLong \u2014 install runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessPluginActions.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"df8d3912f9e97c72095ee57c48363b5ee32e5835d3e8398d4c255ef5e45082c5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NotesManagerScreenKt.OrganizerEventEditDialog: MethodTooLong \u2014 OrganizerEventEditDialog runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt"},"region":{"startLine":1605}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de27cd57747e4f84de379554a419c11cdccc5985ae879aa14523dcf2f101ef1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GenerationOptionGuidesKt.GenerationCachingCard: MethodTooLong \u2014 GenerationCachingCard runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/GenerationOptionGuides.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8202f84f6a1db6da9adec3a8f40f958e0a80c2f24490a70b221443699790c83"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiteRtModelsScreenKt.LiteRtCatalogCard: MethodTooLong \u2014 LiteRtCatalogCard runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt"},"region":{"startLine":1565}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d4a815e485b238ea2194bcce3ac73b6b11a391701093c3f3d181c50ccb5275"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: db/TamaDao.kt: FileTooLong \u2014 644 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 144 over it, 1.29\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/db/TamaDao.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa55cff31cd7d80972f0a24c1381275550c3beb51b8aaa9118f37f5f8099505"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: harness/HarnessRuntimeInstallations.kt: FileTooLong \u2014 642 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 142 over it, 1.28\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeInstallations.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6e7edbab30ef83571b058b3dbce3bb851b600cfb0d74c0135afb72359ed5ce"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ShimejiOverlayService: ClassTooLong \u2014 512 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 112 over it, 1.28\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/shimeji/ShimejiOverlayService.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf56030fc51d04ee9847ed90f6762dfd3262ad51245a38aa10e59b72ac16127"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/WhisperModelsScreen.kt: FileTooLong \u2014 639 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 139 over it, 1.28\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"638e9d5c3849adf26689c811749e1f7fc428bc702039cc0ed3ffb3002a2db2f2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: harness/HarnessOriginalWebView.kt: FileTooLong \u2014 638 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 138 over it, 1.28\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessOriginalWebView.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"593bf3383b590ce17a1a716bd430f173d876400d138a33db2956e0e570899db5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/NativeVideoRecognitionRuntime.kt: FileTooLong \u2014 638 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: NativeVideoRecognitionRuntime (36-806). The bar is 500 significant lines; this is 138 over it, 1.28\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeVideoRecognitionRuntime.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d210153ce0f3df6c5869ad8fd3a00afae498ab3986fe83ea4e70d436c58a1a0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatSettingsState: ClassTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 109 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsState.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6340ceaf05fc7fc8badf7c79192f6214c332b7fdd8e7289133d768664833f7e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SdCuratedBundlesSectionKt.SdCuratedBundleCard: MethodTooLong \u2014 SdCuratedBundleCard runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca4dd68d6d380cf917ca958392ce87e449ecb83039b73d1540120f9ea6330d8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SdDistributedScreensKt.SdDistributedWorkerScreen: MethodTooLong \u2014 SdDistributedWorkerScreen runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c31f7631831fb33ba812e8619f6d9376ab247664590511ef704e2a46222884"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ModelArtifactRecognizer: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactRecognizer.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a74bb8078753b35f5d63ae7a047988ee89a7ca0bb55f02c6f0fc69990556a2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HarnessTransferSessionCodec: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferSessionCodec.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"86003884896c3bd2ab4b45fe8980876127c6064f5b637db197a0c62c4272e282"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TamaNotificationScheduler: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/notifications/TamaNotificationScheduler.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb0e5d35ff4aeba9d3612719be871f50da70282df21ae8158fdfd31d8066c18"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SystemMonitor: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/SystemMonitor.kt"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace63d1c5fdd38bd3b8520fb175ac07bd3680d9ee41aacb1e3803ee391042f0e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: util/SystemMonitor.kt: FileTooLong \u2014 632 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: SystemMonitor (32-795). The bar is 500 significant lines; this is 132 over it, 1.26\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/SystemMonitor.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6313c0e620966f69c6cbd56504318a5306e0a401026207c749b2603a1f2814cc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/GenerationDiagnosticsStore.kt: FileTooLong \u2014 631 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 131 over it, 1.26\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/GenerationDiagnosticsStore.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b52b2d7d60521ae5eac2b6c598d775b28996a799044de2b3f71bca6a2d971fab"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: onnx/OnnxImg2ImgPipeline.kt: FileTooLong \u2014 629 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: OnnxImg2ImgPipeline (57-764). The bar is 500 significant lines; this is 129 over it, 1.26\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e5bf9c88a48009a3b4bf8273a8072577a3b26d8093e912e15b2ed431e01b47"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DatasetForegroundService: ClassTooLong \u2014 502 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 102 over it, 1.26\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DatasetForegroundService.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a3aeb5b9c043f3c071cb6035c00af6edbab4d0e2d26ee7e0a8836eb834e603"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/LiveTranslatorService.kt: FileTooLong \u2014 626 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: LiveTranslatorService (91-793). The bar is 500 significant lines; this is 126 over it, 1.25\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea62577896e4ca9cef3d11f1d93ed95a8a1b712947f41c1202b8f5d2dce0591"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KnowledgeBaseIndexingService.onStartCommand: MethodTooLong \u2014 onStartCommand runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/KnowledgeBaseIndexingService.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f87c3bdfa77cfedca3fce52dfbc3f999c02998d1f8ce18ce436fcffed232784"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TamaDeepDreamService.runDeepDream: MethodTooLong \u2014 runDeepDream runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/TamaDeepDreamService.kt"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2cd8bc961261ea66157a2855ecb4a4935fec8972fd9df91dae073c49ef756f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/AgentForegroundService.kt: FileTooLong \u2014 623 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: AgentForegroundService (29-874). The bar is 500 significant lines; this is 123 over it, 1.25\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentForegroundService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c58e693b4139037b9779fee3479f96f8d03aab69936c036eb55ae649aa8a303"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VideoReusePayload: ClassTooLong \u2014 498 significant lines (blank, comment-only and punctuation-only lines excluded), 5 methods. The bar is 400 significant lines; this is 98 over it, 1.25\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoReusePayload.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"03cf0dae7f7188a4da155d72912a6aade7ab839c76783a4190feafa28b49a405"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: chat/NativeChatVideoSupport.kt: FileTooLong \u2014 621 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 121 over it, 1.24\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/chat/NativeChatVideoSupport.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20df69be397bb27bbd6e34d40234d792c2d492ad9bf36f44226b4d4e973859f9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NativeVideoRecognitionRuntime: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeVideoRecognitionRuntime.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5039fe793326c383076cbe8a50c342108830c17bc9c30b9c178fa05f78002d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VideoInterpolationService: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoInterpolationService.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"5235b72214e7cf4d6e636c9fc8adf82a6c2e4335580bd2976cd3a1a65dc9ff52"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: library/AudioLibraryRepository.kt: FileTooLong \u2014 616 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: AudioLibraryRepository (53-848). The bar is 500 significant lines; this is 116 over it, 1.23\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/library/AudioLibraryRepository.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e6ad0d6a476ffb6833877ca255fce4a7fee89db8e34b400e34d72c7ef18425"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: harness/HarnessBridgeOperations.kt: FileTooLong \u2014 616 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: HarnessBridgeOperations (83-786). The bar is 500 significant lines; this is 116 over it, 1.23\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessBridgeOperations.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c42bf9cd7fc6aaa0befd7689c459b6d3193328a38c3ff7c8774b7e3ce828fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/ArcadeMemoryGame.kt: FileTooLong \u2014 616 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 116 over it, 1.23\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/ArcadeMemoryGame.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf346e9a51c6b27661ec636c6a4bb27e90c87a2e685a8b02603262e619411e3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentService.summarizeAgentReferenceContent: MethodTooLong \u2014 summarizeAgentReferenceContent runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":20373}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee376c7e6ebc8348de317d56f2095f2986732317dabd5d90d33bdc4930b57fc1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NativeHarnessStructuredTranscriptKt.parseNativeHarnessStructuredTranscript: MethodTooLong \u2014 parseNativeHarnessStructuredTranscript runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessStructuredTranscript.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e0d37f250384fb84f588e2e1ebdb1281a397f53c19ac0a07a38563bb3c1fe9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GenerationBatteryOptimizationKt.BatteryOptimizationDialogContent: MethodTooLong \u2014 BatteryOptimizationDialogContent runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/GenerationBatteryOptimization.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b7ca8dd8f41c2b66a419b07520bdeb81e87f67b2d072efca2720fdb32c45ea"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WalkthroughUiKt.WalkthroughCoach: MethodTooLong \u2014 WalkthroughCoach runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/walkthrough/WalkthroughUi.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"1824b2d848e6b053f309c11ecc9095ccea37b11d6ee440eccff6065edf9731c0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: wear/AdtTileServices.kt: FileTooLong \u2014 613 significant lines (blank, comment-only and punctuation-only lines excluded), about 60% of them inside a single declaration: AdtBaseTileService (50-506). The bar is 500 significant lines; this is 113 over it, 1.23\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0562652ee5a5dee124a023bd5f67af28d7d7a621ec0f4bf0db8c36fef27b5ef4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LlamaOcrRuntimeCoordinator: ClassTooLong \u2014 489 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 89 over it, 1.22\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":"app/src/main/java/com/example/llamadroid/service/LlamaOcrRuntimeCoordinator.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd7245b21a4271030467e42ae12b10d5422d6ee09cf5d50dac6ef6ac60459bd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AdventureGateScreenKt.SkillActionDock: MethodTooLong \u2014 SkillActionDock runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":3115}}}],"partialFingerprints":{"codehealthFindingId/v1":"c84b59ddef8c710fa8e36615ae64189d9ca63e3743765ed76e48577afd0e5412"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GenerationQueueScreenKt.GenerationQueueScreen: MethodTooLong \u2014 GenerationQueueScreen runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/GenerationQueueScreen.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b185825f8abf0d2e2df3138931e3edf04ae6dfb8165629e2d101a3727c5cb3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SdGeneratedImageMetadata: ClassTooLong \u2014 487 significant lines (blank, comment-only and punctuation-only lines excluded), 4 methods. The bar is 400 significant lines; this is 87 over it, 1.22\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":"app/src/main/java/com/example/llamadroid/service/SdGeneratedImageMetadata.kt"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"6980bd8acdca48da9836e5a80c4039e9383ae7904a1eaa073b3937014a2e0012"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: chat/ChatMessageMedia.kt: FileTooLong \u2014 607 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 107 over it, 1.21\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageMedia.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae266c9a3ca7fd6f037994fffa0cda0b6a759e19882e247f72c71916e6adac3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Companion.packMessagesForContextOnce: MethodTooLong \u2014 packMessagesForContextOnce runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":15615}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3dddb7ac802dcfc7cfb0f096be9ccf0e30f3f29baa3893e6fc2b10189b51c6d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: media/MediaGalleryIndex.kt: FileTooLong \u2014 603 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 103 over it, 1.21\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/media/MediaGalleryIndex.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7c28a4f5ce88b6bafbdbeda379ee13f9a856ace63343ca7e7ef9f396f5f2e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/SSHService.kt: FileTooLong \u2014 603 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: SSHService (47-908). The bar is 500 significant lines; this is 103 over it, 1.21\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SSHService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a0561ea3867276b17bc506d5ce784ee3de6b69f6b2ebfe6a63dc3f20b3010c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: game/FarmRepository.kt: FileTooLong \u2014 603 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: FarmRepository (51-819). The bar is 500 significant lines; this is 103 over it, 1.21\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/FarmRepository.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d7b82c116d5a66724eae0bbd8238c4fdc06a805ab7e919da857c15a59bed06"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HarnessRootfsFileStore: ClassTooLong \u2014 480 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 400 significant lines; this is 80 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessRootfsFileStore.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3f5b94c3c8e80c2291e55431f44bbaf7ae4da60ec5f63d80d1b06d5303c4f3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RemoteSummarySettingsGroup: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ceb9c7e791389ad047ea193ce12d2319eff97761cfe9922c6f2a479d5b45b26"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RestoreCoordinator: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/RestoreCoordinator.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc13b2684276f0cf9bf0c76f6c6079ecdda63febb1c595e9d3730e9c2f62015"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SdArtifactInspector: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdArtifactInspector.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fda83c7007f15744bee5d5c50e71cad2c240007105a7f1cd6730a4aca8881ee"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessTransferCodec.inspect: MethodTooLong \u2014 inspect runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5446979f3e6c28de6b64faaa32b9c80f942fbf575d0746a842cd59d1b10104a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OllamaService.performChatWithToolsStreaming: MethodTooLong \u2014 performChatWithToolsStreaming runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/OllamaService.kt"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd7196a924c52487b1ed10e06c50ad912a60183a922023854e3951b992f1486"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NativeHarnessProviderDiscoveryPanelKt.NativeHarnessProviderDiscoveryPanel: MethodTooLong \u2014 NativeHarnessProviderDiscoveryPanel runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessProviderDiscoveryPanel.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d929abdf760ed266e2d226c5dfe5f78f040395628906575aab37212402c225a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AudioModelsScreenKt.AudioModelsScreen: MethodTooLong \u2014 AudioModelsScreen runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/AudioModelsScreen.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20b71c8b4eab9fc2836f84e8edc4951202149d9bd7d939b077f1af48392dd68"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: servers/RemoteServerForm.kt: FileTooLong \u2014 597 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 97 over it, 1.19\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/RemoteServerForm.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b4975ed548f2b13bd9e858127c1127a172e15d6955831b3b79d8335207dd979"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ArcadeSubmitOutcome: ClassTooLong \u2014 477 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 77 over it, 1.19\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"5961aab50423f95b4ecdce3acff2671de3edc169a17eb4131efd5376aee8b732"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LlamaServerLaunchProfile: ClassTooLong \u2014 476 significant lines (blank, comment-only and punctuation-only lines excluded), 6 methods. The bar is 400 significant lines; this is 76 over it, 1.19\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerLaunchProfile.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b19a071e2d41ac568a7f659e51b6e09572a311adb8a542320c00e6adda0353"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: logs/LogsScreen.kt: FileTooLong \u2014 595 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 95 over it, 1.19\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/logs/LogsScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5951241c7481cdfaba77b569ff9b5622d88f05c167b1ecf8e535e9fe4844b0b0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessComposerKt.HarnessComposerSessionControls: MethodTooLong \u2014 HarnessComposerSessionControls runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessComposer.kt"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"132e1e0105176baf619b2f473d37e3eb261dfafd6a802ee0824903b6cf9637d5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PdfMappedRect: ClassTooLong \u2014 474 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 74 over it, 1.19\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFTranslationLogic.kt"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fec720c626b6cf177946e198ab03e53710d7ec8f489e1d950fd34a951e4b730"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/SdCliSupport.kt: FileTooLong \u2014 592 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 92 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdCliSupport.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c963c9f0c4afbd4579b2f0247c294db8728999198bdb90da493f11766ce9c1b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: onnx/OnnxBackgroundRemovalSupport.kt: FileTooLong \u2014 590 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 90 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/onnx/OnnxBackgroundRemovalSupport.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa4e042516e0213f98725afcf49383535c0f47642efc15d202488efec6ada7f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessAppToolsSettingsKt.HarnessAppToolsSettingsDialog: MethodTooLong \u2014 HarnessAppToolsSettingsDialog runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAppToolsSettings.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a078fc2ac1895872ede2b2873c72c56ecc402291012f1bb2b867edba060bc557"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ImageGenPhaseCOptionsKt.ImageGenInpaintOptionsCard: MethodTooLong \u2014 ImageGenInpaintOptionsCard runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenPhaseCOptions.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a73c8d991ef8a1dfc24ab055c464c4a96165be4c76c604e67c56648d2af4f3d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TermuxWebViewScreenKt.TermuxWebViewScreen: MethodTooLong \u2014 TermuxWebViewScreen runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/TermuxWebViewScreen.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa73a9f45387258af7357d1ce56158643070c513f59ec1c456fb522fa6cfccb9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ollama/OllamaManagerScreen.kt: FileTooLong \u2014 587 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 87 over it, 1.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ollama/OllamaManagerScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d918d96c2652fc8adf3d3c2b797b0658a45a2184ce0f431a3e321228c5483ad"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OllamaRepository: ClassTooLong \u2014 469 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 69 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/repository/OllamaRepository.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab6e3d44e377bee90dacee7bdebaabed3387d024e09b648ed8110fb2003e239"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelManagerScreenKt.DownloadingTab: MethodTooLong \u2014 DownloadingTab runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dabf86d2ee53f25ce103ee049fb7821fd3a439b83438532ebdd3841f8c7340f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ModelLibraryManager: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/ModelLibraryManager.kt"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"66dd22de2c237dca2adf4a53f9ef2eba0c6336ca3c48c93119ab745a0bbccd7b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AdventureService: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/adventure/AdventureService.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae63ce9d264d26dbe6c45cb11601de330cbe29267d980e6a5ea922daf8caca0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ShimejiOverlayService: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/shimeji/ShimejiOverlayService.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"725d2bb009e78ea63dd0bf7078a56c477160d6e7b058b402a6549a652ec18c24"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NativeHarnessParityController: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessParityController.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"b752258fc6aebd81713d07a2a31d5a6f41c298e7f175deed99acb8cee8f6b3e3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ai/OnnxBackgroundRemovalScreen.kt: FileTooLong \u2014 582 significant lines (blank, comment-only and punctuation-only lines excluded), about 75% of them inside a single declaration: BGR_RESIZE_PRESETS (123-718). The bar is 500 significant lines; this is 82 over it, 1.16\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxBackgroundRemovalScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7037d8e98ed2c8b800e5d4d9ef4bdd6309b8fd3bc5a2af0ab570bdb07d6d7f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SdPipelineResolver.resolve: MethodTooLong \u2014 resolve runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdPipelineResolver.kt"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"69439274c3163ea22408a4b7d5042a42882d7a29a83b09d7c490198376226914"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Companion.persistFrozenTurnContext: MethodTooLong \u2014 persistFrozenTurnContext runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":4371}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b994f134156cb0207f7c855cd03156c3d97ecda92b176f4fc30559e1e86064"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DistributedService.startWorkerMode: MethodTooLong \u2014 startWorkerMode runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DistributedService.kt"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf9cbf6f2eab86ff3148c5bd35b86758c51fe6d11297cdff6e0173da4747603"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SdDistributedSettingsSupportKt.settingsFromJson: MethodTooLong \u2014 settingsFromJson runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdDistributedSettingsSupport.kt"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"225515caf1d004407b0138fec7fcb9feb45c7ecaed3089a0967dc1221bfdb582"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessScreenKt.HarnessTranscriptCard: MethodTooLong \u2014 HarnessTranscriptCard runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b89a202782da33fadf199c0b2e0a44b4ef2f8469c3e0a7cda4306781aedc696"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NotesManagerScreenKt.NoteFullScreenDialog: MethodTooLong \u2014 NoteFullScreenDialog runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt"},"region":{"startLine":2211}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4036ab3fdbb8d122bd0cc4c917cae3ae4b14f6785a63b52a4bce09b13cdf1c7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DelegateHarnessDriver: ClassTooLong \u2014 462 significant lines (blank, comment-only and punctuation-only lines excluded), 41 methods. The bar is 400 significant lines; this is 62 over it, 1.16\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegateHarnessDriver.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"63027ea47f42b562e1b3fabeb8300ac23ba2a5430a22172323dcafcff7d1e9fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/TamaGalleryScreen.kt: FileTooLong \u2014 576 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 76 over it, 1.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93a100269cefd7e16c8c9044e6b233317bbfb9d489f7ce43ef565189de54174"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: harness/HarnessSettingsNavigation.kt: FileTooLong \u2014 576 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 76 over it, 1.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessSettingsNavigation.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6270f8d1eedaab985b9d63b58f95a5affd0d9b727e0b9ef07cc454132047651f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelArtifactRecognizer.inspect: MethodTooLong \u2014 inspect runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactRecognizer.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85dc992b469536542a45b0d51095323fe994f925e7d5c3b309437c727a71ec5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentRemoteChatWorkerService.startRequest: MethodTooLong \u2014 startRequest runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentRemoteChatWorkerService.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2487f9669aabce1f2703e7d1fbc87297c774331176cf5dc5e5c7fd8b4f5a293"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessManagementPanelsKt.HarnessAgentPresetCard: MethodTooLong \u2014 HarnessAgentPresetCard runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessManagementPanels.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2fd6d063f88cbffb725cbbfd4cf8832c310ecfd1204cb952159b2d2bb3d65a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: walkthrough/FeatureOtherGuides.kt: FileTooLong \u2014 574 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 74 over it, 1.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/walkthrough/FeatureOtherGuides.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc6c93a5ee74ad3cb4a260870de3a76b106861209d87b07ef2d7fec4021b85ec"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VideoUpscalerService: ClassTooLong \u2014 457 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 57 over it, 1.14\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoUpscalerService.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1204b3a126791a893ab262f120bb304f04eecb0cffd432e3209faabcd860f39d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ToolHttpServer.startPdfToolJob: MethodTooLong \u2014 startPdfToolJob runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":1775}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e871551849cccfd9ef03976b21c775a437586e06e5f61a45a8410d846e5203b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NativeHarnessController.selectModel: MethodTooLong \u2014 selectModel runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt"},"region":{"startLine":1406}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b7950eaad65129f0fdc8abf79307fc71f7eb5d89f1bafa6cb31e4abbdec32b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DatasetScreenKt.DatasetScreen: MethodTooLong \u2014 DatasetScreen runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/DatasetScreen.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed78f7193a294c7ee7ebe157620550e89f6570be2fdda6e874091190b9e8ff2d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DashboardKiwixCardKt.DashboardKiwixCard: MethodTooLong \u2014 DashboardKiwixCard runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/dashboard/DashboardKiwixCard.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"918bfaf984848a1972c31eae372960ec9efca758dc95d67ab8ab55e045f46a0b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentRemoteChatClient: ClassTooLong \u2014 455 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 55 over it, 1.14\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentRemoteChatWorkerService.kt"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"d894f01e5d09f391b609b70faa53c1ee26fa4424d58f47c2eb554882d256c75c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ai/QuadtrixTrainerScreen.kt: FileTooLong \u2014 568 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 68 over it, 1.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/QuadtrixTrainerScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9612a5ca6cb23330111672d87415de86a8ef4ead972d83b3b2e8f4c7a171b31d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shimeji/ShimejiOverlayService.kt: FileTooLong \u2014 567 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: ShimejiOverlayService (62-759). The bar is 500 significant lines; this is 67 over it, 1.13\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/shimeji/ShimejiOverlayService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1024c872cda44629a95868287527a918d1eaea7914353521e5566e9034452895"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NativeChatKvCacheCoordinator: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatKvCacheCoordinator.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81dceedd54eecc794c1d90a94d8e355e26ec8d586631041ba2f86ebb3ab7a42"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NativeChatKvCacheStore: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatKvCacheStore.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"05340d8292a11bcade6ca289f6d3b957a8fa5f9b7db1e4c5bff98d39f9c0e8b2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TamaDailyDreamManager: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaDailyDreamManager.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"63157f36a5ef41d54ec1c04d01ed6e3b4fbc4005773ea489d8be0271ac61279d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentProotTerminalHost: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentProotTerminalHost.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"516c9e29926fed2ac9ef49ea4719d779842911637564c0ec3fa084ea7f514bd0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MangaTranslationSupport.runConfigFromJson: MethodTooLong \u2014 runConfigFromJson runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"f84c9e7ca25e21c1f2a86e545d1f7b8a2246e74848ba66f4e59847e24600e48e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NotesManagerScreenKt.OrganizerCalendarTab: MethodTooLong \u2014 OrganizerCalendarTab runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b33066603bf5d2bcab39a539bc1993c7d930fcd0cfd35693fef21dfa881f82"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VisionHelperSettingsCardKt.VisionHelperSettingsCard: MethodTooLong \u2014 VisionHelperSettingsCard runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/VisionHelperSettingsCard.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e66a74971ecfcd4fdaeade31f2618f16960c8881858366ffa69caac139883c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MainActivityKt.ChatDetailScreen: MethodTooLong \u2014 ChatDetailScreen runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":1924}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada651d8c5c4bf456f5d673ca7f5fc6300f360004aa8187070b238a449d39a7c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/StoreScreen.kt: FileTooLong \u2014 564 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 64 over it, 1.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/StoreScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db33405efe923947b2d48843e73763b50e41701f2955d28c66ca4a3264612341"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/AdventureScreen.kt: FileTooLong \u2014 562 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 62 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9784610e070bcde39525958bc53138a95f8b1a22bcffbc3b034cf1e7f1b95c3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ai/MangaPaintedMaskEditor.kt: FileTooLong \u2014 560 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 60 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/MangaPaintedMaskEditor.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60672162fd02f1250d7420a1236f3962f02731ba002df311e5d3d2600fa535f2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AdventureGateCombatEngine.applyPetDamage: MethodTooLong \u2014 applyPetDamage runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateCombatEngine.kt"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"7372f6bdf087fd6004b7ee776d5121836d536bec61039500029bb40266eec928"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FarmDroneDialogsKt.PlantingDroneDialog: MethodTooLong \u2014 PlantingDroneDialog runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmDroneDialogs.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d5195d0555977e5ade0af76b3def80b41bfca6559a54e425a875d2fc732b044"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ImageGenScreenKt.SdParamsBackendProfileControls: MethodTooLong \u2014 SdParamsBackendProfileControls runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":4848}}}],"partialFingerprints":{"codehealthFindingId/v1":"235e9960c4995e94d84aafe51f28fe44492aeccc1b8aaaa0f8d9d83218f37c9b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OnnxModelsScreenKt.DownloadingOnnxModelsTab: MethodTooLong \u2014 DownloadingOnnxModelsTab runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e52bcff9d88ea7dc572c61b4a7c47522044a6c059b575d391fb78903dac9e3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/AgentPromptBudget.kt: FileTooLong \u2014 559 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 59 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentPromptBudget.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80856835ded5a234ba5f151e57fa46ed5094659dcdc6406651d6899564d8ea5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: db/AgentWorkflowEntities.kt: FileTooLong \u2014 558 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 58 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentWorkflowEntities.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f9cf35f65b6ad9d11aee648864a48d6174ae0b425aff546046bd2367a1473f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DeepResearchService: ClassTooLong \u2014 446 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 46 over it, 1.12\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DeepResearchService.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a466135575e3cd205afa2faab262897997f077aca28a0fbebdd879c401ef920"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: library/ModelArtifactFinalizer.kt: FileTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 56 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactFinalizer.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ea98b34f1a8ec8c0ede5f3c9e0fb8564c83555ee8d735121bf595062f95aff"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: library/AllMediaGalleryScreen.kt: FileTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 56 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/library/AllMediaGalleryScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"474a25d40805bc8bcf540cf3fbfbd771b2d9d9d4ebd70747fcaaae29ccfc9582"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentRuntimeSupport.resolveFinishTaskPayload: MethodTooLong \u2014 resolveFinishTaskPayload runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentRuntimeSupport.kt"},"region":{"startLine":1954}}}],"partialFingerprints":{"codehealthFindingId/v1":"588964527dd8ada550df66faea2efb6d32a2ca301bbbfae9dea185774c42eccc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiveTranslatorService.startLoop: MethodTooLong \u2014 startLoop runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3964431c6a3e5f515c83ce0c105e1bfb7fbe75ea3ef44b4d8f25e5e1da2e02"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AssetDownloadDialogKt.AssetDownloadDialog: MethodTooLong \u2014 AssetDownloadDialog runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/AssetDownloadDialog.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97efbcebfbb9f371fca19843aed871ace333b42643eff13e79cefb749aa5d1c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StableAudio3LoraMergeProgress: ClassTooLong \u2014 443 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 43 over it, 1.11\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/music/StableAudio3LoraMerge.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"6edf5bf820ef98eefad4098c5250a9fd99ca6d0accee60ad7e34b70a70dd6a70"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/OnnxImageGenerationService.kt: FileTooLong \u2014 552 significant lines (blank, comment-only and punctuation-only lines excluded), about 80% of them inside a single declaration: OnnxImageGenerationService (149-719). The bar is 500 significant lines; this is 52 over it, 1.10\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/OnnxImageGenerationService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6001a238f7d0b8fc5f05b591564d13e56b1ee2748411aad201c031f9ab9c8ec9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AiToolServerService: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"f242581a94886e57c01647496a5f6ead8843193398fa3cf5e51a2eb68be15791"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DelegateSubagentLoop: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegateSubagentLoop.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9dbb6b94b85d98260d8eea3c9203a1eb6eaa146fa9327d690c3e5039c9ebe88"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ModelLibraryViewModel: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryViewModel.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a46931c06b709e47c7a89e9bb91295c47054727261bd2689d0a73d8f90e473c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AdtBaseTileService: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"523912f409ad5e36f83d293a48d30f268f77c9ad327a6c02fa4856c8f0300950"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: QuadtrixCommandBuilder.trainingArgs: MethodTooLong \u2014 trainingArgs runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/quadtrix/QuadtrixRuntime.kt"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8be9aa9ed6e7645919d8cf1d5f2e832a54a770ecc1721c933a54c1e81fafd07"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SdArtifactInspector.inspectSafeTensors: MethodTooLong \u2014 inspectSafeTensors runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdArtifactInspector.kt"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"6022beab6d371ddbaf4d15cf8693e249022b15e187234ca26872c73d2550abaf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TamaChatServerSettingsKt.TamaServerSourceSection: MethodTooLong \u2014 TamaServerSourceSection runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatServerSettings.kt"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b74156eabcdd4d38410c786d9e1505446be061f991020bbb7769e40cdab91b5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FastsdGalleryScreenKt.FullImageDialog: MethodTooLong \u2014 FullImageDialog runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/FastsdGalleryScreen.kt"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9ea2c017c477d189ee8224d544c36d7065552316fcbf8c2db39d453d9085ca"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EasyModelImporterKt.EasyModelImportSection: MethodTooLong \u2014 EasyModelImportSection runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/easy/EasyModelImporter.kt"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8b240b23136bb37755d0328243d0c5615fd53a60ff87df200174584f5c516d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OnnxImageGenerationService: ClassTooLong \u2014 439 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 39 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/OnnxImageGenerationService.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aaad3c3c0ab059c5fab827e3c832149681f1e5e4581409b0230c5617f018419"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: music/StableAudio3LoraMerge.kt: FileTooLong \u2014 546 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: StableAudio3LoraMergeProgress (23-599). The bar is 500 significant lines; this is 46 over it, 1.09\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/music/StableAudio3LoraMerge.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02988a8bbcc8daa749fe1b31ebc1bb9f9e889587e314e45a0534943008cc63d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentProotCommandExecutor.runCommand: MethodTooLong \u2014 runCommand runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProotCommandExecutor.kt"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"494882700ab55842b2ade5bcc95e42624d77ace21aac4a48dd9b878b927dfe07"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OnnxModelsScreenKt.InstalledOnnxModelsTab: MethodTooLong \u2014 InstalledOnnxModelsTab runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"e926880077218ebdd9cc4f09956c0a9f31934b8aeb999b2189c23843051b5cb1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/DatasetForegroundService.kt: FileTooLong \u2014 544 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: DatasetForegroundService (34-741). The bar is 500 significant lines; this is 44 over it, 1.09\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DatasetForegroundService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f89c900e2190ec988f9406fdd36fa96c29fccf5fb26a9245565c9f705ae8f4ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/LlamaOcrRuntimeCoordinator.kt: FileTooLong \u2014 542 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: LlamaOcrRuntimeCoordinator (40-713). The bar is 500 significant lines; this is 42 over it, 1.08\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaOcrRuntimeCoordinator.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b716bc047cb9e72ba4b3b80ef0242a42d3935e1d6953410c5e1c7ea4e9fc6a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/AgentProotTerminalSessionManager.kt: FileTooLong \u2014 541 significant lines (blank, comment-only and punctuation-only lines excluded), about 67% of them inside a single declaration: AgentProotTerminalSessionManager (244-723). The bar is 500 significant lines; this is 41 over it, 1.08\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProotTerminalSessionManager.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1bae91673715812da3ce967594e7f9097fc549cbe5d31c4b9f84b656b171f9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HarnessAppRuntime: ClassTooLong \u2014 432 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 32 over it, 1.08\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAppRuntime.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"929c88256b5d7d65f57ba0b5e4809dcde6e92517ebd54aadf27c8cd391a4a474"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NativeChatToolRuntime.kiwixSearch: MethodTooLong \u2014 kiwixSearch 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":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":2151}}}],"partialFingerprints":{"codehealthFindingId/v1":"38efb4264d8ef3308b37f4b66516c0643ad28950fb860cf766131240b3c149b2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OkHttpHarnessClient: ClassTooLong \u2014 429 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 29 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/client/OkHttpHarnessClient.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a47dda552906faaefffe64b430dddc9b2ec3a4ce1e2e00f8fe81f7b0793869c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ai/FastsdGalleryScreen.kt: FileTooLong \u2014 535 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 35 over it, 1.07\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/FastsdGalleryScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8830c49e4e89a8156b92c2515d11e6fce199e19231883f9140a13b547cf50e3f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiteRtModelRepository.saveModelRecord: MethodTooLong \u2014 saveModelRecord runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/repository/LiteRtModelRepository.kt"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"abad09e83f5bc775f6ff8bdb2d7336c907f847c218e79bde01cab0ab4a83d98e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LlamaOcrRuntimeCoordinator.captureActiveRuntimes: MethodTooLong \u2014 captureActiveRuntimes runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaOcrRuntimeCoordinator.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22858426d81eb382c9d50b39e3a90fe9ac5ff62d3d960ee10c9f85365205b72"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RemoteSummaryOrchestrator.unifyRecursively: MethodTooLong \u2014 unifyRecursively runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteSummaryOrchestrator.kt"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea9de0f89d42076676565db169b1e5a2a060eacf17eedcda7dc1764a2abedd33"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SdDistributedRuntimeKt.buildRamWeightedSdPlacementPlan: MethodTooLong \u2014 buildRamWeightedSdPlacementPlan runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdDistributedRuntime.kt"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c4be2813860d7d69d67f0fdea510f114925e4918803a174499f281b4f05321"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TermuxScreenKt.ConnectionCard: MethodTooLong \u2014 ConnectionCard runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt"},"region":{"startLine":1189}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e673a10f951ba29586defbdf88b69b266b6bb61385cdabcfe6ce3a6dbf3657"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatContextGaugeKt.ChatContextGauge: MethodTooLong \u2014 ChatContextGauge runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatContextGauge.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0f391f4711270ea47598c793811404465688c1a46cc9e4470a80b3716816fa6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelLibraryScreenKt.ModelBundleCard: MethodTooLong \u2014 ModelBundleCard runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryScreen.kt"},"region":{"startLine":1250}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7bff1ad3c6b90793493c2e67a31f9a47e1dc916a81f6073fa1de6e7bcf0502"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TermuxTools: 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":"app/src/main/java/com/example/llamadroid/data/model/TermuxTools.kt"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"b412a4e12843668624f6f5b481df0cb5c2069212f22b522ceda86d131af5f401"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AndroidHarnessProcessSupervisor: 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":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeProcess.kt"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"46421846be9f8b4011c625c8e337a280b9dd624d16b01f2b5fc9b2019d0f1af1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MediaGalleryIndex: 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":"app/src/main/java/com/example/llamadroid/media/MediaGalleryIndex.kt"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"be42526f9e5a4eb333c961e84653f2925e01bfc9e633f17a1a843c52051b75ca"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentHarnessPolicy: 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":"app/src/main/java/com/example/llamadroid/service/AgentHarnessPolicy.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb57ce0d280a9d3680c7112fbf49ad124cf30e180f30e9572a4dd47ff250abc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DatasetProcessor: 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":"app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46ce3e1c72d103d9ccda430953e77cd4b711d7f2c41142e8fcd8b064f96cf92"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NativeProcessCleanup: 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":"app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"3944510e8dc9e6687ded19f3bfb296754602fddebcd542e373983ca23ec86ea5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: harness/HarnessRootfsFileStore.kt: FileTooLong \u2014 533 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: HarnessRootfsFileStore (62-726). The bar is 500 significant lines; this is 33 over it, 1.07\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessRootfsFileStore.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab4be7c06a995bb72b1f3d48654265ab02c298be4d4ca3281778e49ab691726c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: model/SdCuratedBundleCatalog.kt: FileTooLong \u2014 530 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 30 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/SdCuratedBundleCatalog.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e37c62e8019ed71945efe222f09a8f3ba616011c12b7612793373ec0ae323be"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: chat/ChatSettingsState.kt: FileTooLong \u2014 530 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: ChatSettingsState (29-622). The bar is 500 significant lines; this is 30 over it, 1.06\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsState.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"930bf78034b5db0ac2ea2ad7fe48706764ca9020140b455c81e556f4073c8471"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessTransferCodec.scanTree: MethodTooLong \u2014 scanTree runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8d7d2d139f0e2a7fa97be328732f287364709fe135740e46c28fd2a277d09e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ArcadeMemoryGameKt.ArcadeMemoryGameScreen: MethodTooLong \u2014 ArcadeMemoryGameScreen runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/ArcadeMemoryGame.kt"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5d9efd360a82c96c82f37878bf5797755b5630e0b4c97253d86b98bfb47440"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessScreenKt.HarnessProviderConfigCard: MethodTooLong \u2014 HarnessProviderConfigCard runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt"},"region":{"startLine":1641}}}],"partialFingerprints":{"codehealthFindingId/v1":"91724c4b05072a04b7c220b5916a7319f6ca4e3e82dd6fa7eef2ddab65cf8d1b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TitleGenerationSettingsCardKt.TitleGenerationSettingsCard: MethodTooLong \u2014 TitleGenerationSettingsCard runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/TitleGenerationSettingsCard.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7dc49eed8d75164be518d329d43ca65997b53bfc7397a2730b9add3ce7a5fb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: delegation/DelegateHarnessDriver.kt: FileTooLong \u2014 529 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: DelegateHarnessDriver (91-752). The bar is 500 significant lines; this is 29 over it, 1.06\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegateHarnessDriver.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"184a17835e4bfc8c0d7e944d59f8b61660c189e1764df946d185c9a8c6e0b396"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: adventure/AdventureLore.kt: FileTooLong \u2014 529 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 29 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/adventure/AdventureLore.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbbc95b664a9f919bc2ae0bf34bd133f10a2be470431f1e5942cad56bf333276"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AudioGenerationService: ClassTooLong \u2014 422 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 22 over it, 1.06\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/AudioGenerationService.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"1811ce28559aac61784591123ec24280584f2eb77966fc1d6f5570d341382c5a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentRuntimeDispatchResolver.resolve: MethodTooLong \u2014 resolve runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/runtime/AgentRuntimeProfileSupport.kt"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef1734e53063b58ddfd3f9111a01686250dbb73eb7e1245694832dc79fe019d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessTerminalDialogKt.HarnessTerminalDialog: MethodTooLong \u2014 HarnessTerminalDialog runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessTerminalDialog.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1c9459b31e1baa52385b770f0b80d6d3da3cd79515d42b67dc3e847d2f20f6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentProjectControlPlane.applyRepairProgress: MethodTooLong \u2014 applyRepairProgress runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"b827c0548f11121930715e484a3f9734eaf0794e12ca39ca21a53ad4d4e47836"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Companion.stopAllJobs: MethodTooLong \u2014 stopAllJobs runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":6496}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed98f0781aaa508c3e41bb52a1782298dc935142de6f5da60f0b416218acd655"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Companion.fromMetadata: MethodTooLong \u2014 fromMetadata runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoReusePayload.kt"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"de3cdd404199a9f7ed9264a70049aa99febc1b49f58224c9a172f1028e7273db"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GenerationQueueScreenKt.GenerationQueueHistoryScreen: MethodTooLong \u2014 GenerationQueueHistoryScreen runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/GenerationQueueScreen.kt"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"185d7efc8cd983ee46713ea068f2293e70469f8f89e4df053c223eda000689b7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OllamaManagerScreenKt.ModelList: MethodTooLong \u2014 ModelList runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ollama/OllamaManagerScreen.kt"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fe0b751c160675535a5569fa92ba47aafe168eb6d7a6c0ca8aa1e37684f26a0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: harness/HarnessTermuxTransportView.kt: FileTooLong \u2014 524 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 24 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessTermuxTransportView.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50e6aed7ad11cb5c39bd028e6255b1e0beeaf9ffb477e8ca0819cdc3f3d1030"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DelegateSubagentLoop: ClassTooLong \u2014 417 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 17 over it, 1.04\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":"app/src/main/java/com/example/llamadroid/service/delegation/DelegateSubagentLoop.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a071ee462db6841d0836c78c1e047ee2205cd48902af0ffef9fcfda0143a2e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OnnxBackgroundRemovalService.startRemoval: MethodTooLong \u2014 startRemoval runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/OnnxBackgroundRemovalService.kt"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d159b6d7706e15703b98eb812de6c8fddb808e7dbdc6cc3cefdcc11db6b538"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SdDistributedScreensKt.SdDistributedGalleryScreen: MethodTooLong \u2014 SdDistributedGalleryScreen runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"212ddba348ccbf36372cfce71d2f164c053fc33287b960dd852990b984726469"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LiteRtLmWorkerClient: ClassTooLong \u2014 415 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods. The bar is 400 significant lines; this is 15 over it, 1.04\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":"app/src/main/java/com/example/llamadroid/service/LiteRtLmWorkerService.kt"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f1ba60530996c5a4bd90afbf1bf11535b958876ebd431c248db0e4d08747828"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/LiteRtGpuDiagnostics.kt: FileTooLong \u2014 518 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 18 over it, 1.04\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtGpuDiagnostics.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae1b8294f3bffbac70a111abe916dc89ce27ccd5b0c08e1672e7ff896cbb379"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/VideoSumupService.kt: FileTooLong \u2014 517 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 17 over it, 1.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoSumupService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da99d5a68ed7bbe26bc8dbae9a94351bc446e99cd8a94a9848335137e424231c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HarnessTransferDomains: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferDomains.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a4e4891b1b2d0b3a98f1d2ff8c6ff9842c4150806b1d900ab89ff52a5c1b4d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DatasetForegroundService: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DatasetForegroundService.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"00852687df456edfcf86dbf10c496c5843a1622d3051f0fd50d28d48c767caef"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ToolsApi: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/filestation/api/ToolsApi.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7126ba128ef0f9aff514eec7c2d92a96f7490ba8696e3eb99771670c2b062be"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NativeChatToolRuntime.webSearch: MethodTooLong \u2014 webSearch runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":2023}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5bbcde28fffb7cc7cd2d1728917dcda93163233bfedc1301b1afb116ad0897e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VideoReusePayload.withResolvedReferences: MethodTooLong \u2014 withResolvedReferences runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoReusePayload.kt"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6deb7672de3a3d8b76cae024c786e57fc1dd381edbdc90e256b8a47cd5204b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TamaGameEngine.updateForTimePassedLocked: MethodTooLong \u2014 updateForTimePassedLocked runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"b417f808d9e8ce6f2e3d8d2436acd26f0aaad37ba684e10afcb3f80f0f4daf65"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AdventureGateCombatEngine.resolveSpeedRound: MethodTooLong \u2014 resolveSpeedRound runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateCombatEngine.kt"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc044a1ac0d5d56e5f996daf27ad093b2a1c2d57b30c40f7a02e2e7a306f0252"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TamaScreenKt.ParkQuestCard: MethodTooLong \u2014 ParkQuestCard runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":1954}}}],"partialFingerprints":{"codehealthFindingId/v1":"af138f3cf7eac1bac1d0ee19fac1b14f039e8afd507189f63b66241a5bca82d1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TamaScreenKt.TamaInventoryDialog: MethodTooLong \u2014 TamaInventoryDialog runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":4098}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ec45b3926d221e173b79acb9195c660513cbd7477c961ea745a336b04c7980"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentWorkflowDao.completeDirectReanchor: MethodTooLong \u2014 completeDirectReanchor runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentWorkflowDao.kt"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b268da6f342258f5fceeacf0a7fafbd54016c7ee1eec91bd8623ea7a1d4cf8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessTransferPublication.prepareAndPublish: MethodTooLong \u2014 prepareAndPublish runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessTransferPublication.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"60459d15a6ea1b696a31a68530a6b60e831196933f20030cd2359b2b73891161"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentProjectControlPlane.allowedToolsForRole: MethodTooLong \u2014 allowedToolsForRole runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ea83d47ef049f9c94a0efb748f02cd645c5d3173c0f2db9e1885c5e71ced16"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TamaGameEngine.restoreTransferBundle: MethodTooLong \u2014 restoreTransferBundle runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":3523}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa42dcd375a1ee939565f7a5b7a04f48a24671c7d863a30f9bf20b0073a445e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentControlsKt.AgentTopBar: MethodTooLong \u2014 AgentTopBar runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed17fb49b5060db6d9f274ac6c57d075bf1b4f58f5ede058334871d231a5f87"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessRecoveryToolsKt.RecoveryTerminalControls: MethodTooLong \u2014 RecoveryTerminalControls runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRecoveryTools.kt"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"199c3eedda4e9bb2cf2b150949fdae749a8d0f58109c7440534cbd33c9f216b8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiteRtModelsScreenKt.LiteRtInstalledTab: MethodTooLong \u2014 LiteRtInstalledTab runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e3839b96235737e23250722925983cd28d147389b38c80aaae89f49db50eaa2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PDFToolboxScreenKt.GuidedSearchablePdfTranslationTool: MethodTooLong \u2014 GuidedSearchablePdfTranslationTool runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":1888}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a50328f50dabe0055d060352393ebdcb1aa44dee53d7e803d8f296d196ce80"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/LlamaServerLaunchProfile.kt: FileTooLong \u2014 508 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: LlamaServerLaunchProfile (51-630). The bar is 500 significant lines; this is 8 over it, 1.02\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerLaunchProfile.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f83cabdbd0e44369139aaf1f137a74e30e35fe76ff20112e51eee2923a0f19b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/VideoMediaProcessor.kt: FileTooLong \u2014 507 significant lines (blank, comment-only and punctuation-only lines excluded), about 63% of them inside a single declaration: VideoMediaProcessor (67-484). The bar is 500 significant lines; this is 7 over it, 1.01\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d7c9eb5a4fd1de1a08b0b13bbd6dd2bded05a5018762a0f96fbe0844b1f51e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: harness/HarnessRecoveryTools.kt: FileTooLong \u2014 507 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 7 over it, 1.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRecoveryTools.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6d79097f5c09b73442ffa8728151960f6abeda3ac3ae46c2eb20a3f0c2b87d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NativeProcessCandidate: ClassTooLong \u2014 405 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 5 over it, 1.01\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e5f1a095ee8a449f7cd6be9a9b03ea8acc181a33135d1d77cc571daeb091448"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HarnessSettingsNavigationKt.HarnessProviderDirectory: MethodTooLong \u2014 HarnessProviderDirectory runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessSettingsNavigation.kt"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a875f401752a72075ec18c4bb5093c6a4fe2da00d79f3612894201dd497e427"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: distributed/NetworkVisualizationScreen.kt: FileTooLong \u2014 501 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1 over it, 1.00\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/NetworkVisualizationScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5d931edb528be37c547505a0ef98fbf9768d79861044959070c956853f94fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (96 shared lines): app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:62-302 | app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt:44-235 \u2014 These two members are variants of one another: 96 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":"app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d95fe760ce54c1bf78f7d47f3b3d24934f493430d94d39fcc3f69d36e6e1e74"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (88 shared lines): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:267-515 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:561-744 \u2014 These two members are variants of one another: 88 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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"57015f0dffcbce76986c3dbb816f0129f7ed0ebf4a167ce773dec2a00306e396"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (80 shared lines): app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt:346-517 | app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt:529-700 \u2014 These two members are variants of one another: 80 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":"app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"2602a3695de2898b75b3a23797f20c9a46c70e04aa9f9e0cd2fbaae36656a608"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (76 shared lines): app/src/main/java/com/example/llamadroid/service/PDFService.kt:2824-2962 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:2975-3120 \u2014 These two members are variants of one another: 76 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":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":2824}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5d370bd436f74484215bd1e70cd3f1e4543e37229845363b380bdaa435d208"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (71 shared lines): app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt:516-634 | app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt:981-1183 \u2014 These two members are variants of one another: 71 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b82704bcfe9ef707aa1cb5317a84f64960ae882967639fb8db1efb9795aaf32"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (68 shared lines): app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1409-1653 | app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1699-1877 \u2014 These two members are variants of one another: 68 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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2379dd589d37e1e23ec2e6142beb124268a636ad3a4e2313ad837009992e76"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (61 shared lines): wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:1929-2074 | wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:2077-2194 \u2014 These two members are variants of one another: 61 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":1929}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5e934d3e2717451d6232e40bcfd88a80aa6c7d67f615939643c398007813f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (55 shared lines): app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1409-1653 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:267-515 \u2014 These two members are variants of one another: 55 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ef2ebc3789d8cfed37582d1502301f369b449aad129d16c5f1852b55203947"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (55 shared lines): app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:2029-2149 | app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:2158-2284 \u2014 These two members are variants of one another: 55 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":2029}}}],"partialFingerprints":{"codehealthFindingId/v1":"6694cfecc6eaf16c10e37198af33b02f949e85861883f322feb3981af4b42374"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (51 shared lines): app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:304-406 | app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:414-521 \u2014 These two members are variants of one another: 51 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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af66b7be4d12150bfbd8f4e23dccad65457b1375488c26f37164769c3f30a4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (45 shared lines): app/src/main/java/com/example/llamadroid/service/AgentService.kt:20532-20672 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:20676-20790 \u2014 These two members are variants of one another: 45 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":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":20532}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6244e2d629b43eb345b97a3a8a1ca2ae2ef3bb804a523817d0188469b6c6686"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (42 shared lines): app/src/main/java/com/example/llamadroid/service/PDFService.kt:7018-7079 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:7091-7155 \u2014 These two members are variants of one another: 42 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":7018}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f566a6e495e70229cda4d7ae3e5cb04304613ef37bbc0b1cb897ccc964ab3c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (37 shared lines): app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1699-1877 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:561-744 \u2014 These two members are variants of one another: 37 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":1699}}}],"partialFingerprints":{"codehealthFindingId/v1":"f805b1c4fc7e5db02677b435d0e38786b0dd296effdf515f442020f89a8beef6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (35 shared lines): app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:1169-1233 | app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:1235-1305 \u2014 These two members are variants of one another: 35 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b5e4072252ad8f4765472dd6ecb119bad4b01baa7d2b8fd6738fe86778314a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (32 shared lines): app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:3796-3893 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:3900-3974 \u2014 These two members are variants of one another: 32 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":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":3796}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd53ab1deadd08e0f13617844cef4715f04a59178598fff8e51e0d470bf7ac4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (30 shared lines): app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:820-860 | app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:1040-1079 \u2014 These two members are variants of one another: 30 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0311228aeaad0f4658bd0c1fbe9dc7381bbc3012c32766af7c711ae72eab5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): app/src/main/java/com/example/llamadroid/audio/music/StableAudio3LoraMerge.kt:559-577 | app/src/main/java/com/example/llamadroid/audio/music/StableAudio3SafeTensors.kt:246-264 \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":"app/src/main/java/com/example/llamadroid/audio/music/StableAudio3LoraMerge.kt"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ba96499a6500ada85c284e4748c95274806fac8e58d8c16b103cbe5ccac772"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:379-472 | app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:474-557 | app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:806-877 | app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:882-927 | app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:932-978 | app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:986-1036 | app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:1042-1091 | app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:1097-1165 \u2014 These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"f41e7acb933a899c914aab81fe3592c266ebe62f83d35cc71ff1cf191afde279"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:863-1050 | app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:1059-1122 | app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:1195-1215 | app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:1224-1261 | app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:1296-1333 | app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:1346-1397 | app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:1403-1437 | app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:1447-1474 \u2014 These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"14afc81338179c3165f48df83cb24856fa4e806ac0ef0817a730d46e7d43c7b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): app/src/main/java/com/example/llamadroid/harness/HarnessAppToolsSettings.kt:54-200 | app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:3863-3873 | app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:4671-4686 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6781-6796 | app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:2123-2133 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:975-985 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:4651-4666 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAppToolsSettings.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"331e566694f98ddb28044768d9bfaee32a0b8fef9cb5031ac813cf1c7afa1e1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:721-2272 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:1521-2669 | app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt:884-1088 | app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt:1334-1699 | app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:160-942 | app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkHistoryScreen.kt:66-294 | app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:1248-1513 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"289242eb91b4af7b09ab61cfba1406bf8c327f7e9fc5e7f57b72181caf3ccb33"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatServerSheet.kt:45-100 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chatlist/NewChatSheet.kt:82-306 | app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/PrepareCachesSheet.kt:67-296 | app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/ServerDetailSheet.kt:92-288 | app/src/main/java/com/example/llamadroid/ui/easy/EasyChatOptionsSheet.kt:87-281 | app/src/main/java/com/example/llamadroid/ui/quicksetup/QuickSetupSheet.kt:31-59 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatServerSheet.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78e9ac943a1f08625f3d6756c584df19df39af1db58794325b8b73cc13028b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:875-2450 | app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:3471-3672 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:61-221 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:267-515 | app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt:319-530 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7d5638f0266a1a55661d04710193e168de17440818fbb85de9a73af4165c6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:72-98 | app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:114-139 | app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:156-196 | app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:259-285 | app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:295-321 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c1be4911cdca0f0937fd7116c25c5d30c7973f025e2a48dcf5b5241c41abb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): app/src/main/java/com/example/llamadroid/data/model/LocalModelImports.kt:153-165 | app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt:1938-1950 | app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:1114-1126 | app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt:826-838 \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":"app/src/main/java/com/example/llamadroid/data/model/LocalModelImports.kt"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"5900e57b5fe10c947ab53c4943c0c545977c7333432135a79edb5731727d0048"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:1526-1569 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:1689-1698 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:1898-1937 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:1951-1991 \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":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":1526}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba68cdf4391bae55543a7d8d80de5e0768f367e0a69b4901a4f5e1351890eb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:97-636 | app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt:69-1038 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:98-1493 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatScreenSupport.kt:98-118 \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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a63f6b0adbf1b456985849b8a6cfdb65d4f59a65c3421260616d49b3320c581"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): app/src/main/java/com/example/llamadroid/ui/agent/AgentNewProjectDialog.kt:33-137 | app/src/main/java/com/example/llamadroid/ui/agent/AgentPlanEditorDialog.kt:39-84 | app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:1571-1602 | app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:1842-1915 \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":"app/src/main/java/com/example/llamadroid/ui/agent/AgentNewProjectDialog.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2333c500ae80414f9b647e4eacc7e916f5fad87701c0843536e2b8080e732e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): app/src/main/java/com/example/llamadroid/ui/agent/AgentSkillManager.kt:72-413 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:721-2272 | app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:122-612 | app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:226-953 \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":"app/src/main/java/com/example/llamadroid/ui/agent/AgentSkillManager.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"6916a6868c15364b3b2040e2e5e590fcdfbfa58fe5f4a9556b15f2d4dddd0525"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt:69-1038 | app/src/main/java/com/example/llamadroid/ui/ai/VideoSumupScreen.kt:72-971 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5287-5334 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6952-7527 \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":"app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"3803fe351f175948013d6da8c0ad8ab433e1145e0798d6fc20f8610128056691"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:144-4518 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:185-697 | app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:195-1564 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5903-6770 \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":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f725338deecf7758009b8fb27c4bedd0f219dd1681e45c4125bf53e5834d9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4087-4521 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4797-5219 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5903-6770 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6952-7527 \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":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":4087}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e8e8c6e448935633cbc344218ba52d57364b9e04b39df5482f1ceff281eb05"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5287-5334 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5556-5608 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5903-6770 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6952-7527 \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":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":5287}}}],"partialFingerprints":{"codehealthFindingId/v1":"d360dcadc63536faa0d6e5cc5bf66e4bf0380b061a4371f068a7b80a61eca60d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:1125-1156 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:2288-2324 | app/src/main/java/com/example/llamadroid/ui/settings/ChatKvCacheStorageCard.kt:32-160 | app/src/main/java/com/example/llamadroid/ui/settings/SpeculativeRunHistoryCard.kt:48-123 \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":"app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt"},"region":{"startLine":1125}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f3e91046d7a1eef88e00230d016bcb283e023765dd12a647faba3131886ecf"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt:538-664 | app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt:671-738 | app/src/main/java/com/example/llamadroid/ui/models/WhisperVadModelsSection.kt:346-441 | app/src/main/java/com/example/llamadroid/ui/models/WhisperVadModelsSection.kt:450-508 \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":"app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82d850071cec31dd2e5f9555beb68b230995ca28ac0d57184175703bc93d60a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt:57-273 | app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:104-1992 | app/src/main/java/com/example/llamadroid/ui/settings/VideoUpscalerSettingsScreen.kt:48-175 | app/src/main/java/com/example/llamadroid/ui/settings/WhisperSettingsScreen.kt:60-381 \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":"app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"42bbbb29e2a729336945d4171aab3993b484e906fbfd2aadd86084751eeeadec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (121 corresponding lines): app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt:1177-1297 | app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt:1305-1425 \u2014 These two members are one piece of code written twice and then edited apart: 121 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d448f070e1f925d109926a824678d13d3c10a18096ee3c5a399f747211377b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (142 corresponding lines): app/src/main/java/com/example/llamadroid/ui/settings/TitleGenerationSettingsCard.kt:51-192 | app/src/main/java/com/example/llamadroid/ui/settings/VisionHelperSettingsCard.kt:44-195 \u2014 These two members are one piece of code written twice and then edited apart: 142 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/TitleGenerationSettingsCard.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d392888a6c40d3c439722386189391723cec9868c447d5dc34869f3c2ee38c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (145 corresponding lines): app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt:847-1010 | app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt:1018-1162 \u2014 These two members are one piece of code written twice and then edited apart: 145 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"1beec7f8fa382d8a738d5d5e8013baf1d473ffaa9b6005117314b74e3248c137"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 86\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:427-521 | app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:527-618 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:175-260 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 86 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or 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":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"48518222e591caae6394d6bd4e91531455ec5143ba889aa707cc48a3383b286e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (99 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:580-682 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:5595-5693 \u2014 These two members are one piece of code written twice and then edited apart: 99 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1e4a4f25be35a6075d6bf4b3ef4ac88f7a4c8fc7d65e9acfc6f64b30721e04"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (84 corresponding lines): app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:2466-2549 | app/src/main/java/com/example/llamadroid/ui/library/AllMediaGalleryScreen.kt:415-504 \u2014 These two members are one piece of code written twice and then edited apart: 84 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":2466}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d1ec597d45ab5973ee62666816bfb58a80cc6587986d1d5aab40a1c46255c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): app/src/main/java/com/example/llamadroid/service/RemoteMasterServer.kt:334-387 | app/src/main/java/com/example/llamadroid/service/RemoteMasterServer.kt:392-450 \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":"app/src/main/java/com/example/llamadroid/service/RemoteMasterServer.kt"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"4510b109e00dce6192d5118c5e052b26621ccc7c10f751315fbf9fffb773eb2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (87 corresponding lines): app/src/main/java/com/example/llamadroid/data/proot/AgentProotEnvironment.kt:239-325 | app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeEnvironment.kt:317-404 \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":"app/src/main/java/com/example/llamadroid/data/proot/AgentProotEnvironment.kt"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"440e06b8674bc4de8ee63ae6ae9771f623e1c7f10e46501b0abe5e04ce7551fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (67 corresponding lines): app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:396-462 | app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt:247-326 \u2014 These two members are one piece of code written twice and then edited apart: 67 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"f611289dc443e4cb3b4a65f4c1e6eb9037b8f75eea5da21eae99ca4ee46020f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (94 corresponding lines): app/src/main/java/com/example/llamadroid/util/DynamicFeatureManager.kt:263-357 | app/src/main/java/com/example/llamadroid/util/DynamicFeatureManager.kt:365-458 \u2014 These two members are one piece of code written twice and then edited apart: 94 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/DynamicFeatureManager.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"542a90e99d9d5122ad1d38756ef36477091e20779a992032ce8cb7a6ed325551"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:2956-2985 | wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:2993-3018 \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":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":2956}}}],"partialFingerprints":{"codehealthFindingId/v1":"d07c5ed06e0f21929ec2ef11413f6ecdce49a51cb1293efc2ced053119b6b3de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (73 corresponding lines): app/src/main/java/com/example/llamadroid/util/AssetPackManagerUtil.kt:225-297 | app/src/main/java/com/example/llamadroid/util/AssetPackManagerUtil.kt:302-389 \u2014 These two members are one piece of code written twice and then edited apart: 73 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/AssetPackManagerUtil.kt"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"4690af281472095eb18f7dd5e85282fd3a4633265c97f08e8c1040dbc661394c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessCommandHistoryController.kt:141-203 | app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessCommandHistoryController.kt:205-261 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessCommandHistoryController.kt"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"80de94463a0042646821a9270c5165d571ab6e49cf66576c43ab325f81f777ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (69 corresponding lines): app/src/main/java/com/example/llamadroid/service/DatasetBackendSupport.kt:67-135 | app/src/main/java/com/example/llamadroid/service/DatasetBackendSupport.kt:156-228 \u2014 These two members are one piece of code written twice and then edited apart: 69 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DatasetBackendSupport.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4fa99f8deadb285c13f6d9a2bfc179c0697660588cd10f23b2b37929ce79f37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (72 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:4598-4669 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:2916-2995 \u2014 These two members are one piece of code written twice and then edited apart: 72 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":4598}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8e6ea86875befe0bac4deba3f95a20e25172a6b30361f57881a86a8ad4b3e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (68 corresponding lines): app/src/main/java/com/example/llamadroid/ui/settings/WelcomeScreen.kt:246-313 | app/src/main/java/com/example/llamadroid/ui/settings/WelcomeScreen.kt:319-408 \u2014 These two members are one piece of code written twice and then edited apart: 68 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/WelcomeScreen.kt"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f6fc542616a06359972e716bc3c5298ad5ceb38ae5b89c954ecd5c9e81aa42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (55 corresponding lines): app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt:1293-1347 | app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt:1421-1488 \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":"app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"058104ce570eda8e64bf4ebcaf8e1d4fbd8ec7429de1a755145feb73a43cae31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (72 corresponding lines): app/src/main/java/com/example/llamadroid/service/SSHService.kt:615-687 | app/src/main/java/com/example/llamadroid/service/SSHService.kt:698-769 \u2014 These two members are one piece of code written twice and then edited apart: 72 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SSHService.kt"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"897fb3ae97c5fa40ca345f26772cf40c742cd3fa29be15919ca6c2c606bd22df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (68 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/ArcadeMemoryGame.kt:701-775 | app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt:1355-1422 \u2014 These two members are one piece of code written twice and then edited apart: 68 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/ArcadeMemoryGame.kt"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"0308a62f185a742bffac49811c7872cff6088dcf23d308dbf1f93f2dbd62bda0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (63 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:5739-5801 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:5808-5877 \u2014 These two members are one piece of code written twice and then edited apart: 63 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":5739}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aefd46c8000e03703ca29a745899970f08b08f80a6b2c0a2883f981543bb18a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (64 corresponding lines): app/src/main/java/com/example/llamadroid/service/AdventureForegroundService.kt:206-269 | app/src/main/java/com/example/llamadroid/service/AdventureForegroundService.kt:271-335 \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":"app/src/main/java/com/example/llamadroid/service/AdventureForegroundService.kt"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffdd12a017f07cab34f104359e63a869cc2b682a11a78be9e3d40310081047f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): app/src/main/java/com/example/llamadroid/service/SdRuntimeSupport.kt:235-282 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1285-1334 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdRuntimeSupport.kt"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"c021510615bb18d185a95531a0c48c89bc83aad75e8a9e5f89812b882843d099"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): app/src/main/java/com/example/llamadroid/audio/AudioStorage.kt:89-144 | app/src/main/java/com/example/llamadroid/audio/AudioWavSupport.kt:144-195 \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":"app/src/main/java/com/example/llamadroid/audio/AudioStorage.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f13ac433f1df79ed444ebcced4d9604e875e5e012945294405a5c582b55641"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (55 corresponding lines): app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:3585-3639 | app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskRunner.kt:368-424 \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":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":3585}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3ea682ce9fffd1dcce92272081051d92c51db9b083c71bcd8ecbd0043d0fbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt:2456-2487 | app/src/main/java/com/example/llamadroid/service/chat/ThinkingTags.kt:10-41 \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":"app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt"},"region":{"startLine":2456}}}],"partialFingerprints":{"codehealthFindingId/v1":"850e50ab52babbfbbe1996cf9e82057db5e18794a6372878039b0692f67dc657"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateArena.kt:304-349 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateArena.kt:385-440 \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":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateArena.kt"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee0c568111b675fcf4609770211cf47a087a8159ee58e38c4790640b7ad3bc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): app/src/main/java/com/example/llamadroid/tama/adventure/AdventureService.kt:572-616 | app/src/main/java/com/example/llamadroid/tama/adventure/AdventureService.kt:623-676 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/adventure/AdventureService.kt"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"148ddd4af45b3233adc7c5cda594f16add617555e907cf7a42aff2e5bdad22f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 38\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:570-607 | app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt:356-397 | app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:4128-4174 | app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt:1079-1121 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 38 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41666e83682034c05a042daa2e37bc8040cb6b825fc331d4c2ff9c457ca0f22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): app/src/main/java/com/example/llamadroid/service/PDFSummaryLogic.kt:103-148 | app/src/main/java/com/example/llamadroid/service/PDFSummaryLogic.kt:329-385 \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":"app/src/main/java/com/example/llamadroid/service/PDFSummaryLogic.kt"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ff6d9267c50d4bf395d82edd71c56cfcf56056ab527419c9e6a98f9347871c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentService.kt:20073-20131 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:20141-20191 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":20073}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b25730df8727930047454053e8859058c5dcc98a0faf583fe63831dab54eee5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1320-1364 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsControls.kt:168-214 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39caaa082c8468d7ee0b4a0904b12650a1d138c269ff1fdbc3975ff55dc259b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:1513-1556 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:1567-1619 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"115cbbc1d4fca2ab31a0d7e20ffc0e0e2416b55e7d51e308b20400b568ce6d15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): app/src/main/java/com/example/llamadroid/service/MangaPaintedOcrSupport.kt:301-329 | app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt:888-920 \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":"app/src/main/java/com/example/llamadroid/service/MangaPaintedOcrSupport.kt"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94d1305aea2f6cd6c80af78d38b46552d897028a4475c550248dbac13c3e6c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmMaterialUi.kt:152-193 | app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmTileOverlay.kt:220-263 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmMaterialUi.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b3460b6f20a398d7ab40fb10c82c7e3ff1e6460fa78d808db5973c5b88b713"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:4703-4754 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6828-6877 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":4703}}}],"partialFingerprints":{"codehealthFindingId/v1":"864fcfed5e9fbd42474d17d5a6d54e59f944f8400ab62e3c795587a5bd3e781a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:839-856 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:1353-1375 \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":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"5634fd3a436012ea43dfea2cc334c7c95bec24ce4bc4201f63a0fa45ef91ab72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:3984-4032 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:4398-4450 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":3984}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8494bd2739f6fc6195ff2b1b47af32008fe598a89236fe827e00518d69b40f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:2827-2839 | wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:2842-2858 \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":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":2827}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd05e855731ea13af6504cf12f8ccdb3ad04e4eb840e3beeee6d52f914cc18bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/InpaintMaskEditor.kt:466-491 | app/src/main/java/com/example/llamadroid/ui/ai/InpaintWorkspaceManager.kt:116-156 \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":"app/src/main/java/com/example/llamadroid/ui/ai/InpaintMaskEditor.kt"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12d15363e919081301eb4162e2935055dc9d998f1c6fd0dc2b5ba87ce2e7ecf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5785-5826 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:2333-2381 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":5785}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c3ac42886ece75dd8abcabf10653607939b29116ea72baf78795f9adafa97f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentService.kt:2609-2636 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:2638-2665 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":2609}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ffe6692f24f5771f95d310787494f42289eafb85ffefc23f037eb2882721b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:2679-2736 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:2154-2193 \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":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":2679}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb05a69eb08e3fa374be0ecaee2055ccc8dbdb4484ef8ce7b08beafcee89bc22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): app/src/main/java/com/example/llamadroid/service/NativeVideoRecognitionRuntime.kt:161-200 | app/src/main/java/com/example/llamadroid/service/NativeVideoRecognitionRuntime.kt:205-244 \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":"app/src/main/java/com/example/llamadroid/service/NativeVideoRecognitionRuntime.kt"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"54bff76e73dd03ed5bfc8a95fe568170437a8cda4b6f98562a3305c75baebe28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:1592-1622 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:1636-1667 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":1592}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b36c433a0e65e726002843a567775359b69983c38b213bc64b2f380fcb136d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): app/src/main/java/com/example/llamadroid/ui/components/DraftNumericTextFields.kt:41-80 | app/src/main/java/com/example/llamadroid/ui/components/DraftNumericTextFields.kt:158-201 \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":"app/src/main/java/com/example/llamadroid/ui/components/DraftNumericTextFields.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4dc30a26fece476a9deb81bc4fe463c72d26e1625720d1ef88f331ea22a21b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): app/src/main/java/com/example/llamadroid/service/bubble/ChatBubbleOverlayService.kt:282-318 | app/src/main/java/com/example/llamadroid/tama/shimeji/ShimejiOverlayService.kt:291-316 \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":"app/src/main/java/com/example/llamadroid/service/bubble/ChatBubbleOverlayService.kt"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa3d61726851f291fbb116b8953537e49084398a31023907e947b8a81f8cf63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): app/src/main/java/com/example/llamadroid/tama/game/TamaArtworkManager.kt:111-156 | app/src/main/java/com/example/llamadroid/tama/game/TamaArtworkManager.kt:172-211 \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":"app/src/main/java/com/example/llamadroid/tama/game/TamaArtworkManager.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf6322c8f4f34fc4a70fbc20d5c4c0936d8a88707a91f18fa3b2f28c446cdb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeInstallations.kt:685-724 | app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeInstallations.kt:781-826 \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":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeInstallations.kt"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"123d7de7f703b72f64112624441d320303a028f8aa8697263674ba50605a6849"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 35\u002B corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessRemoteProjectRunner.kt:473-507 | app/src/main/java/com/example/llamadroid/service/AgentLocalProjectRunner.kt:440-474 | app/src/main/java/com/example/llamadroid/service/AgentProotRunCoordinator.kt:261-297 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 35 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessRemoteProjectRunner.kt"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c8602f94fdac1d2bf10c9acc2691fd201aae333a158339b0cdd9d1999c272ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:2648-2678 | app/src/main/java/com/example/llamadroid/wear/WearCompanionBridgeManager.kt:1036-1065 \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":"app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt"},"region":{"startLine":2648}}}],"partialFingerprints":{"codehealthFindingId/v1":"56be784f79fb1be7664f3ac5ef626527b2dfc0d0c9124601720542a6bbd36b74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:2735-2756 | app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:2758-2777 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":2735}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2138e1ad579685cf17c007afaa82bd3c17d7f586690e02cd0a566c3bfc03df9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferDomains.kt:435-460 | app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferDomains.kt:527-548 \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":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferDomains.kt"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"a847842238759c04372afa2fd2c724e65717e29fcab7803b625a29e2075cbeac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:3696-3728 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:3980-4025 \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":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":3696}}}],"partialFingerprints":{"codehealthFindingId/v1":"5398b193ec663ed18ac7c7924ba9938da93f229af83633959d8bbeef0272ac31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:1627-1671 | app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:1680-1733 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt"},"region":{"startLine":1627}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e612453114929fca9b84b43cc119b04ce6355faf4c10b447b9bdf6cbddb37d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:1115-1157 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageMedia.kt:62-100 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"addd91f59dd71feae715890316ac8450558fad7c16d189e01fd290c373634524"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:306-348 | app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:379-420 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cdecdbcc5f02f00cf7c41fda887c571802660b16cd4f032659337b8d54edb42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 50\u002B corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:2619-2674 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:4587-4636 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:4645-4694 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 50 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or 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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":2619}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e1d6f280c303d611f48d3b51004d2ddddc7b6f1d617b57e28e63f0c51647c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:417-441 | app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:1962-1988 \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":"app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff14922e018277d71a9890af69301f88a4374d598dc06d433d78406d3bb51ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): app/src/main/java/com/example/llamadroid/ui/settings/StatsScreen.kt:292-302 | app/src/main/java/com/example/llamadroid/ui/settings/StatsScreen.kt:305-315 | app/src/main/java/com/example/llamadroid/ui/settings/StatsScreen.kt:342-351 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/StatsScreen.kt"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1213065fe2a925b8b55780f20ddf808a1c6736540bbc2700a10c4e705029af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): app/src/main/java/com/example/llamadroid/service/PDFService.kt:5343-5372 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:5431-5462 \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":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":5343}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0b849a588414bbfb7aff9ef9a22936c75e55ddf82280471292cd0b5574db85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/transfer/TamaPairedDevices.kt:206-231 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatDelegationSettingsSection.kt:331-355 \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":"app/src/main/java/com/example/llamadroid/tama/ui/transfer/TamaPairedDevices.kt"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee8209286537ce2b5835ada40b76029910866e56dae84c4be4ec29ece1206b80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): app/src/main/java/com/example/llamadroid/service/DeepResearchService.kt:449-480 | app/src/main/java/com/example/llamadroid/service/KnowledgeBaseIndexingService.kt:233-263 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DeepResearchService.kt"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"c629b2692693fe747792374a427967c2f2ede377fadaa3b7fd1a7177ba179f81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:4557-4585 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:4601-4625 \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":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":4557}}}],"partialFingerprints":{"codehealthFindingId/v1":"9864e3fda952e4473b5d01f8293a9d6ed9ec784ad9c9fc1a6da07d5d87831de2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessReferenceCatalogs.kt:20-37 | app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessReferenceCatalogs.kt:39-56 \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":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessReferenceCatalogs.kt"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dfade0f7ac9fb5d4f8677e8c99f5de3fc3172ab3b41ba9161a29f94196ccb72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt:1563-1587 | app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt:1772-1796 \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":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt"},"region":{"startLine":1563}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b54382ff2bb35c4e7b61c85fa774b56ee5c081858baf0382ecaacdb7d90cbf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaChatListScreen.kt:1442-1482 | app/src/main/java/com/example/llamadroid/ui/components/SdSchedulerPicker.kt:26-65 \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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaChatListScreen.kt"},"region":{"startLine":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"78034b23c9dd464a3d34d06af9b86b291a202bf2c03e92a43ff7aecbb5133303"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:2269-2290 | app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:2317-2338 \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":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":2269}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b00cd6e19415a3aefa85d1f795663ffaef91f55ec925d6097726867b194b68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt:340-367 | app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt:399-431 | app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt:436-461 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad83d678d9d3c7d0d30577a7e6c42c33c852fa6b529d966f85bda301ba341994"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:1274-1300 | app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:1310-1342 \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":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":1274}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac35a10db94f3d28813a42f511f543d7a76652efeb54465725710645b762ce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): app/src/main/java/com/example/llamadroid/ui/components/SharedSettingsComponents.kt:30-62 | app/src/main/java/com/example/llamadroid/ui/components/SharedSettingsComponents.kt:78-110 \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":"app/src/main/java/com/example/llamadroid/ui/components/SharedSettingsComponents.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"235b6866f26b51214a611718e1e966f00bd0ef39d7a93248cb319d89a3e718f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): app/src/main/java/com/example/llamadroid/service/NativeVideoRecognitionRuntime.kt:343-371 | app/src/main/java/com/example/llamadroid/service/NativeVideoRecognitionRuntime.kt:407-429 \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":"app/src/main/java/com/example/llamadroid/service/NativeVideoRecognitionRuntime.kt"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc666bcdf88b577d51f783a36450585cbb5605d7e87a1e7bbfc3f0b3e0b8c7e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): app/src/main/java/com/example/llamadroid/util/ProcessUtils.kt:25-65 | app/src/main/java/com/example/llamadroid/util/ProcessUtils.kt:75-115 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/ProcessUtils.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"69eb7e26b157ea5d75f98bf268128b0d2cdde9c078151dd1d08982b418c5281e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:1475-1490 | wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:1492-1514 \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":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":1475}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1722516d25f7d8b141def099285cf43442a329b3b9dcf49c384cba0472eac0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentService.kt:18223-18257 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:18263-18300 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":18223}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d3c4855f31340e99ee77a830d3e6b956d8d6950a3211f16927448edd42eae05"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessTurnDetailsPanel.kt:121-155 | app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessTurnDetailsPanel.kt:161-186 \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":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessTurnDetailsPanel.kt"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb03b658fb1fa9f6774c885acce86d9ade1f9791dc5e109cb57d70ac41c256eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 40\u002B corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1932-1973 | app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1981-2020 | app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:2029-2073 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 40 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":1932}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d9ae99b8502f7f4efe37031bb2f0a1a916cd99b0987a310540cdfbea0697f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:2292-2315 | app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:2340-2367 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":2292}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d7797ba88362e0dc2c712a750029fc2ea4a7ac8d2ac7277c55d82e48121a3f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:688-720 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:5699-5732 \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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0588d388e6ce0080c5653a40d4e00cdcbe487a44889e8b5405e8cb99dddc7e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentService.kt:3706-3736 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:3738-3768 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":3706}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17e84ac27084671ac04d0fc9e88beca5e57aa5946078a3cbfd3cacb79423a39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/llama/chatlist/NewChatSheet.kt:316-344 | app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/ServerPickerSheet.kt:156-189 \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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chatlist/NewChatSheet.kt"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"075c323032dae0cb33d19b32508dc57d56d7f1930baed12f97ca2f0c863f0aad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt:621-650 | app/src/main/java/com/example/llamadroid/service/VideoRecognitionWhisperTranscriber.kt:179-204 \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":"app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"49188de1f98cd3641d9bb8c9b685f4dad640e44bf6f9f01f824f6dc6830d09c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): app/src/main/java/com/example/llamadroid/service/ModelShareService.kt:287-321 | app/src/main/java/com/example/llamadroid/service/ZimShareService.kt:270-303 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ModelShareService.kt"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1cfd2404d05a22977d12a323b0fdfe27a23fd9e443c48ac609e78e17847453"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:2171-2195 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:2199-2221 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:2242-2260 \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":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":2171}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82feb038aac2eb32e4d46da9dfde820318b91a92f41c47aac5ea7bd823a498d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentService.kt:18850-18889 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:18962-18992 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":18850}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3f5a8fe6c15e86dee1825a4f757831832574c68f720e4e0406691d419a18000"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): app/src/main/java/com/example/llamadroid/service/PDFService.kt:1768-1789 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:4977-4996 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":1768}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5fa7076a9f274534783d2727cdc1eaee4a6606ecb8481c9d25cf195f2b8c1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt:137-168 | app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt:180-213 \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":"app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c492dc9b5f50e7e2e0ba1b36561b5f7fe2835f0ab0bd040385e79297bad0795"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 30\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentService.kt:494-532 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:18307-18337 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:18344-18373 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 30 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca9257ce2315a3ae0840d0c6a6874f574807c069b87e07309dd0b53087e5d71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 23\u002B corresponding lines): wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:316-344 | wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:347-375 | wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:382-410 | wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:413-435 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a84f4f7b7a53a3c043aa7749516ab73fb848996fadcf3dd53874a143287cbde"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentRuntimeSupport.kt:2577-2598 | app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:3863-3889 \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":"app/src/main/java/com/example/llamadroid/service/AgentRuntimeSupport.kt"},"region":{"startLine":2577}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7b521775a817c9d7f4538ee23e463cbeee902c2e86df446f3fa9db993794cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): app/src/main/java/com/example/llamadroid/service/GenerationQueueService.kt:293-311 | app/src/main/java/com/example/llamadroid/service/GenerationQueueService.kt:314-332 \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":"app/src/main/java/com/example/llamadroid/service/GenerationQueueService.kt"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86293d8e702f7a8dab9a0deecbc6341ace77b52af8d6520c1081eca77c7c79c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:1269-1294 | app/src/main/java/com/example/llamadroid/tama/game/TamaTransferBundle.kt:925-951 \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":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":1269}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f2453c458690f3379ade1b2947ada249e4468fff12ef0b8e246282d151d521"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/AdventureSettingsDialog.kt:373-414 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureSettingsDialog.kt:422-453 \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":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureSettingsDialog.kt"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4ea87d0bfb23afebc372333d34e9380811bff9990708c3a5fd0abe87478e02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessSettingsNavigation.kt:529-565 | app/src/main/java/com/example/llamadroid/ui/search/GlobalSearchScreen.kt:331-362 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessSettingsNavigation.kt"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6743cdc71f31e6d46624e5fc00ca0c006b4ccd298525fcfaf8dbef5a81d6bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:1080-1108 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatComposer.kt:38-66 \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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa2fe022c00d0982cc1067d92f216e5c680d08eccc22f43978ade257adc1718"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:424-450 | app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:629-662 | app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:1443-1469 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ddc6859531c668e1e040e5386d80c9036520fbdbedbaff196a80a20a6249af1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactRecognizer.kt:760-773 | app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactRecognizer.kt:822-838 \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":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactRecognizer.kt"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"367b884a75f7be27979649f27d4c9312f08ec571409623458814039421f3d942"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): app/src/main/java/com/example/llamadroid/tama/adventure/AdventureService.kt:831-871 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureScreen.kt:699-735 \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":"app/src/main/java/com/example/llamadroid/tama/adventure/AdventureService.kt"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"645a0951f1925831a913146e1b31dedeb2ee9e732e4d76cb691493ecf5e3f066"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): app/src/main/java/com/example/llamadroid/service/ProcessController.kt:381-416 | app/src/main/java/com/example/llamadroid/service/SdDistributedRuntime.kt:416-444 \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":"app/src/main/java/com/example/llamadroid/service/ProcessController.kt"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce01c0f7227745fdc901ebd5172bc4d59d1a096ac3343e3f07b5d599659a89e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentService.kt:19133-19154 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:19159-19184 \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":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":19133}}}],"partialFingerprints":{"codehealthFindingId/v1":"72981e442ea2ec19a6bc54dd59844a672545db5f177b84f97e531304c5c9c9fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): app/src/main/java/com/example/llamadroid/service/filestation/volume/SafVolume.kt:216-235 | app/src/main/java/com/example/llamadroid/service/filestation/volume/SafVolume.kt:237-252 \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":"app/src/main/java/com/example/llamadroid/service/filestation/volume/SafVolume.kt"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"019325f5ca292a9fe80d37d0cb2e5aea457c0b0ad234fba7808cb7f111b72073"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/com/example/llamadroid/data/proot/AgentProotEnvironment.kt:348-368 | app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeEnvironment.kt:436-447 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/proot/AgentProotEnvironment.kt"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7a8e1f1e99f35b3e69edf9dc3714dcfc36980cd5f06b8393cbabfbaae04442"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentWebSearchSupport.kt:190-205 | app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:3908-3925 \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":"app/src/main/java/com/example/llamadroid/service/AgentWebSearchSupport.kt"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"c329ed6ed8f0a668cfcde083e4168f7d98a407020a2af91b27409f2dcebf2b58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/TamaChatServerSettings.kt:712-756 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:4111-4137 \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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatServerSettings.kt"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5569978ac4aaf604d4444f16b1936a617c2c3473fa957ec87494deedb1f498"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessTransferMetadata.kt:659-673 | app/src/main/java/com/example/llamadroid/harness/HarnessTransferMetadata.kt:680-696 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessTransferMetadata.kt"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"f355e79714beac3b83c9d2d99272658d1a84e2890743314d1deba3e5695b6cbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/com/example/llamadroid/ui/models/BundleItemBuilder.kt:568-579 | app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryScreen.kt:1946-1961 \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":"app/src/main/java/com/example/llamadroid/ui/models/BundleItemBuilder.kt"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"4295c007a372c342451fe600f60e4ac4f2f394e30c8a3ae79549d6fd0e1ef88e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): app/src/main/java/com/example/llamadroid/service/delegation/DelegationStatusFormatter.kt:23-36 | app/src/main/java/com/example/llamadroid/ui/ai/llama/delegation/DelegationViewerSupport.kt:109-127 \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":"app/src/main/java/com/example/llamadroid/service/delegation/DelegationStatusFormatter.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"15721493588202768bde715fcc7fd047889210e78817d58dd0dc86df6a07e21c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 29\u002B corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatServerChangeDialogs.kt:73-107 | app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/LowRamStartDialog.kt:22-50 | app/src/main/java/com/example/llamadroid/ui/models/ModelClassificationOverrideUi.kt:110-141 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatServerChangeDialogs.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c283319a8828d048ef4f880010f9cf2422b2f095529d520ebdb26fe8e26e54"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:724-745 | app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:751-769 \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":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"578c699d91c8bec303b668a60eb0dd35cfc4a2fbb76f408845fb46c0cbd58867"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): app/src/main/java/com/example/llamadroid/service/SdIpAdapterSupport.kt:190-216 | app/src/main/java/com/example/llamadroid/service/WhisperVadSupport.kt:222-243 \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":"app/src/main/java/com/example/llamadroid/service/SdIpAdapterSupport.kt"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb7ed517288909fbc5357b3ceb33a11efeeadba9996df3b43c9cf56d70a41d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferSessionCodec.kt:331-349 | app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferSessionCodec.kt:362-379 \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":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferSessionCodec.kt"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"a477434a978fa6077c2389432da00fba604d4950c7b192ae7c0662f7e5a45450"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:631-654 | app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt:456-481 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b706b42a57c64df75c4a2358db75b2df59b86862da6f1ee61523a42d8532a2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/src/main/java/com/example/llamadroid/ui/components/SampledImageBitmap.kt:25-39 | app/src/main/java/com/example/llamadroid/ui/components/SampledImageBitmap.kt:44-58 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/SampledImageBitmap.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"322c7ebd5104c0d428e9cdc6cebe26ab21320c5ffd50ac00728e5f0e249ae5cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): app/src/main/java/com/example/llamadroid/tama/game/FarmRepository.kt:587-601 | app/src/main/java/com/example/llamadroid/tama/game/FarmRepository.kt:606-619 \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":"app/src/main/java/com/example/llamadroid/tama/game/FarmRepository.kt"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d60f1432f67f67e2950bd4eb28ac918178ec616dc13ef48267a44391ac9651"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/VideoInterpolationScreen.kt:1086-1102 | app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt:844-864 \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":"app/src/main/java/com/example/llamadroid/ui/ai/VideoInterpolationScreen.kt"},"region":{"startLine":1086}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc71422f55c7fc5c28c10fe40e4a7e5d3dc2b3fe3a39ce98df84b9f2a000e31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:351-365 | app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:469-485 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"a55afa149eddd615b11ccfd4beb9fe6596ad2acbdeae9c46f8b34757e80a85ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferConfiguration.kt:256-271 | app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferDomains.kt:556-572 \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":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferConfiguration.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b4fd9f9aced40ffe86a30c3a0dcfa0ed9cbd04da04d7ec652f3ef45f9c5ba0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/src/main/java/com/example/llamadroid/ui/agent/AgentPreviewDownloadSupport.kt:499-513 | app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt:87-101 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentPreviewDownloadSupport.kt"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace41b6b548012706d2dd22d4e654cbf62f3a9265042fdc10d8fd5f34b722766"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): app/src/main/java/com/example/llamadroid/ui/audio/AudioWorkspaceScreen.kt:1357-1375 | app/src/main/java/com/example/llamadroid/ui/audio/library/AudioLibraryScreen.kt:964-977 \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":"app/src/main/java/com/example/llamadroid/ui/audio/AudioWorkspaceScreen.kt"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcfe5def198846dba6391ae2c5b5b331d6e799a0c01dc140706ccb0426231da7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:2208-2217 | wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:2773-2781 \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":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":2208}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ec6783c832531f5bba5f821fbf315ef88742c4ae15f66f74622b5d9fa759d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/src/main/java/com/example/llamadroid/audio/music/StableAudio3LoraMath.kt:70-84 | app/src/main/java/com/example/llamadroid/audio/music/StableAudio3LoraMath.kt:93-107 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/music/StableAudio3LoraMath.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0f5aff4abadc1aec31a44461ffbe14a66b6ce773e087ce46ea88baa23e0a52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentControlPromptSupport.kt:748-769 | app/src/main/java/com/example/llamadroid/service/AgentControlPromptSupport.kt:973-994 \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":"app/src/main/java/com/example/llamadroid/service/AgentControlPromptSupport.kt"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"776c43c7b3d123c927c60d87f6f77df642eb15cb055dac3d98954893dc6301fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:1413-1449 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1156-1185 \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":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":1413}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2299eb48bf745dfd93c7bfacaed49efb5045c84400b02be820935191ea361cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:3622-3639 | app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:3543-3562 \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":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":3622}}}],"partialFingerprints":{"codehealthFindingId/v1":"473b46d0e69ff669bd7d247b1bc4196714397c41d50952d0f9903856a6023c6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:1217-1235 | app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:1241-1258 \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":"app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt"},"region":{"startLine":1217}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4f8c2de66cc033322f534359a2796409bcdcf706667f773189c1a966f12f2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): app/src/main/java/com/example/llamadroid/service/PDFService.kt:5782-5807 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:7560-7576 \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":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":5782}}}],"partialFingerprints":{"codehealthFindingId/v1":"33b77976edc29c68f5b151c43b4083f77d60f5c03b810f7d5f05f0e53043ef4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 18\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:1075-1092 | app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:1126-1146 | app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:1148-1165 | app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:1167-1184 | app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:1471-1489 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt"},"region":{"startLine":1075}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b79b61e055b3255f2c5e87531185bc0cb291c4a1454127a9b70a9bfcdeb834"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/ArcadeMemoryGame.kt:609-629 | app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt:1318-1347 \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":"app/src/main/java/com/example/llamadroid/tama/ui/ArcadeMemoryGame.kt"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f49633c7fa2578ecd420303303e0616f2813dac43055e3f11ad606100a4550"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeTransfer.kt:929-950 | app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeTransfer.kt:957-973 \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":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeTransfer.kt"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec96e7b8d75772e5d73d738d57f7452fd639563300142f08bb94b1bdf877464"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 34\u002B corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:5018-5052 | app/src/main/java/com/example/llamadroid/ui/ai/OnnxTtsScreen.kt:509-542 | app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:1952-1986 | app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:1995-2029 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:800-834 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":5018}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f7d2a9d5b91d11ade8fb8f28227df559ac466f31172774b08103bcb3c9d613"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:3616-3631 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:3634-3649 \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":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":3616}}}],"partialFingerprints":{"codehealthFindingId/v1":"640c5d3c90715ccc3d93a26e22a136438c6d81f355759e2257e9b693f322ea25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/LiveTranslatorScreen.kt:1274-1297 | app/src/main/java/com/example/llamadroid/ui/ai/SdBackendPlacementControls.kt:48-65 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5739-5763 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/LiveTranslatorScreen.kt"},"region":{"startLine":1274}}}],"partialFingerprints":{"codehealthFindingId/v1":"e65fee098a3f4df6289c557af2caf7d0e37e61064963acd04e045042a4bfcf11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryViewModel.kt:285-303 | app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryViewModel.kt:321-339 \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":"app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryViewModel.kt"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd42d55714e02c109dac950d4e7b2c1e7b55cd4c9a41ec9f8525bea2cada4d88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/src/main/java/com/example/llamadroid/data/runtime/AgentRuntimeProfileSupport.kt:117-133 | app/src/main/java/com/example/llamadroid/data/runtime/AgentRuntimeProfileSupport.kt:174-188 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/runtime/AgentRuntimeProfileSupport.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d129f66d12d460457d2918a517c73bb8a932135fc2a242272fd77f2486fbca6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): app/src/main/java/com/example/llamadroid/service/MangaTranslationForegroundService.kt:46-74 | app/src/main/java/com/example/llamadroid/service/MediaTranslationForegroundService.kt:49-77 \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":"app/src/main/java/com/example/llamadroid/service/MangaTranslationForegroundService.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ceb4f2e28a7550c3bedd1048800659c1c185bf92e08b75f5595b5b4ce6d67e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/SdRuntimeSupport.kt:53-73 | app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:775-795 | app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:1008-1028 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdRuntimeSupport.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ed975fc0173e1d22b962eb92dfd2fe178b0df2225057bcd031e65c6783e9e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:1254-1271 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1079-1096 \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":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"b61aa5eb4282297a5fd9b9844edf5986dcaa2c2eb5160cd79baed572aed05644"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:2147-2164 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:2225-2238 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:2264-2275 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":2147}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ca2b307066579a2c50a1c2f28ba91f04a66635213bc91a48aa4434543fba84"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 20\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/NativeLlamaAudioSupport.kt:269-296 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1264-1283 | app/src/main/java/com/example/llamadroid/service/VideoUpscalerService.kt:67-90 | app/src/main/java/com/example/llamadroid/service/WhisperService.kt:61-90 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeLlamaAudioSupport.kt"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2841db939cc83df03c70639d448aa588ba87b4a409cd06d6796421736a572df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessWorkspaceRepository.kt:253-272 | app/src/main/java/com/example/llamadroid/harness/HarnessWorkspaceRepository.kt:308-329 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessWorkspaceRepository.kt"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"92917bce3d811d0b2da41fba5ef3629820b6cdafb42ac9eee7e4c383bfc5d301"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:524-543 | app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:549-568 | app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt:334-354 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcdf0b1e42d38f93acbe670d29b7d4d16bcd3bb0964475f0e26fabeddcb184eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): app/src/main/java/com/example/llamadroid/tama/game/ClassicFarmPlots.kt:37-55 | app/src/main/java/com/example/llamadroid/tama/game/FarmSmartActions.kt:189-205 \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":"app/src/main/java/com/example/llamadroid/tama/game/ClassicFarmPlots.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"babb77a534250f948be44ffafe19bbb37601d09e2aaf0916c6184e1bf5b8173e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:3359-3369 | app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:2897-2906 \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":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":3359}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9a784663a06ad5b1e3f8b0d0d6de24a5db6b5d44e509cf6a2a2c53b21552a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:341-358 | app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:363-383 \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":"app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ab3a803055fcc3b1c2dc023d597b47551cffd6e0afcbd5faa540840123627a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:1562-1585 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1209-1240 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":1562}}}],"partialFingerprints":{"codehealthFindingId/v1":"1686204a6dede6b90e10b9e2d0a388ae611a2cb0adeb54061b030422cc1aa3c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6798-6810 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:4668-4683 \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":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":6798}}}],"partialFingerprints":{"codehealthFindingId/v1":"d410c06a0f8baedf25db4233d7a333f51fb6ab3369cb3fae6d0b976fd99e1377"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt:1048-1058 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:5106-5116 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:7291-7303 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"08868a79d07e6e65914065929e49ea5c2a5978af9587a3db87477c886c404d5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt:1988-2002 | app/src/main/java/com/example/llamadroid/sd/SdArtifactInspector.kt:1208-1226 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt"},"region":{"startLine":1988}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba8cc8d162f347ca960f54cea24352e9af5c84f09f3d113561c976ab9e84568"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentToolSchemaPolicy.kt:148-170 | app/src/main/java/com/example/llamadroid/service/AgentToolSchemaPolicy.kt:174-198 \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":"app/src/main/java/com/example/llamadroid/service/AgentToolSchemaPolicy.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a0ca988e2c4cd500523f55f0ffb399b75899b7244c6bbbc385d125e0e23596"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): app/src/main/java/com/example/llamadroid/wear/WearCompanionBridgeManager.kt:865-883 | app/src/main/java/com/example/llamadroid/wear/WearCompanionBridgeManager.kt:901-918 \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":"app/src/main/java/com/example/llamadroid/wear/WearCompanionBridgeManager.kt"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e8bdbf56e0ad82e2f53c21c6ccb3e553a0bde3341fd43b598ac012e3708367"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): app/src/main/java/com/example/llamadroid/data/db/AppDatabase.kt:263-289 | app/src/main/java/com/example/llamadroid/tama/db/TamaDatabase.kt:58-83 \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":"app/src/main/java/com/example/llamadroid/data/db/AppDatabase.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"44866b698d7a3a9c539c779dabb91557847891e91398c6ace9d8eba56e8b0032"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsSections.kt:130-158 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsSections.kt:849-872 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsSections.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbaaaee99cd3f0385c5228cf626353f0d67231fb325aa90e5394f34a60f6fedf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:5413-5453 | app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:5455-5499 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt"},"region":{"startLine":5413}}}],"partialFingerprints":{"codehealthFindingId/v1":"054c41a8fbb04ac0eef69c33ba4feaa686f88d23f527b7c5ac5062c8e65820a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferCoordinator.kt:194-209 | app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferCoordinator.kt:228-242 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferCoordinator.kt"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"382e474ed40be0826e8bb8c29fdc82d8fc8900d8424a0720599f2a2b2c239b20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageMedia.kt:632-660 | app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:2816-2830 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageMedia.kt"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36fa23abda5969ae4a5ddc026b0553615edd2ca7cc0bc8213baa402dade1b0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): app/src/main/java/com/example/llamadroid/ui/components/SharedModelComponents.kt:150-173 | app/src/main/java/com/example/llamadroid/ui/logs/LogsScreen.kt:663-688 | app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:2055-2086 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/SharedModelComponents.kt"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f29b5d523edfc4b5b98ce30120c45db66eef5300f40e303a04fef9696270d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/src/main/java/com/example/llamadroid/service/DistributedLlamaArguments.kt:9-23 | app/src/main/java/com/example/llamadroid/service/DistributedLlamaArguments.kt:25-42 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DistributedLlamaArguments.kt"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bdfb9e685886b7b5991894b85ff19d936854c7bdb03a67adc3f2ed58d4cf1bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessFormatting.kt:61-73 | app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessFormatting.kt:75-88 \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":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessFormatting.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce03a8a8e823a448a55eb98433b05f13e3a591796ffbb6db7862c7471711e623"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): app/src/main/java/com/example/llamadroid/service/HarnessRecoveryTerminalSessionManager.kt:399-420 | app/src/main/java/com/example/llamadroid/service/HarnessRecoveryTerminalSessionManager.kt:427-447 \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":"app/src/main/java/com/example/llamadroid/service/HarnessRecoveryTerminalSessionManager.kt"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e47d0b9fd48bc8106cc52b854db90a14a8d90980d3f5dfb39406a1015809feb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): app/src/main/java/com/example/llamadroid/service/LiveTranslatorLiteRtEngineManager.kt:46-63 | app/src/main/java/com/example/llamadroid/service/LiveTranslatorLiteRtEngineManager.kt:71-91 \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":"app/src/main/java/com/example/llamadroid/service/LiveTranslatorLiteRtEngineManager.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0b6a1a2a14a110f76a87e84aef38a43eb8b4484568ff33e7703be60f3220c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): app/src/main/java/com/example/llamadroid/ui/components/VideoAdditionalOptionsEditor.kt:328-349 | app/src/main/java/com/example/llamadroid/ui/components/VideoRuntimeOptionsEditor.kt:1058-1075 \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":"app/src/main/java/com/example/llamadroid/ui/components/VideoAdditionalOptionsEditor.kt"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb02aedaa6641eed8763a7a6ce52584297ec0367759b366d30d789f426d8b55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:509-521 | app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt:325-337 \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":"app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"498d16c47a8ef43a68820b0f2bfddfa3650648600550eda4270c904b5bb65221"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkHistoryScreen.kt:638-648 | app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkHistoryScreen.kt:791-800 \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":"app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkHistoryScreen.kt"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"f220409f5127565775c543c78ec6d742df25aa978d3ed2546f31486afa89be32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 12\u002B corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:3899-3914 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:3916-3932 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:2732-2743 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:2745-2757 | app/src/main/java/com/example/llamadroid/ui/library/AllMediaGalleryScreen.kt:688-704 | app/src/main/java/com/example/llamadroid/ui/library/AllMediaGalleryScreen.kt:706-723 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":3899}}}],"partialFingerprints":{"codehealthFindingId/v1":"d448748403dc933ed6d74d2fa366cc761e693b535c48c18a05d8d9bdeacfaf96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/src/main/java/com/example/llamadroid/ui/servers/ServersHubScreen.kt:142-161 | app/src/main/java/com/example/llamadroid/ui/servers/ServersHubScreen.kt:164-178 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/servers/ServersHubScreen.kt"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"b914a1ee597e8c3c7c0cd8d8bccec9c09398e71b4c0e5d86f8699944ce202a88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): wear/src/main/java/com/example/llamadroid/wear/AdtTileActionActivities.kt:123-142 | wear/src/main/java/com/example/llamadroid/wear/AdtTileActionActivities.kt:186-204 \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":"wear/src/main/java/com/example/llamadroid/wear/AdtTileActionActivities.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"8283419ea9c86a97b4b077dbadc3feb87e264a0ae31fa3d80dd26c14d88c4757"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/service/delegation/DelegateHarnessSupport.kt:44-52 | app/src/main/java/com/example/llamadroid/service/delegation/DelegationFileBridge.kt:71-79 \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":"app/src/main/java/com/example/llamadroid/service/delegation/DelegateHarnessSupport.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5379a8b8384edcd36a9999a0987369dd91087891cdb2347a67447126568dc32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:2775-2788 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:2796-2809 \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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":2775}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5568f2766ce95a0118449f1c47aa9fb3283df8293837fbdbbbc91eb32c1b99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/SdIpAdapterControls.kt:395-407 | app/src/main/java/com/example/llamadroid/widget/NoteDisplayWidget.kt:543-557 \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":"app/src/main/java/com/example/llamadroid/ui/ai/SdIpAdapterControls.kt"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"a392a6538cc32f4a9ef53b0b622edf01e6c58a7a145f0136e10dbf87440c8c49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt:839-849 | app/src/main/java/com/example/llamadroid/ui/models/ModelClassificationOverrideUi.kt:156-169 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfda2010513e1a661daa07d7d0909c29879d1a730ea4ee15622a2e5c9e765de4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt:656-667 | app/src/main/java/com/example/llamadroid/service/VideoRecognitionWhisperTranscriber.kt:210-221 \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":"app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"68dd09f442c309323bd6eefb4161e7590738d087d2bc80744c9b3cb75ca48841"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt:1293-1311 | app/src/main/java/com/example/llamadroid/tama/ui/TamaPetSprite.kt:32-46 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"01354c7e544c2e7a1dd7512e82bcb6305e8aac71465977f2f59f5f4325c2aa88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt:976-995 | app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferSessionCodec.kt:1021-1039 \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":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e760e7d3196604ce53ca3458a0ea7dfa510c89b3d36b9c67739bc8b69137658"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): app/src/main/java/com/example/llamadroid/service/MangaPaintedOcrSupport.kt:717-726 | app/src/main/java/com/example/llamadroid/service/MangaPaintedOcrSupport.kt:728-735 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MangaPaintedOcrSupport.kt"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"739d977c344b7d1b6912958925302ddf8ac41fa35e28c437bf65cfa14f044a43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): app/src/main/java/com/example/llamadroid/data/proot/AgentProotEnvironment.kt:336-346 | app/src/main/java/com/example/llamadroid/harness/HarnessRootfsFileStore.kt:614-623 | app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeEnvironment.kt:423-434 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/proot/AgentProotEnvironment.kt"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"289224cdd17d324ad6ebc5cf819bfd2ac15c3d49a6173650ad65cfe76b9a84da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): app/src/main/java/com/example/llamadroid/service/DistributedService.kt:1106-1126 | app/src/main/java/com/example/llamadroid/service/SdDistributedService.kt:170-185 \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":"app/src/main/java/com/example/llamadroid/service/DistributedService.kt"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"a17ef768c4bc0090190643caa402de6fd9e1c50a39556849e8c81a25523fdfdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/OnnxBackgroundRemovalService.kt:121-137 | app/src/main/java/com/example/llamadroid/service/OnnxImageGenerationService.kt:211-228 | app/src/main/java/com/example/llamadroid/service/OnnxTtsGenerationService.kt:130-147 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/OnnxBackgroundRemovalService.kt"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eed2331d0d9f67f0f4f5af0b75a058645f844a550ec1a9955a1a478f83a70f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): app/src/main/java/com/example/llamadroid/ui/walkthrough/FeatureMediaModelGuides.kt:433-463 | app/src/main/java/com/example/llamadroid/ui/walkthrough/FeatureOtherGuides.kt:631-657 | app/src/main/java/com/example/llamadroid/ui/walkthrough/FeatureTamaGuides.kt:201-227 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/walkthrough/FeatureMediaModelGuides.kt"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"661e33a46067ef574f5b028ec3a8052a6157d04910dc6b387cee73889224bf60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:2710-2718 | app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:2798-2806 | app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:2930-2938 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":2710}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aaa07d3e8a2f3c0af1b7194cb710a68c64b8d337ebb7fc11457830e17db01cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): app/src/main/java/com/example/llamadroid/service/LlamaService.kt:99-121 | app/src/main/java/com/example/llamadroid/service/LlamaService.kt:123-141 \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":"app/src/main/java/com/example/llamadroid/service/LlamaService.kt"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff46c7a5338d47871b93bec2957b5c8eff5a55cb01cc4e2b9cd9e1c677451874"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): app/src/main/java/com/example/llamadroid/ui/agent/AgentProotDialogs.kt:130-145 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatOptionsDialog.kt:201-222 \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":"app/src/main/java/com/example/llamadroid/ui/agent/AgentProotDialogs.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcafb97b1b0ef491ad7fcee6d3a95a7ae248f70cbb7247de51b04888aebd85e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/com/example/llamadroid/audio/library/AudioLibraryRepository.kt:404-415 | app/src/main/java/com/example/llamadroid/audio/library/AudioLibraryRepository.kt:417-428 \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":"app/src/main/java/com/example/llamadroid/audio/library/AudioLibraryRepository.kt"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"73004188606cd0e1a1d6d2af391c35fab570ea3bbb2de79656230505c10ee646"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt:1000-1020 | app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt:1046-1063 \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":"app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00b2008f3cc5eab977e58e5dc150a937ee3405f74dc016cf97ecc70fc1acb60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): app/src/main/java/com/example/llamadroid/service/RemoteMasterServer.kt:761-776 | app/src/main/java/com/example/llamadroid/service/RemoteMasterServer.kt:781-794 \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":"app/src/main/java/com/example/llamadroid/service/RemoteMasterServer.kt"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8c9adea8d1d779ae0e7968be48df0dba4d98a4dfcb8ccadcb28e749b833d0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:2109-2125 | app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:2127-2142 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1529-1544 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":2109}}}],"partialFingerprints":{"codehealthFindingId/v1":"07bd562d651328010e4c53c7a061ea2b341725cc4c63a9d28ce903b7462d9bf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessInstallationFiles.kt:186-197 | app/src/main/java/com/example/llamadroid/harness/HarnessLegacyDeletion.kt:129-141 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessInstallationFiles.kt"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd39842c1be1443f8a91da6ead08bbb6fe6f14cc12502af50c1f70a4b33a8a2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/GenerationQueueService.kt:247-260 | app/src/main/java/com/example/llamadroid/service/GenerationQueueService.kt:262-275 | app/src/main/java/com/example/llamadroid/service/GenerationQueueService.kt:277-290 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/GenerationQueueService.kt"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5db33b2929396953391cf18cf6950188ff60037fa9b85b1d32c2560f8844eea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskService.kt:134-158 | app/src/main/java/com/example/llamadroid/service/LlamaServerSessionService.kt:145-166 \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":"app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskService.kt"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"015703f1e87ba6f71de1626ab6328fdbd9b41337f2ffcf84ef548abf51d712a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/SubtitleBurnService.kt:111-126 | app/src/main/java/com/example/llamadroid/service/VideoInterpolationService.kt:843-860 | app/src/main/java/com/example/llamadroid/service/VideoUpscalerService.kt:158-174 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SubtitleBurnService.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f7270f8fa119685780f4ba825f87a438b505d33f8f165dcec1612f7d147bd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:463-478 | wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:612-628 \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":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4f773f70f0a4229850c6bcd99bd5d647684324a6c96ced29beede8155e7408"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferConfiguration.kt:77-86 | app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferConfiguration.kt:94-103 \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":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferConfiguration.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f07690390d3ff4b9948ef916c87f664ba3fb854da90adbf039ddde3585dd07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt:481-507 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:2971-2981 \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":"app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe1faa31fa6a5b30f997620a2c82be6f9f26d666b9cc801a6f41918d3226296"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/llama/MarkdownText.kt:815-827 | app/src/main/java/com/example/llamadroid/ui/ai/llama/MarkdownText.kt:829-840 \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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/MarkdownText.kt"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"743097010a5801736d875ae2ae435e08f608b2c2179f5431135d10ce0b846ee9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt:1032-1049 | app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt:1063-1080 \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":"app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"014fea830e3b651527adee5565dcbc1ea2d2e4cb43c05b3ac7140722e7559216"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentService.kt:5197-5216 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:8132-8151 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":5197}}}],"partialFingerprints":{"codehealthFindingId/v1":"7180ffe0f155a72f3fea893c1248246cb005bf6fea57e8104206c390b392c8c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:162-184 | app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt:147-170 | app/src/main/java/com/example/llamadroid/service/SdDistributedService.kt:408-425 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6bb81324990153bd147e4ba48c5e34821d115942cdbe27dad6818f1e1d663b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:2689-2706 | app/src/main/java/com/example/llamadroid/widget/NoteDisplayWidget.kt:516-533 \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":"app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt"},"region":{"startLine":2689}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b23ebe16c14973f6221746b189385c02802a48c6c3090d1bef5ab978e8ea264"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): app/src/main/java/com/example/llamadroid/ui/settings/LlmSettingsHelpers.kt:171-186 | app/src/main/java/com/example/llamadroid/ui/settings/LlmSettingsHelpers.kt:197-216 \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":"app/src/main/java/com/example/llamadroid/ui/settings/LlmSettingsHelpers.kt"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"39adc9d23a4d11d5e139b708799d2addeab9e86c8bf5ee355445f1f834d019b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): app/src/main/java/com/example/llamadroid/audio/music/StableAudio3LoraMerge.kt:356-373 | app/src/main/java/com/example/llamadroid/audio/music/StableAudio3LoraMerge.kt:380-396 \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":"app/src/main/java/com/example/llamadroid/audio/music/StableAudio3LoraMerge.kt"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"8604b327079c108d88de04725bfc451ba2433fd25ec7077cc8a0b5095da942b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessCredentialStore.kt:162-171 | app/src/main/java/com/example/llamadroid/harness/HarnessTransferPublication.kt:328-337 | app/src/main/java/com/example/llamadroid/tama/transfer/PeerKeyStore.kt:30-42 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessCredentialStore.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"61cbb22bb240b6510ea7672aab1708c58dd59687ec11e1157f0be6434deacb24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:3567-3579 | app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskRunner.kt:429-440 \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":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":3567}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1be30219216325b5606a04d155ac30f40c8fd4c89ecb396f4f3317b15e36a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:3310-3318 | app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:3320-3328 \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":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":3310}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b06ced63fd5275fe90180a2a7272aec2874227d6693412b58e013c70803358b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): app/src/main/java/com/example/llamadroid/service/VideoRecognitionSummaryService.kt:1268-1285 | app/src/main/java/com/example/llamadroid/service/VideoRecognitionSummaryService.kt:1292-1312 \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":"app/src/main/java/com/example/llamadroid/service/VideoRecognitionSummaryService.kt"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"4581d8eb38b02fcf9c0cec1485f0347bf0239cd87e647e5da3cb7b4f504f19a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessBridgeOperations.kt:770-780 | app/src/main/java/com/example/llamadroid/harness/HarnessWorkspaceAccess.kt:361-369 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessBridgeOperations.kt"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc6e7e7219749a870cac99df7d148d9780013cc0ec0e4419cb9714b5fedabd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:4409-4419 | app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:4638-4649 \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":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":4409}}}],"partialFingerprints":{"codehealthFindingId/v1":"b328055e1157a2325c52bff66840d26962d8ff72d3dd91a69345709cbb4561ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:2700-2718 | app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:2791-2811 \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":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":2700}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a7131413ee3b5d6f33182a40a0fddb2ebd2fd75d54045609eeaeecc57a0a91"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): app/src/main/java/com/example/llamadroid/harness/client/OkHttpHarnessClient.kt:827-847 | app/src/main/java/com/example/llamadroid/harness/client/OkHttpHarnessClient.kt:849-870 \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":"app/src/main/java/com/example/llamadroid/harness/client/OkHttpHarnessClient.kt"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7fdcfef782120018f18c0d60c589382ecf8ff22322e99b3102dfbcd32ed926e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentService.kt:19096-19109 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:19114-19128 \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":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":19096}}}],"partialFingerprints":{"codehealthFindingId/v1":"45a379dbf89c2154f5557e7645d643ee77770ca04adf62db468c24891cdc3e35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:4097-4114 | app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt:1050-1066 \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":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":4097}}}],"partialFingerprints":{"codehealthFindingId/v1":"00dfe6fea3a68495e7b888c2d36a411c3d57d303c95333751678a475a67ae688"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:2739-2747 | wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:3382-3390 \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":"app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt"},"region":{"startLine":2739}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab02531e71b6915de92a4558f15a58fb7faa751b3d3f44f4b9bb6d7817c3f551"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/AiServersHubScreen.kt:976-985 | app/src/main/java/com/example/llamadroid/ui/distributed/WorkerModeScreen.kt:1085-1099 \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":"app/src/main/java/com/example/llamadroid/ui/ai/AiServersHubScreen.kt"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8ef30101d1cf8efa178daea995d69247bc29662ef58c377a5de882ac89f8a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/harness/RoomHarnessRuntimeStore.kt:44-55 | app/src/main/java/com/example/llamadroid/harness/RoomHarnessRuntimeStore.kt:57-65 \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":"app/src/main/java/com/example/llamadroid/harness/RoomHarnessRuntimeStore.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"22308bb115e7da600578976cc86fa21bda54470e34f31d837c51b72dfd90692b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:2976-2985 | app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:2987-2996 \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":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":2976}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b396a48152d6507fa69f6a63f1864ea3a40834d56d780e9dd9477930685815c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): app/src/main/java/com/example/llamadroid/service/DistributedMasterLlamaService.kt:182-189 | app/src/main/java/com/example/llamadroid/service/LlamaRuntimeStateProjection.kt:235-242 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DistributedMasterLlamaService.kt"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0766794d4ccb1b91f9329487a24dcf7c13ba319d5b3ac625b4294f696c0836d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): app/src/main/java/com/example/llamadroid/service/MangaPaintedOcrSupport.kt:756-761 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:6761-6774 \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":"app/src/main/java/com/example/llamadroid/service/MangaPaintedOcrSupport.kt"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e2f8f9d0d21e62543dfecf9513e4f39bd3f3e9627e776d7aa1a255101d09ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt:1060-1069 | app/src/main/java/com/example/llamadroid/service/PDFTranslationLogic.kt:370-379 \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":"app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"710c3a46e63e37b252e73bc0fc3d0dfbc6fe3b611cd2afbdbefb141005d3ea33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/com/example/llamadroid/service/compaction/NativeChatTurnDecoratorLogic.kt:98-114 | app/src/main/java/com/example/llamadroid/service/delegation/DelegateSubagentMessages.kt:52-61 \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":"app/src/main/java/com/example/llamadroid/service/compaction/NativeChatTurnDecoratorLogic.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2183e32d6f4f3f7e651c55908d7de213351311abc4a945bab2c41c807d2f04"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): app/src/main/java/com/example/llamadroid/ui/audio/AudioWorkspaceRuntimeController.kt:370-386 | app/src/main/java/com/example/llamadroid/ui/audio/AudioWorkspaceRuntimeController.kt:388-404 \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":"app/src/main/java/com/example/llamadroid/ui/audio/AudioWorkspaceRuntimeController.kt"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6118b56c13b247475afb8ce223c2e0383bc1d0577f286943f8791759fa252c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:1085-1095 | app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:1180-1187 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9506d73cf1309bc69b26422593ab6a44139cd9830569df1db6b2525e6feedfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/src/main/java/com/example/llamadroid/data/backup/NativeChatNotesBackupManager.kt:960-974 | app/src/main/java/com/example/llamadroid/data/model/ModelLibraryManager.kt:136-152 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/backup/NativeChatNotesBackupManager.kt"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba3226da8c50143d133f66c9b1c154d0ff85c97fa4c985fa329bc588c6dab23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt:401-413 | app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt:421-433 \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":"app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6bbe428ce49348abc3b4a713be715aa547e90109bc9ebdbf0a9693dd5be1b1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/com/example/llamadroid/data/model/CuratedBundleSupport.kt:208-217 | app/src/main/java/com/example/llamadroid/data/model/StableAudioCuratedBundleCatalog.kt:24-33 \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":"app/src/main/java/com/example/llamadroid/data/model/CuratedBundleSupport.kt"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"f66610dacc1f91f51c2dddca609e5c99dcd7834caa3f64bd1102cc03be053cd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): app/src/main/java/com/example/llamadroid/onnx/OnnxTtsSupport.kt:587-593 | app/src/main/java/com/example/llamadroid/ui/ai/LiveTranslatorScreen.kt:120-126 \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":"app/src/main/java/com/example/llamadroid/onnx/OnnxTtsSupport.kt"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f947e6b84e51ca091e7257263486abe82a5fe2b6160454ea300e2ca5d89ac51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/com/example/llamadroid/service/LlamaServerUsageLease.kt:43-52 | app/src/main/java/com/example/llamadroid/service/LlamaServerUsageLease.kt:55-64 \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":"app/src/main/java/com/example/llamadroid/service/LlamaServerUsageLease.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"687eea1e5dd5110ac66c3cf8a9a6dfa9d18ba69de1e746c82139902b2b40a4ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:272-285 | app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:287-299 \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":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"a646607cc501d7db232cfd7fd2da0ff74399e428686680547e295a29d516da57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/com/example/llamadroid/tama/data/FarmDroneData.kt:394-405 | app/src/main/java/com/example/llamadroid/tama/data/FarmDroneData.kt:407-418 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/data/FarmDroneData.kt"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"fade88e17faf87fe93c5fa6df7c6a0885be9653322a6a1b1c10cf337337c0106"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentService.kt:1999-2017 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:2130-2149 \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":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":1999}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b24e79dd32e2918d059d4a638534b0e122c820f25ddd800687be92b4caa8f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): app/src/main/java/com/example/llamadroid/service/DownloadService.kt:196-212 | app/src/main/java/com/example/llamadroid/service/DownloadService.kt:230-243 \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":"app/src/main/java/com/example/llamadroid/service/DownloadService.kt"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c38da70a7ea77980b944ddb0cbc6a1a72c16b6bb0d56701a742d577173c996"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferClient.kt:82-90 | app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferClient.kt:105-113 \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":"app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferClient.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"d04ade74fee3de5f28faecd8a29b878ddfd65866ed256aa16a9b61853009ced5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/GenerationBatteryOptimization.kt:100-121 | app/src/main/java/com/example/llamadroid/ui/components/ModelStorageOverview.kt:24-35 \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":"app/src/main/java/com/example/llamadroid/ui/ai/GenerationBatteryOptimization.kt"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf78a81741e9b799fb3fda52ac0b8605163b671652da5a7f1a16e2d1f1ad094"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:2722-2730 | app/src/main/java/com/example/llamadroid/ui/library/AllMediaGalleryScreen.kt:656-662 \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":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":2722}}}],"partialFingerprints":{"codehealthFindingId/v1":"7daa9abf6603b9f71c09503248acc91d11112d626fcadd7170ed75bdd06112b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryViewModel.kt:466-479 | app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryViewModel.kt:493-507 \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":"app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryViewModel.kt"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3310963e5647dabba8a72488d1384bd91c8856bfd2898f606be46de143b73b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 12\u002B corresponding lines): app/src/main/java/com/example/llamadroid/audio/music/StableAudio3ModelDoctor.kt:393-404 | app/src/main/java/com/example/llamadroid/audio/music/StableAudio3WorkerService.kt:253-266 | app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactGroups.kt:135-147 | app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt:1533-1544 | app/src/main/java/com/example/llamadroid/service/MediaModelSupport.kt:189-200 | app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:2749-2760 | wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:3486-3497 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/music/StableAudio3ModelDoctor.kt"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"abfbcb53a6493dfbcc9e2b1685a652d77dbe2e9914ea7ddefcfacc242d8559d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt:2304-2315 | app/src/main/java/com/example/llamadroid/data/proot/AgentProotEnvironment.kt:219-233 | app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeEnvironment.kt:288-302 | app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferDomains.kt:514-525 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt"},"region":{"startLine":2304}}}],"partialFingerprints":{"codehealthFindingId/v1":"9624fa8cc3469a1aa8b3b135a3f6e3cd0a29c042d1874132b73e19f7b2e97873"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessInstallationManager.kt:159-165 | app/src/main/java/com/example/llamadroid/harness/HarnessInstallationManager.kt:167-173 \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":"app/src/main/java/com/example/llamadroid/harness/HarnessInstallationManager.kt"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f38d186c1f993d87caf7fa7c18e70c41e9e7aab14f221bf3376c5e4fbe6eba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessProjectManagement.kt:130-138 | app/src/main/java/com/example/llamadroid/harness/HarnessProjectManagement.kt:140-149 \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":"app/src/main/java/com/example/llamadroid/harness/HarnessProjectManagement.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3b242d2db3b6555ba8f5e8e0056b9e977af7b99b865a8d3ccd8036774ac555"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): app/src/main/java/com/example/llamadroid/onnx/OnnxBackgroundRemovalSupport.kt:616-625 | app/src/main/java/com/example/llamadroid/onnx/OnnxTtsSupport.kt:856-863 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/onnx/OnnxBackgroundRemovalSupport.kt"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"635a6c6ac3c6a9841ef88f3df299e3ccf76ec1a36c9255b08181cb78819f59bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): app/src/main/java/com/example/llamadroid/service/OnnxTtsGenerationService.kt:355-360 | app/src/main/java/com/example/llamadroid/ui/ai/OnnxBackgroundRemovalScreen.kt:748-753 \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":"app/src/main/java/com/example/llamadroid/service/OnnxTtsGenerationService.kt"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf3b93d0028a50b58f58ded07322fbe3ee083cf4adebff66a44ca49722611da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:1274-1289 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatScreenSupport.kt:162-178 \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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt"},"region":{"startLine":1274}}}],"partialFingerprints":{"codehealthFindingId/v1":"9681b713fdbb4a6a152001cdda1649f794a8e6a2fb4dd0c82c3410b4918b819f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:405-415 | app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:1950-1955 \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":"app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb6d8025a695f1ec42da3d984cc1314230c158e31fc0e2e3ef6e3d57d638bfc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt:2316-2324 | app/src/main/java/com/example/llamadroid/service/KnowledgeBaseIndexingService.kt:380-388 \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":"app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt"},"region":{"startLine":2316}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc25b65004f48f0f6a881483a9b1bb196e5c3c94857cfe95f2733026a55eeda"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferConfiguration.kt:173-181 | app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:409-423 \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":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferConfiguration.kt"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee35295e030bce31446078ae03fc640d3e667bc74392a2bdf39db75f81b234e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/OnnxBackgroundRemovalService.kt:394-401 | app/src/main/java/com/example/llamadroid/service/OnnxImageGenerationService.kt:573-582 | app/src/main/java/com/example/llamadroid/service/OnnxTtsGenerationService.kt:265-272 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/OnnxBackgroundRemovalService.kt"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52b4088f839a53a20c815a6bab07470c6f0973009889252380fb6394ed5e2cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentService.kt:3902-3913 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:3942-3958 \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":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":3902}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2fcad344e10a3bee72be42a4aa17a4f3110063ebbaf83e1ff82f5f4aeb568e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferClient.kt:95-103 | app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferClient.kt:125-133 | app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferClient.kt:135-143 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferClient.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8d15338bcee1cfda559e322f335a869fcff52e07be7b0580a6b0914a06995d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:1622-1638 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:4075-4098 \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":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":1622}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4db7170151210b70bebdd19ef811580f1585e803fbb27dd9ca033779964e8c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessExtensionsPanels.kt:943-964 | app/src/main/java/com/example/llamadroid/ui/audio/AudioWorkspaceScreen.kt:1483-1488 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:2685-2704 | app/src/main/java/com/example/llamadroid/ui/library/AllMediaGalleryScreen.kt:616-632 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessExtensionsPanels.kt"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6240d51879613f48a370819ccbbc924c71c12c8d9562f29a24ccc884dad6e3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:2813-2827 | app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:2829-2844 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":2813}}}],"partialFingerprints":{"codehealthFindingId/v1":"4285bb4d556612fbc596e24e1ba3553156cf91ee4ca5d4c3e6a6bb49bb4e7489"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/com/example/llamadroid/service/filestation/api/ArchiveApi.kt:64-73 | app/src/main/java/com/example/llamadroid/service/filestation/api/FsWriteApi.kt:50-59 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/filestation/api/ArchiveApi.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"83797334b47907962a9be4f032e9b50721e99b814ddeb88ab285ed1f2dc7be66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/AdventureSettingsDialog.kt:461-479 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:3111-3132 \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":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureSettingsDialog.kt"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"5601b012de546f829da2928af4d81a66d2dfde2e9b2868afe4c772e942372a51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): app/src/main/java/com/example/llamadroid/data/repository/EasyLlamaChatCoordinator.kt:261-270 | app/src/main/java/com/example/llamadroid/data/repository/EasyLlamaChatCoordinator.kt:277-284 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/repository/EasyLlamaChatCoordinator.kt"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8b507193e8600e5eb0124071098d0273932d204a173a3ac0c7e1c0e7aeb00d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt:1002-1016 | app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt:1024-1037 | app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt:1046-1060 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6951a23562540f9b33f34ccea15a0d764bac4ccc7f2bbe70f072f1a24c997b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/com/example/llamadroid/service/PDFService.kt:5659-5672 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:5727-5738 \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":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":5659}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5be617765340077fd015d36e5c0cb095d7202a89478f37f39e325ad7cbe73e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatScreenSupport.kt:230-239 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatScreenSupport.kt:241-250 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatScreenSupport.kt:252-265 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatScreenSupport.kt:267-276 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatScreenSupport.kt"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0d6726a128bb9836823e7e8c748519d3ce1f6b09f24f53632a1fc503fff68d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): app/src/main/java/com/example/llamadroid/audio/music/StableAudio3Models.kt:31-39 | app/src/main/java/com/example/llamadroid/audio/music/StableAudio3Models.kt:65-71 \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":"app/src/main/java/com/example/llamadroid/audio/music/StableAudio3Models.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e36a8d7c4b28b2c3e70484ad21844c6c513051f6d3228daf0d04af69dd8c60ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:746-754 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:6386-6394 \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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37d4d47bc54c1a1bb4552563b2870569acc9229f0c5ae2be1a41549303dac4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/ollama/OllamaViewModel.kt:177-189 | app/src/main/java/com/example/llamadroid/ui/ai/ollama/OllamaViewModel.kt:214-226 \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":"app/src/main/java/com/example/llamadroid/ui/ai/ollama/OllamaViewModel.kt"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"953bccb690cf95504273bdadfdafe9265ee82bace039898104240ad39dbc531e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): app/src/main/java/com/example/llamadroid/widget/TamaFarmWidget.kt:96-109 | app/src/main/java/com/example/llamadroid/widget/TamaPetWidget.kt:82-95 \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":"app/src/main/java/com/example/llamadroid/widget/TamaFarmWidget.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5135edc3041bc92fde47ee95b84af17091f1732588a89c1b5556977fa6245d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/DistributedMasterLlamaService.kt:265-285 | app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:359-378 | app/src/main/java/com/example/llamadroid/service/LlamaService.kt:262-281 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DistributedMasterLlamaService.kt"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"f90859b597abf2e9ed554c8f5b339823da27ea26bea92a077b79175565819f02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:2609-2626 | app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:2637-2654 \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":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":2609}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3257a3196e40a913a0fe507c37115a4ab183eedbc342ba870470a72fc4d300"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt:294-305 | app/src/main/java/com/example/llamadroid/service/PDFTranslationLogic.kt:476-486 \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":"app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08d2de5e267476050ea3a9f170f0a363179b3fb9067c8839be2e299da4cbf75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): app/src/main/java/com/example/llamadroid/data/proot/AgentProotEnvironment.kt:188-201 | app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeEnvironment.kt:272-285 \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":"app/src/main/java/com/example/llamadroid/data/proot/AgentProotEnvironment.kt"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d68f5a2da7d30d84a2612f811565f9d47574dfc4776b9394429f1a0a7fed9e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessAppWebSearch.kt:98-109 | app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferClient.kt:160-174 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAppWebSearch.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f81b3b3d6f9efb1cfd3b828b7c8397e528196fc641f012d87f6b7e714470740"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): app/src/main/java/com/example/llamadroid/service/AdventureForegroundService.kt:400-415 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:6462-6475 \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":"app/src/main/java/com/example/llamadroid/service/AdventureForegroundService.kt"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f867ccf9a4e874bcc9842947c5bcbd2a5c2528043133c83293d7de44208071"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskSchedule.kt:50-56 | app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskSchedule.kt:71-82 \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":"app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskSchedule.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d2475d7ba7125ca1ba4c954e106546abf6e90fa6bd491f059370f54b1f94ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt:1565-1575 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:1930-1940 \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":"app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt"},"region":{"startLine":1565}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed44e183abde479991c918fd351e70cb6bb6632fbd009a995d2d9b6a4546fd59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:2846-2860 | app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:2862-2876 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":2846}}}],"partialFingerprints":{"codehealthFindingId/v1":"58df6119e189fbeefd09b2819603377f488d49237d3f8b7cd1982c29742955e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:3389-3396 | app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:2908-2916 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":3389}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c57f50def3663965831f81fd9f93ac5b2f4323ef0e8c9ad1bbd5ee1cf2c6c1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:1956-1977 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1394-1412 \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":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":1956}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f7005a5a0802cc8e2d858452f30b36b10e40f8d3c93e2e62c25e0124d82bb11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/tama/game/TamaDailyDreamManager.kt:775-783 | app/src/main/java/com/example/llamadroid/tama/game/TamaDailyDreamManager.kt:785-793 \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":"app/src/main/java/com/example/llamadroid/tama/game/TamaDailyDreamManager.kt"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ba10c3b3ed7708d5d3fc5b2127c4217aa98a26712fade150db066d928bb435"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:3841-3849 | app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:2101-2109 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:951-961 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":3841}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a86f4be6716c1f85cab2a58f9e377d9e9168bf4286cf5b49cd91d3fcc114d20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/TermuxFileManagerScreen.kt:1082-1089 | app/src/main/java/com/example/llamadroid/ui/ai/ollama/OllamaManagerScreen.kt:819-828 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/TermuxFileManagerScreen.kt"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b2fe238c9f62f6c27e401c0596344e79d49b320c272873a3abcf1bf7a4cba5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 17\u002B corresponding lines): app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt:35-51 | app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:54-70 | app/src/main/java/com/example/llamadroid/ui/settings/PDFSettingsScreen.kt:55-71 | app/src/main/java/com/example/llamadroid/ui/settings/VideoUpscalerSettingsScreen.kt:26-42 | app/src/main/java/com/example/llamadroid/ui/settings/WhisperSettingsScreen.kt:35-52 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d4ae926a9832520f92279742f2ef537825b150d69e8fa2568c52f2ea1bf96a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessAppRuntime.kt:357-369 | app/src/main/java/com/example/llamadroid/harness/HarnessAppRuntime.kt:371-385 \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":"app/src/main/java/com/example/llamadroid/harness/HarnessAppRuntime.kt"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"74883fb43e121d03cd15383bb123e2b268bcb8ca8cc0ce5b14a5b49db7cb3843"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessAppToolsSettings.kt:208-216 | app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessExtensionsPanels.kt:973-987 \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":"app/src/main/java/com/example/llamadroid/harness/HarnessAppToolsSettings.kt"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f36beedd5f51cfa3e9823957772e55e1cda0a2120192e3dda779364d8d192a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt:229-235 | app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt:3197-3203 \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":"app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e278e0cf56e023b951754de34a2abb6533e3c6bec6cc14384d3146ca434e36e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/chat/ChatAdmissionPlanner.kt:89-95 | app/src/main/java/com/example/llamadroid/service/ephemeral/EphemeralLlamaServer.kt:168-177 | app/src/main/java/com/example/llamadroid/service/vision/VisionDescriptionService.kt:182-191 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/chat/ChatAdmissionPlanner.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"1349d3dab99754b44cc0ce74df9429f04830384a81010689ac1ab25ea8a9dc39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/OnnxTtsScreen.kt:559-567 | app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt:749-761 \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":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxTtsScreen.kt"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f22dfbbd2edc5fef5738881a039122cbbc746dfbf8754e6385f8370bc733af7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatDelegationSettingsSection.kt:500-510 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatDelegationSettingsSection.kt:513-525 \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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatDelegationSettingsSection.kt"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c754be4fac730bfd7bb67ce62f616f3e807fcb493cee963fa64fc99a00ae6ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageItem.kt:47-63 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageItem.kt:69-85 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageItem.kt:91-107 | app/src/main/java/com/example/llamadroid/ui/audio/AudioWorkspaceScreen.kt:1383-1395 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageItem.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff12ed0d18806338cb93b66862f82a26cfc805e767b9e340735269d997a87063"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): wear/src/main/java/com/example/llamadroid/wear/AdtTileActionActivities.kt:69-82 | wear/src/main/java/com/example/llamadroid/wear/AdtTileActionActivities.kt:86-99 \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":"wear/src/main/java/com/example/llamadroid/wear/AdtTileActionActivities.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b33c021b8b39ae1cb97c3d78818aa7eead11876ce0c3674f1698b934e07598"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessOriginalWebView.kt:162-174 | app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeReadiness.kt:160-175 \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":"app/src/main/java/com/example/llamadroid/harness/HarnessOriginalWebView.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"b217922d3d64e9b9aa322c99eeed024636b4e2d466ff6dff82c7071e097eddbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessPresetFiles.kt:126-133 | app/src/main/java/com/example/llamadroid/harness/HarnessPresetFiles.kt:135-142 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessPresetFiles.kt"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f854d03c525d11f965b37ea5a288d7a7f1588fd683715ae85dc18854b49a1c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessPresetFiles.kt:170-180 | app/src/main/java/com/example/llamadroid/harness/HarnessRootfsFileStore.kt:714-724 \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":"app/src/main/java/com/example/llamadroid/harness/HarnessPresetFiles.kt"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"7896a13c6469f7b94c34ca19d92a047d8dfb8ca2978e9eaea34b75a934c7f22a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessRemoteProjectRunner.kt:438-453 | app/src/main/java/com/example/llamadroid/service/AgentProotRunCoordinator.kt:299-318 \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":"app/src/main/java/com/example/llamadroid/harness/HarnessRemoteProjectRunner.kt"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c91fa5e4d68e45d76af5207d7e6882ab8bdf0154f62b7225f95a6737b96d14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeProcess.kt:885-895 | app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:491-502 \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":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeProcess.kt"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b8dc49fdf6ea38f0eb1b2ca7b9571154fc365c37a52803ca6538f6d5b6b23e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/com/example/llamadroid/service/CustomToolHttpExecutor.kt:209-221 | app/src/main/java/com/example/llamadroid/service/NativeVideoRecognitionRuntime.kt:675-686 \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":"app/src/main/java/com/example/llamadroid/service/CustomToolHttpExecutor.kt"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c8dff7e82aaf25abc93dfc08504a3e47e665487e09d0a594aafc06896987eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:4329-4337 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:3394-3402 \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":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":4329}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7fe25ba41abdc73c20e5bd09300656d33ae0461bc4a1a9e5879af18aa0fac86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:249-265 | app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaServerViewModel.kt:233-245 | app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaServerViewModel.kt:247-259 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"411ca99b64e0977947737d00ade222d5b9c890ed13724d635b7740b0f0b1cc7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt:1254-1266 | app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt:1268-1278 \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":"app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b89967ab0d1a472942636c81ba4a217775f0ec80055079ea5c9bd1eb68caadb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt:315-329 | app/src/main/java/com/example/llamadroid/service/chat/NativeChatVideoSupport.kt:720-737 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"57de05e9ffe218faa7634e17883b272617a1a9cb96cfcad3323945f3fe298e3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): app/src/main/java/com/example/llamadroid/tama/data/TamaMarket.kt:56-68 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:3905-3917 \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":"app/src/main/java/com/example/llamadroid/tama/data/TamaMarket.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"28bb32a87853c674ca6556fc936833ed6f99d97a624f052708228cb7940d6128"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): app/src/main/java/com/example/llamadroid/ui/agent/AgentChatList.kt:566-573 | app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt:3069-3076 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentChatList.kt"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"191110432329968fe740ef096051988bc9ec90eca71ef99192f710763b674645"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessUsageProjections.kt:20-27 | app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessUsageProjections.kt:29-40 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessUsageProjections.kt"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"171dafd70b261181a8768819179ef033091603be0bb50b3dd8ccbfa4602510a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): app/src/main/java/com/example/llamadroid/ui/navigation/AppLaunchIdentity.kt:46-59 | app/src/main/java/com/example/llamadroid/ui/navigation/AppLaunchIdentity.kt:61-75 \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":"app/src/main/java/com/example/llamadroid/ui/navigation/AppLaunchIdentity.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae17e0235c2b02073f3c4710858181f7e90f96f10d3695417900f8d1fccf599"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:737-751 | wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:753-767 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd762d94d6138a7f6920aa9ec77c6e2da71e404174c4363d82524324180bcb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): app/src/main/java/com/example/llamadroid/data/backup/NativeChatNotesBackupManager.kt:825-844 | app/src/main/java/com/example/llamadroid/data/backup/NativeChatNotesBackupManager.kt:847-865 \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":"app/src/main/java/com/example/llamadroid/data/backup/NativeChatNotesBackupManager.kt"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f34c38f750990bf04d0d0894f46d6cff9c4a5189d3d7a24f180bd3696858d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessTransferPublication.kt:268-273 | app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferDomains.kt:602-611 \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":"app/src/main/java/com/example/llamadroid/harness/HarnessTransferPublication.kt"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de155ef332603803184592ecc040ffdb1d1a24b1c52bebb8235bc991b62fe05"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeProcess.kt:768-774 | app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeProcess.kt:777-782 \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":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeProcess.kt"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b5290503b72e3699e8a996df0ec9b1bbb452d70c5f7de5fdb8b7fe76129128"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): app/src/main/java/com/example/llamadroid/service/LlamaCliSupport.kt:51-66 | app/src/main/java/com/example/llamadroid/service/WhisperCliSupport.kt:54-72 \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":"app/src/main/java/com/example/llamadroid/service/LlamaCliSupport.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"4afdfb3232c2a54d41badbf87d494c0ec861620f24ed64268e7360c0fd7e623e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:2725-2736 | app/src/main/java/com/example/llamadroid/ui/models/ModelPromotionChoices.kt:134-141 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt"},"region":{"startLine":2725}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e3310b27af30697661b3317eb1c85cd74126f0f620bda7d638814ac6dc8c3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:2080-2083 | app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:2085-2091 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt"},"region":{"startLine":2080}}}],"partialFingerprints":{"codehealthFindingId/v1":"3516247540b528fe1b2928e4b2cc69aa886c28b5b878374318f6f81c46d6953d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:365-375 | wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:377-386 \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":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a375ec6370dfef4cc11ad00330350d7666b3186059b72206838586f8f76cea4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessLanAccess.kt:535-540 | app/src/main/java/com/example/llamadroid/harness/HarnessLanAccess.kt:542-546 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessLanAccess.kt"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a91478c1c0bf2abcae9afdc50f28b119622c463638f29a5f00454b382f4e4cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentRuntimeSupport.kt:904-913 | app/src/main/java/com/example/llamadroid/service/AgentWebSearchSupport.kt:177-188 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentRuntimeSupport.kt"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc37ec4f26addf9b3a3ac6fe7679b72534693edb7e9211d4247a5b8943edbe7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentSleepWakeScheduler.kt:125-139 | app/src/main/java/com/example/llamadroid/service/delegation/DelegationAlarmScheduler.kt:109-122 \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":"app/src/main/java/com/example/llamadroid/service/AgentSleepWakeScheduler.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"739e7893318fc86719e86283a239faaa8df0ded1c3823ab65c185027850397b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/com/example/llamadroid/service/DatasetForegroundService.kt:175-186 | app/src/main/java/com/example/llamadroid/service/GenerationDiagnosticsStore.kt:652-664 \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":"app/src/main/java/com/example/llamadroid/service/DatasetForegroundService.kt"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"7677f174bc7d8106e2a75d8565e39a60b69fedbe3737c1bbc2c193ab14920fe7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/TamaSoftStudioComponents.kt:39-55 | app/src/main/java/com/example/llamadroid/ui/components/AppChrome.kt:257-273 \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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaSoftStudioComponents.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"237296e237ab49c194c7714923cce868ca65e4cf13a8752d24dcedb90a1bc784"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 9\u002B corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/AiServersHubScreen.kt:891-906 | app/src/main/java/com/example/llamadroid/ui/audio/AudioWorkspaceScreen.kt:1461-1469 | app/src/main/java/com/example/llamadroid/ui/components/SettingsComponents.kt:179-201 | app/src/main/java/com/example/llamadroid/ui/easy/EasyChatOptionsSheet.kt:284-296 | app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:1882-1905 | app/src/main/java/com/example/llamadroid/ui/settings/LlmSettingsHelpers.kt:107-124 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/AiServersHubScreen.kt"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b659e2231ed6d22f1d8665025de37870550f27996a737dad7e30657307a849"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:999-1010 | app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:1112-1124 \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":"app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c6bbf483ec5694bdefb50c72e380bbf8f76c42b1b25c9c176e1a24fd8fdcc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/service/AdventureForegroundService.kt:68-76 | app/src/main/java/com/example/llamadroid/service/AdventureForegroundService.kt:87-96 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AdventureForegroundService.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"11830494378c200b2d640bb70da57a2abd0c6e38d5ce7e83e26e1d21dc4764e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/com/example/llamadroid/service/ModelShareService.kt:228-237 | app/src/main/java/com/example/llamadroid/service/ZimShareService.kt:204-213 \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":"app/src/main/java/com/example/llamadroid/service/ModelShareService.kt"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bbd7b6dbbd067fa99e14ef1bf9f74c4f0e125dcb1e44c5d25d47e9e5c4aaa90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): app/src/main/java/com/example/llamadroid/service/filestation/api/FsWriteApi.kt:196-201 | app/src/main/java/com/example/llamadroid/service/filestation/api/FsWriteApi.kt:203-210 \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":"app/src/main/java/com/example/llamadroid/service/filestation/api/FsWriteApi.kt"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"f432bada56e3c2d4ffee5b5ed431b19b760473703d2dd9b9604d2335bd693ec9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:4261-4275 | app/src/main/java/com/example/llamadroid/tama/game/TamaTransferBundle.kt:477-489 \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":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":4261}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd63699c3dd7efb115b48c4312c78a672536be69cd92973ad3b802ce1ee4d37e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt:791-804 | app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt:807-820 \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":"app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ee1bfc2bd980147f79c8e7d5a7893a3a26725f2072adfda0b2291c0735a76c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessExtensionsPanels.kt:88-104 | app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessExtensionsPanels.kt:109-116 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessExtensionsPanels.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06b6fadbc0d5e522f82f9aa1fc19a9bc2d2539d437cd4b57821f3c085695741"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:5306-5313 | app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryDialogs.kt:195-200 \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":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":5306}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7d4f19f108517d011c5b3c63f9c9864ee4c20391f0c8c700f56157acd438fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessAtomicFile.kt:58-67 | app/src/main/java/com/example/llamadroid/harness/HarnessSessionAtomicFile.kt:77-86 \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":"app/src/main/java/com/example/llamadroid/harness/HarnessAtomicFile.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f170f50bfb1d6ae464d8844c0d5264262b7d2b25a6509deb9cccd596d2899e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessInstallationManager.kt:99-106 | app/src/main/java/com/example/llamadroid/harness/HarnessInstallationManager.kt:117-122 \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":"app/src/main/java/com/example/llamadroid/harness/HarnessInstallationManager.kt"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e9c3450891627859f999f5b39ec3d95f17c320964a2efdf48add4cac86d418b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 7\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt:2881-2891 | app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt:1418-1428 | app/src/main/java/com/example/llamadroid/tama/shimeji/ShimejiTimerFormat.kt:42-48 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:2438-2449 | app/src/main/java/com/example/llamadroid/ui/ai/llama/delegation/DelegationViewerSupport.kt:69-76 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt"},"region":{"startLine":2881}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb16f39d07934d6d77929f2f560203f48a1f0918d85a13efd8a28902edb46f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/ServerRegistryViewModel.kt:168-181 | app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/ServerRegistryViewModel.kt:184-196 \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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/ServerRegistryViewModel.kt"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"afcff72c324513481510002ece276988c838d69be2e7ad87b4a0e6cf21bd8d62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessProviderErrorCodes.kt:69-78 | app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt:118-131 \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":"app/src/main/java/com/example/llamadroid/harness/HarnessProviderErrorCodes.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"796372cd56d35a5e22d140251a114f08e19b1b77154de7e80dd26ac12e74500e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:745-752 | app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:754-763 | app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt:493-500 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6fba1a6925f2cf97493ace430bb15d9912f1f1524a8fac725e8dd886feb94ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:4077-4087 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:4090-4100 \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":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":4077}}}],"partialFingerprints":{"codehealthFindingId/v1":"088fee21d59010da77c76b59ebf66f53fe91cbf65fc3ed07dc2dd0159f9755d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): app/src/main/java/com/example/llamadroid/data/repository/LlamaServerRegistry.kt:203-204 | app/src/main/java/com/example/llamadroid/service/ManagedLlamaServerCoordinator.kt:254-255 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/repository/LlamaServerRegistry.kt"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"319bb23199fd515be064370b03ce2eb9dbfc8133371e63bf722fe31177875e97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): app/src/main/java/com/example/llamadroid/service/DatasetForegroundService.kt:312-329 | app/src/main/java/com/example/llamadroid/service/DatasetForegroundService.kt:331-349 \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":"app/src/main/java/com/example/llamadroid/service/DatasetForegroundService.kt"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67565031612cf0b5d76956f381133e30a0a9f9c3e14603efcedeade06703601"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:188-197 | app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskService.kt:480-489 \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":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"baef326fa129633606768a704ebebdb617978ac37d0466879d31a145eb9638c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferDomains.kt:418-427 | app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferSessionCodec.kt:637-643 \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":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferDomains.kt"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a395c9abb39db24cee77eb172d6cd092871ff7a92860e6a803eb7d426f2c7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/service/AiServerSupport.kt:314-322 | app/src/main/java/com/example/llamadroid/service/AiServerSupport.kt:324-333 \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":"app/src/main/java/com/example/llamadroid/service/AiServerSupport.kt"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"234c916ee83fa8a4d3ac68b8f6011c37d2ecfef2687aa82dfc6ec510cb2faeb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/OrganizerAlarmScheduler.kt:103-115 | app/src/main/java/com/example/llamadroid/widget/HomeWidgets.kt:51-63 | app/src/main/java/com/example/llamadroid/widget/NoteDisplayWidget.kt:69-81 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/OrganizerAlarmScheduler.kt"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5259751315172e5a62287052effa53d311cead7ec57f7a56e6bea71c3fd351"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/src/main/java/com/example/llamadroid/ui/agent/AgentHistoryPaging.kt:87-101 | app/src/main/java/com/example/llamadroid/ui/agent/AgentHistoryPaging.kt:103-117 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentHistoryPaging.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce7d4dbd86e8b431e481638c940577f01ffbdcf290572bf2d2bd701484e26c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessGoals.kt:169-175 | app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessPluginActions.kt:345-352 \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":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessGoals.kt"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"e758a9114ce48239c5c6eccdd264522249a9c30c732c50d254dbd135f85a5a5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): app/src/main/java/com/example/llamadroid/util/DynamicFeatureManager.kt:49-69 | app/src/main/java/com/example/llamadroid/util/DynamicFeatureManager.kt:82-98 \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":"app/src/main/java/com/example/llamadroid/util/DynamicFeatureManager.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d75e7bff45fe49f866c953b0d8b34fc63817a9ad5740b15cda43850ee39aeecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:2591-2599 | app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:2602-2611 \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":"app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt"},"region":{"startLine":2591}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a5aadb258f5cdf943bdfc389a75a1b5f4bc562d710a5c4fae9399c81f61291"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactRecognizer.kt:928-938 | app/src/main/java/com/example/llamadroid/service/AndroidTombstoneSummary.kt:142-153 \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":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactRecognizer.kt"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bea3c49b344beeaea4fd0aa0b907235ed70977fc00d9d037dbdc42b4154e352"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessProjectManagement.kt:187-195 | app/src/main/java/com/example/llamadroid/harness/HarnessProjectManagement.kt:217-223 \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":"app/src/main/java/com/example/llamadroid/harness/HarnessProjectManagement.kt"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"09626020e0dc1e0adcef13e4f6d8b20e189d70c63efe5157d2b159a0709dfcfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/AdventureForegroundService.kt:426-444 | app/src/main/java/com/example/llamadroid/service/AdventureForegroundService.kt:450-468 | app/src/main/java/com/example/llamadroid/service/AdventureForegroundService.kt:470-487 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AdventureForegroundService.kt"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7725768241f4e9900abae0a77f2a47fa790c9de4458966ae45043d01f23a484"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): app/src/main/java/com/example/llamadroid/service/bubble/ChatBubbleOverlayService.kt:162-173 | app/src/main/java/com/example/llamadroid/tama/shimeji/ShimejiOverlayService.kt:196-206 \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":"app/src/main/java/com/example/llamadroid/service/bubble/ChatBubbleOverlayService.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"162b2655304e6b7a31ece842de7be0296338c3e5946fd4be1e713fcc4cfc8cf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): app/src/main/java/com/example/llamadroid/ui/audio/music/MusicWorkspaceDraft.kt:42-47 | app/src/main/java/com/example/llamadroid/ui/audio/music/MusicWorkspaceDraft.kt:49-53 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/music/MusicWorkspaceDraft.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f24a82d90867f78a7fb76bf8b0d6ec78ee9acb3b634ebf4cbe29af637cf11f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:769-782 | wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:798-811 \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":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2fa9c3cb005510c6930b3ca9a51f96d929f41c2bed5fc35e454815cdd45cef2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:424-432 | app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:439-447 | app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:455-463 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"be432062b9166ba76acda9bb3f2cf1eaa4bdc641e89b89fcb74431a7df282a83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/service/LiteRtLmWorkerService.kt:639-647 | app/src/main/java/com/example/llamadroid/service/LiteRtGpuDiagnostics.kt:487-495 \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":"app/src/main/java/com/example/llamadroid/service/LiteRtLmWorkerService.kt"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"72abe2a2ad1380546a054151c0d1e8d68c0b2f415cb6318195a2189083cb0c02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:1491-1502 | app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:1504-1515 | app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:1517-1528 | app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:1530-1541 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt"},"region":{"startLine":1491}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4fb7c748fef6ee90a4325b8d37742a5b8c252bb2445aa3643726d1c508a67c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): app/src/main/java/com/example/llamadroid/service/bubble/ChatBubbleOverlayService.kt:329-341 | app/src/main/java/com/example/llamadroid/tama/shimeji/ShimejiOverlayService.kt:741-751 \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":"app/src/main/java/com/example/llamadroid/service/bubble/ChatBubbleOverlayService.kt"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d6623a9dbe060fb70736d28f5e619a9af6c615740820cd70e8aba84028007a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/com/example/llamadroid/tama/notifications/TamaNotificationScheduler.kt:361-372 | app/src/main/java/com/example/llamadroid/tama/notifications/TamaNotificationScheduler.kt:374-385 \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":"app/src/main/java/com/example/llamadroid/tama/notifications/TamaNotificationScheduler.kt"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"200f3ca7b8cf7c7d912bfdb4d2b1d79804f820af138af9118921f27e12873d94"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt:1866-1874 | app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt:1975-1983 \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":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt"},"region":{"startLine":1866}}}],"partialFingerprints":{"codehealthFindingId/v1":"59612e68118bd7233a45f28a863b12e89d621c6bd30d4c5b9e14ca34ed0b68f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:1226-1230 | app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:1243-1252 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2def872d00de00696109cdafdfaad56addea5f5ecd4f097ed5913fa98e25387"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentForegroundService.kt:821-840 | app/src/main/java/com/example/llamadroid/service/DatasetForegroundService.kt:704-717 \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":"app/src/main/java/com/example/llamadroid/service/AgentForegroundService.kt"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf3dcc62e60a98ad5d27d218e0a546821764ecf4508598a3cd74b29f92e3d185"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:2882-2891 | app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:2896-2905 \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":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":2882}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd8e9ab9cdde1a87d75b1c866573a153f855eb87652271ada896a91fef498ca4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:712-718 | app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmDroneDialogs.kt:446-452 \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":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"7edd7cfaa6e2ce502b1ff994f04ece5db99189fd461d6c17b5cbec123ef25772"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessTurnDetails.kt:791-795 | app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessTurnDetails.kt:977-980 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessTurnDetails.kt"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e6518b5aec99c61704104ba78b192291cbdf46823a1faa1a31897c45d001e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:883-891 | wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:893-900 | wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:908-915 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ec066cd9f13b2ae12996f348da655daf0e324e823504d1b25907ccd7914b74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/data/db/RestoreCoordinator.kt:595-603 | app/src/main/java/com/example/llamadroid/service/SdInpaintImageCompositor.kt:109-120 \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":"app/src/main/java/com/example/llamadroid/data/db/RestoreCoordinator.kt"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f939010d584d3c828c2b927dd579030069ac1e19f30e661b84fa9dbfbb94daf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessBaseCacheRegistry.kt:232-237 | app/src/main/java/com/example/llamadroid/harness/HarnessLocalModels.kt:1101-1105 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessBaseCacheRegistry.kt"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27261bd5984e719aa33ae9dcb4ac652ab72eeb404bb1e1b95ea49adfaafc6b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentHarnessPolicy.kt:101-109 | app/src/main/java/com/example/llamadroid/service/AgentHarnessPolicy.kt:120-128 \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":"app/src/main/java/com/example/llamadroid/service/AgentHarnessPolicy.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ebce35841bb023c7929e1d6b513bcbc1d342c4c127faa504a2e7b7c6d5b777c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferSessionCodec.kt:837-848 | app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferSessionCodec.kt:870-881 \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":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferSessionCodec.kt"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"56a2206c61b0189fb0e3e4e268cf491f011b81aead3546c5892f53b82803c3fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:1253-1260 | app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskRunner.kt:453-462 | app/src/main/java/com/example/llamadroid/service/delegation/DelegateSubagentLoop.kt:41-49 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":1253}}}],"partialFingerprints":{"codehealthFindingId/v1":"6964cf2920c9fc08f779ee08dbe5a8fcb234e20ad011e95230b2ae1ce41d0a0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:3331-3335 | app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:3338-3343 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":3331}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ce46d53107f4750033d8b92ea676edf0297498d94a1d77277f1b0bf21aaaf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): app/src/main/java/com/example/llamadroid/tama/game/TamaDeepDreamRunCoordinator.kt:228-241 | app/src/main/java/com/example/llamadroid/tama/game/TamaDeepDreamRunCoordinator.kt:267-280 | app/src/main/java/com/example/llamadroid/tama/game/TamaDeepDreamRunCoordinator.kt:287-301 | app/src/main/java/com/example/llamadroid/tama/game/TamaDeepDreamRunCoordinator.kt:308-322 \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":"app/src/main/java/com/example/llamadroid/tama/game/TamaDeepDreamRunCoordinator.kt"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e220263fce5c5b306592f765cea2a8be75d12e0918beecfeb8d797215d64913"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:4315-4324 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:4326-4335 \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":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":4315}}}],"partialFingerprints":{"codehealthFindingId/v1":"dac33cb89df5f45ccb1102fe3530902d24b6096303dc9ae9dfc2bb9d303733a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryViewModel.kt:109-120 | app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryViewModel.kt:217-228 \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":"app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryViewModel.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fe55eb6eed449e3a203fb4bb4e61e2789ed0bf65100c44830119900b7ffc8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): app/src/main/java/com/example/llamadroid/data/repository/LlamaRepository.kt:205-217 | app/src/main/java/com/example/llamadroid/data/repository/LlamaRepository.kt:219-226 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/repository/LlamaRepository.kt"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"88592d2f40b004e4f287bcebcf82fbabd2fce1388176fcdd48f0be2758edf641"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/com/example/llamadroid/service/LlamaOcrExclusiveLease.kt:175-184 | app/src/main/java/com/example/llamadroid/service/perf/LockedScreenReport.kt:23-34 \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":"app/src/main/java/com/example/llamadroid/service/LlamaOcrExclusiveLease.kt"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb768e5022f08e2e7c85b80b877d6e258861224bbe35efeb9100a9631b5d95db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): app/src/main/java/com/example/llamadroid/service/MangaTranslationForegroundService.kt:98-108 | app/src/main/java/com/example/llamadroid/service/MediaTranslationForegroundService.kt:100-110 \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":"app/src/main/java/com/example/llamadroid/service/MangaTranslationForegroundService.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc6a5b1ae4d660999acb8705e66c56d47e70e98d49c2661517bad4d8c6bee8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): app/src/main/java/com/example/llamadroid/ui/audio/AudioWorkspaceScreen.kt:419-427 | app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:1687-1694 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/AudioWorkspaceScreen.kt"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8220e83e6e4538dfa323b5005142c9c30175386ad0d61a4009482df0da5a244"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): app/src/main/java/com/example/llamadroid/audio/music/StableAudio3TfliteWeights.kt:262-269 | app/src/main/java/com/example/llamadroid/audio/music/StableAudio3TfliteWeights.kt:285-293 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/music/StableAudio3TfliteWeights.kt"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5bc9d1ef584f01730aed51f5908d201acb919c321f300beec5dcbf284023f24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:2641-2653 | app/src/main/java/com/example/llamadroid/service/DistributedService.kt:357-369 \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":"app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt"},"region":{"startLine":2641}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0bd91a0027d63af2dca59fda14097556bc85d7e8755ad32a5ad189b92c85cac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): app/src/main/java/com/example/llamadroid/data/model/AudioCuratedBundleCatalog.kt:22-37 | app/src/main/java/com/example/llamadroid/data/model/AudioCuratedBundleCatalog.kt:48-63 \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":"app/src/main/java/com/example/llamadroid/data/model/AudioCuratedBundleCatalog.kt"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc16127b379e0b559a16c639feb5dd80c0f2019280b2faea59cfc6022aab2d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/GenerationQueueRepository.kt:229-241 | app/src/main/java/com/example/llamadroid/service/GenerationQueueRepository.kt:256-266 | app/src/main/java/com/example/llamadroid/service/GenerationQueueRepository.kt:268-278 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/GenerationQueueRepository.kt"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c11a71a7ae18710bc9c9069aa03d4df1b8e64c01d5ec0a497556fb2de6251af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/src/main/java/com/example/llamadroid/service/MangaTranslationForegroundService.kt:76-90 | app/src/main/java/com/example/llamadroid/service/MediaTranslationForegroundService.kt:79-93 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MangaTranslationForegroundService.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b03d151683210bbb7bb4577d65bd401acb1536b20b2836a74bea3639f8b8bba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt:2868-2879 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageMedia.kt:321-332 \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":"app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt"},"region":{"startLine":2868}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e53e9ecf80d431ac2244e5142a9d5f68cfafc0566b991c3a27a209ec1e3a7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:3652-3662 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureScreen.kt:524-539 \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":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":3652}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff4b75cdc825b9c5bb69290bce6a3179957e3d4476f10e7a7d2f8a0eada4dca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:5402-5414 | app/src/main/java/com/example/llamadroid/service/SdInpaintImageCompositor.kt:99-107 \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":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":5402}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7feccc8846a42b06d712b6a3e96f52eafbd1015e3a6bea3d573f3250f8d6b7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/com/example/llamadroid/wear/WearCompanionBridgeManager.kt:999-1008 | app/src/main/java/com/example/llamadroid/wear/WearCompanionBridgeManager.kt:1011-1021 \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":"app/src/main/java/com/example/llamadroid/wear/WearCompanionBridgeManager.kt"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"1803fe4626b098a5795b54d83b0fd233363fedb038bb41253a507f1542f495a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessRecoveryFileServer.kt:183-186 | app/src/main/java/com/example/llamadroid/service/HarnessRecoveryTerminalSessionManager.kt:232-235 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessRecoveryFileServer.kt"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc23ff32df553c780b9c8e1cbc11c12cb7244a5a7587935f5d9f5d741bc662c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/TamaMapView.kt:272-278 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:2118-2124 \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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaMapView.kt"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"21dca5268814db0d3da653e3f37db38c427d4bae666f579394c2694a41d4c33a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:2080-2095 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:930-945 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chatlist/WearQuickChatSettingsDialog.kt:200-213 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":2080}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1816cccccb7e8c3555e5284e0f1d1955c23cb3fb29de3c31609ffde952fe275"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): app/src/main/java/com/example/llamadroid/ui/audio/music/MusicWorkspaceController.kt:222-227 | app/src/main/java/com/example/llamadroid/ui/audio/music/MusicWorkspaceController.kt:228-232 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/music/MusicWorkspaceController.kt"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b569f94e430d42704b7dfcb6dd56acc8f106f34e5eb91287dbecdb47e288fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:592-600 | wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:602-610 \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":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"fafaeed38f449126dbc084e182aa8808d6ddfdedee39ea4bd08c88ecf671fe01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 5\u002B corresponding lines): app/src/main/java/com/example/llamadroid/data/backup/NativeChatNotesBackupManager.kt:945-950 | app/src/main/java/com/example/llamadroid/data/db/DatabaseBackupManager.kt:293-298 | app/src/main/java/com/example/llamadroid/service/AgentLocalWorkspaceSupport.kt:209-214 | app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt:1440-1444 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/backup/NativeChatNotesBackupManager.kt"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e661c26d52c5aa2806aa58e2557dced394b21c55dd1d5b5c7eb72ad6ce3678d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentDirectPlanProjection.kt:328-337 | app/src/main/java/com/example/llamadroid/service/VideoGenerationConfig.kt:671-678 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentDirectPlanProjection.kt"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa4b07599d082a39d88de34465e98b7ff4259126b68033954c07dcfa142bc38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentProotTerminalSessionManager.kt:488-497 | app/src/main/java/com/example/llamadroid/service/HarnessRecoveryTerminalSessionManager.kt:380-388 \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":"app/src/main/java/com/example/llamadroid/service/AgentProotTerminalSessionManager.kt"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9895109ddf0e30b4156f5e8ec7375fa4ca62dad72db0bb4da4c7ee9a839734"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentSleepWakeScheduler.kt:145-157 | app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskScheduler.kt:158-170 | app/src/main/java/com/example/llamadroid/service/OrganizerAlarmScheduler.kt:90-101 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentSleepWakeScheduler.kt"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"043a72fb8c0606e98fe409f3c9420b5b0ae5904f042f8526c7d244099c54c355"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:4277-4285 | app/src/main/java/com/example/llamadroid/service/SDConfig.kt:183-190 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":4277}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a0b08858f3f6ff8118bb44770d71f43fc0a0b22dd2987f95ca6b652b1960c78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt:456-466 | app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt:1032-1040 \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":"app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"1993477f16a843e3ed38c161e7b3c4f206e3629274dc76946fd4ee8097cb84b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/llama/MarkdownText.kt:442-447 | app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:2668-2678 \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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/MarkdownText.kt"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"7856825021b494ea077933174aa7154b70597eb3c8a8c57cb1ebee6d29652947"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:5294-5315 | app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:5375-5392 | app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:5394-5411 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt"},"region":{"startLine":5294}}}],"partialFingerprints":{"codehealthFindingId/v1":"db967778ab315586bff349715ce42fe3e8695b98745113fffc103a8395285f73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): app/src/main/java/com/example/llamadroid/data/model/library/RoomModelDeletionJournal.kt:294-301 | app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt:3705-3714 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/RoomModelDeletionJournal.kt"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa5372c059a227878e40487e1aa0b08f732f91bccc857c43c5805698c54691d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): app/src/main/java/com/example/llamadroid/tama/data/TamaQuest.kt:163-172 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:607-615 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:3919-3928 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/data/TamaQuest.kt"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c02eab14c2fa625ce2cb1c48973bb06d2597e01aa2e1bb3e10552f736d0808f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): app/src/main/java/com/example/llamadroid/data/db/NativeChatDelegationMigration.kt:173-179 | app/src/main/java/com/example/llamadroid/data/db/NativeChatServerBindingMigration.kt:24-30 \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":"app/src/main/java/com/example/llamadroid/data/db/NativeChatDelegationMigration.kt"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"c535f580029e40797cb9b2e464f88338af230a19fda1a59c6f7b7250ff99f476"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/VideoInterpolationScreen.kt:1041-1052 | app/src/main/java/com/example/llamadroid/ui/ai/VideoUpscalerScreen.kt:586-597 \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":"app/src/main/java/com/example/llamadroid/ui/ai/VideoInterpolationScreen.kt"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"db9c3514b4381ef3233bd2e3d66e9d3cb7682f517ab735a4b5818114d8bfc247"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): app/src/main/java/com/example/llamadroid/data/proot/AgentProotEnvironment.kt:378-385 | app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeEnvironment.kt:457-464 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/proot/AgentProotEnvironment.kt"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"8382aaea2269891b4c9bfff5a6ae7b8c2ff33e7cff2f0a174b0dc21e66d44e63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/LiteRtGpuDiagnostics.kt:547-555 | app/src/main/java/com/example/llamadroid/service/LiteRtLmWorkerService.kt:628-636 | app/src/main/java/com/example/llamadroid/service/MediaModelSupport.kt:183-187 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtGpuDiagnostics.kt"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d27ffa39a44135e0174a2d56495b14326e6b1bb20660db0632ea77b057b4d78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): app/src/main/java/com/example/llamadroid/service/LiveTranslatorNativeRunner.kt:23-30 | app/src/main/java/com/example/llamadroid/ui/components/RemoteSummaryBackendEditor.kt:56-63 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiveTranslatorNativeRunner.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b9bfa0d0ada0f859d91be9beb01ac61ad677fbddc267d2d45fd0293b98edfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:664-676 | app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt:489-501 \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":"app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb4661b7f4698a322275592ae870c7a2fd4ed6b6d9e6581c003536f854690505"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:2680-2688 | app/src/main/java/com/example/llamadroid/wear/WearCompanionBridgeManager.kt:1067-1074 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt"},"region":{"startLine":2680}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac74289c0ad378981c0e924cfc11ee9814100a3abd6c55a1da71b6391d8d358a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessAtomicFile.kt:76-80 | app/src/main/java/com/example/llamadroid/harness/HarnessSessionAtomicFile.kt:95-100 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAtomicFile.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e9a5f8c8434337a74b43495bab6d68210ed731152532e48033d65db2f81516"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessTransferPublication.kt:312-314 | app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferDomains.kt:429-433 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessTransferPublication.kt"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc4994687432bb7341f8d168f84831718ea0e95926f3b8bc04a902db38d8d1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): app/src/main/java/com/example/llamadroid/service/AiServerSupport.kt:223-228 | app/src/main/java/com/example/llamadroid/service/filestation/http/AuthGate.kt:147-151 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiServerSupport.kt"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"67be4d45f4e0a69df9671c96f2f9dbf555ef07ce7d5f4be82ce45eaf27c05ce1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): app/src/main/java/com/example/llamadroid/service/LiteRtGpuDiagnostics.kt:497-510 | app/src/main/java/com/example/llamadroid/service/LiteRtLmWorkerService.kt:614-626 \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":"app/src/main/java/com/example/llamadroid/service/LiteRtGpuDiagnostics.kt"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da4acb1c0934ca3ec0e54ebe998dfebe5530d686b39bee28135a089ca4774d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): app/src/main/java/com/example/llamadroid/service/LlamaConfig.kt:145-147 | app/src/main/java/com/example/llamadroid/service/LlamaServerLaunchProfile.kt:230-232 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaConfig.kt"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec6230c2df1dce9a0c8e3e5397bce2e65e1bb95b63ca0e5d70b687ffd73ab07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): app/src/main/java/com/example/llamadroid/data/model/LiteRtModelEntity.kt:67-73 | app/src/main/java/com/example/llamadroid/data/repository/LiteRtModelRepository.kt:1066-1072 | app/src/main/java/com/example/llamadroid/service/LiveTranslatorNativeRunner.kt:32-38 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/LiteRtModelEntity.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ce1ce8d440ba9675b136a6a9c269340d975c8e36c206afb7f43e87a607ce80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): app/src/main/java/com/example/llamadroid/data/model/StableAudioModelSupport.kt:49-58 | app/src/main/java/com/example/llamadroid/data/model/library/ModelLibraryRoleSupport.kt:11-17 \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":"app/src/main/java/com/example/llamadroid/data/model/StableAudioModelSupport.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede4bc6e6546b388919b9f90fcb3225bd1e75d7e4bf3f0aa67c197af711e960e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessProjectManagement.kt:478-484 | app/src/main/java/com/example/llamadroid/service/MangaPaintedOcrSupport.kt:763-769 \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":"app/src/main/java/com/example/llamadroid/harness/HarnessProjectManagement.kt"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"18950e7e8164e1d629e900a387c98733629252d25e6f36f94fbeb2abfb75b057"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessRemoteProjectRunner.kt:509-518 | app/src/main/java/com/example/llamadroid/harness/HarnessSshProcesses.kt:139-148 \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":"app/src/main/java/com/example/llamadroid/harness/HarnessRemoteProjectRunner.kt"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02076a8cf51bffae47f3bb113992a95ed9f39db85696b469280c6280d831e5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): app/src/main/java/com/example/llamadroid/onnx/OnnxModelSupport.kt:63-69 | app/src/main/java/com/example/llamadroid/service/SdCaching.kt:12-17 \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":"app/src/main/java/com/example/llamadroid/onnx/OnnxModelSupport.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c356594069fac5207e40bc8873dfc84a84bcabb952702b6224857bccd42cac6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentRuntimeSupport.kt:2667-2672 | app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:3930-3934 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentRuntimeSupport.kt"},"region":{"startLine":2667}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf35a20b1eaf37d4a67ade95082b550698a1a6181b4fc3eac6bf8f77c2649a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:2002-2013 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1414-1425 \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":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":2002}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a0254e9c797636b0a6fd16f057434ea9192091b1a9f539d93264e082fe2de81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:2015-2024 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1427-1436 \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":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":2015}}}],"partialFingerprints":{"codehealthFindingId/v1":"47afd2ac1a1a5a56578fc647f41a7fc4bbc2bf2145d84d94bc9eb6e8547afb22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt:1549-1559 | app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:1854-1864 \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":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt"},"region":{"startLine":1549}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c497ff6d578323a37bc4ecc0ed8d157c2930a695271733c264be77871f3c3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/service/VideoInterpolationService.kt:144-152 | app/src/main/java/com/example/llamadroid/service/VideoUpscalerService.kt:114-122 \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":"app/src/main/java/com/example/llamadroid/service/VideoInterpolationService.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"a464b0400bff9cfd5303da504754c4bd7304844111aab3e848698184d8d5ef67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): app/src/main/java/com/example/llamadroid/data/easy/EasyGgufFlags.kt:69-75 | app/src/main/java/com/example/llamadroid/service/ram/GgufModelShapeReader.kt:121-127 \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":"app/src/main/java/com/example/llamadroid/data/easy/EasyGgufFlags.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"167c464631a508032601177596a89db2ba4982fb4210ab6516f8cdb381003d5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): app/src/main/java/com/example/llamadroid/service/OnnxImageGenerationService.kt:639-649 | app/src/main/java/com/example/llamadroid/service/OnnxTtsGenerationService.kt:309-320 \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":"app/src/main/java/com/example/llamadroid/service/OnnxImageGenerationService.kt"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b9250a9d8feace687c94926a131b3fcf3f4e1bd897136775745caa6f44e3409"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/tama/data/TamaBedtimeRules.kt:39-47 | app/src/main/java/com/example/llamadroid/tama/data/TamaQuest.kt:174-183 \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":"app/src/main/java/com/example/llamadroid/tama/data/TamaBedtimeRules.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ee70d5a8d7cb6f9631f9f30efcbc5d3c17f496e401c92191b3be880a889083"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/widget/TamaFarmWidget.kt:188-196 | app/src/main/java/com/example/llamadroid/widget/TamaPetWidget.kt:164-174 \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":"app/src/main/java/com/example/llamadroid/widget/TamaFarmWidget.kt"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7e3f176da74056880b270038890da7d24710a9861b1c35495bec2106550b5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): app/src/main/java/com/example/llamadroid/audio/music/StableAudio3Models.kt:51-54 | app/src/main/java/com/example/llamadroid/data/model/library/ModelClassificationPolicy.kt:19-22 | app/src/main/java/com/example/llamadroid/data/model/library/ModelFamily.kt:27-30 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/music/StableAudio3Models.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5315d807327dbb05def15174ddb47fd1dbf5c8e6bba9658ebe77f29e6fbbfd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentDurableContractStore.kt:710-722 | app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt:685-694 \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":"app/src/main/java/com/example/llamadroid/service/AgentDurableContractStore.kt"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"734e7bdf017a9645aba46aa74aa89bb7963a1e8fff8fd0eed8661de1175498cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentDurableContractStore.kt:787-799 | app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt:900-909 \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":"app/src/main/java/com/example/llamadroid/service/AgentDurableContractStore.kt"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"1651b7aa707b8db8501cc4e26336080a0bbf2d2ab526d3eb5e46c42cb1cba7a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt:1599-1616 | app/src/main/java/com/example/llamadroid/ui/ai/VideoInterpolationScreen.kt:1029-1038 | app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:2384-2392 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt"},"region":{"startLine":1599}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c8beb91964f7a7249270aafa67cb8a751728358eb4aa3bf76b18e376b89617"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessRootfsFileStore.kt:655-661 | app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt:1278-1284 \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":"app/src/main/java/com/example/llamadroid/harness/HarnessRootfsFileStore.kt"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7ca3db14195006b9013618eeb1b601a1305fccb40dce7da707d5e688b97d24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): app/src/main/java/com/example/llamadroid/service/AgentPromptMessageOrdering.kt:82-87 | app/src/main/java/com/example/llamadroid/ui/agent/AgentChatList.kt:81-86 \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":"app/src/main/java/com/example/llamadroid/service/AgentPromptMessageOrdering.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"caada19e717e5645b682bdbda16873be70c47ff146c73b3050b68dbd059635e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): app/src/main/java/com/example/llamadroid/service/LlamaServerSessionOwnerStore.kt:40-43 | app/src/main/java/com/example/llamadroid/service/LlamaServerSessionStateStore.kt:28-32 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerSessionOwnerStore.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"8206d36a0b145693435bd2522e1bc83e813cb695513b76b5701a6bf2ee94ab47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:1262-1268 | app/src/main/java/com/example/llamadroid/service/delegation/DelegateServerResolver.kt:118-121 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":1262}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a808cb10ca8a52ffc6889402dd62b5c9117dd178d1338fe94347915340d0639"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): app/src/main/java/com/example/llamadroid/service/LlamaServerSessionOwnerStore.kt:27-30 | app/src/main/java/com/example/llamadroid/service/LlamaServerSessionStateStore.kt:15-20 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerSessionOwnerStore.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"e477bb0240c0693b0621b45ee73be2915425db2b2ca2c76d65e4e0611cb85a1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): app/src/main/java/com/example/llamadroid/service/LlamaServerSessionOwnerStore.kt:34-38 | app/src/main/java/com/example/llamadroid/service/LlamaServerSessionStateStore.kt:22-26 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerSessionOwnerStore.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ef35f37c956e8c9e68f0a2e0eefb70c5b062ab3d266c240395566c44834796"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): app/src/main/java/com/example/llamadroid/service/SdGeneratedImageMetadata.kt:512-514 | app/src/main/java/com/example/llamadroid/service/VideoGenerationConfig.kt:561-565 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdGeneratedImageMetadata.kt"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7dccd4e1813bd916a9c8d2609b6ce1ec9e108d06a32257ef93612ee67a3253c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:1267-1272 | app/src/main/java/com/example/llamadroid/util/FormatUtils.kt:44-49 \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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"c034bf4de1c1fdab9cccc976d98329924f34c858e1728f3d2ad9756f3fa428a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:151-159 | app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt:136-144 \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":"app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"1988dec07d38ed99278a1bc9c13cd8b86cf5e3dcc71a2dcdb16fe064ce331233"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateJournal.kt:60-64 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateStoryUi.kt:172-178 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateJournal.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"086cf9c89a748a7d6c1354df4ef9227f78a00898e80b87ea56d78cc97c98988b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt:2042-2051 | app/src/main/java/com/example/llamadroid/ui/ai/QuadtrixTrainerScreen.kt:622-627 | app/src/main/java/com/example/llamadroid/ui/components/ModelStorageOverview.kt:79-84 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt"},"region":{"startLine":2042}}}],"partialFingerprints":{"codehealthFindingId/v1":"104a229ed86c15089d882651791808cdaced7133541bdf2223d3c0dce3b47adb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt:1303-1306 | app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferDomains.kt:586-589 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d271886607dd7876932032d5a033b825d58a8a4ddb82d0eea0e6f0d8388865"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:1582-1591 | app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:2441-2446 | app/src/main/java/com/example/llamadroid/widget/TamaFarmWidget.kt:460-469 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"b910c077498263386c13c359b6367ad59b190d7eb4575e31d447bf23c7097bd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessTransferMetadata.kt:873-875 | app/src/main/java/com/example/llamadroid/service/AgentDirectRuntimeSupport.kt:934-936 | app/src/main/java/com/example/llamadroid/service/AgentDurableContractStore.kt:2041-2044 | app/src/main/java/com/example/llamadroid/service/AgentToolOutputStore.kt:85-87 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or 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":"app/src/main/java/com/example/llamadroid/harness/HarnessTransferMetadata.kt"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"aebb4128248b2e7d59e6128cc6174d95828afb8737e5f1b53d1cfa589154ae9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): app/src/main/java/com/example/llamadroid/data/model/library/RoomModelDeletionJournal.kt:285-292 | app/src/main/java/com/example/llamadroid/sd/SdLora.kt:67-74 | app/src/main/java/com/example/llamadroid/service/DatasetRuntimeSupport.kt:245-252 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/RoomModelDeletionJournal.kt"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"785afeaa79dc9abc60d4f3eec00fbb0c7962184011cf4396ddda1cb84e93a59a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): app/src/main/java/com/example/llamadroid/sd/SdArtifactInspection.kt:63-66 | app/src/main/java/com/example/llamadroid/sd/SdBackendModes.kt:9-12 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdArtifactInspection.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"65527514c049596dde2dca707ec40631c906381e0c97836b3571546005845ee0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): app/src/main/java/com/example/llamadroid/sd/SdArtifactInspection.kt:83-86 | app/src/main/java/com/example/llamadroid/sd/SdBackendModes.kt:22-25 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdArtifactInspection.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff2905347ca672c0c8f79dadd19e4a22752544ddbe8bb688d531e44530e974d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): app/src/main/java/com/example/llamadroid/service/chat/NativeChatSteps.kt:90-91 | app/src/main/java/com/example/llamadroid/service/delegation/DelegationTaskOptions.kt:33-35 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/chat/NativeChatSteps.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"96cb86b0736daa4d053b8e5a75e7c934e2005f0dbc7aa7023452ebc6a949619a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): app/src/main/java/com/example/llamadroid/wear/TamaWearLocationUi.kt:115-118 | wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:3196-3199 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/wear/TamaWearLocationUi.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b3b3b1b2abddb0cfc48bc073902a86a3591ec5829c8b6a7afa333f4259ddf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): app/src/main/java/com/example/llamadroid/data/db/RestoreCoordinator.kt:613-616 | app/src/main/java/com/example/llamadroid/util/DownloadResumeMetadata.kt:68-71 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/RestoreCoordinator.kt"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"58434e5952ca13b8091e66b39a60d04c0138b78266ba83b6ebbf5180324fa47d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): app/src/main/java/com/example/llamadroid/service/filestation/api/EditorApi.kt:169-171 | app/src/main/java/com/example/llamadroid/service/filestation/volume/VolumeRegistry.kt:188-190 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/filestation/api/EditorApi.kt"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa333c0f91c9ad77f18771b9621449467d17194208a9da552ca8ba0ffe98977"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 1\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/filestation/api/FsWriteApi.kt:215-217 | app/src/main/java/com/example/llamadroid/service/filestation/api/ToolsApi.kt:386-386 | app/src/main/java/com/example/llamadroid/service/filestation/api/UploadApi.kt:57-59 | app/src/main/java/com/example/llamadroid/service/filestation/volume/TrashStore.kt:117-121 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 1 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/filestation/api/FsWriteApi.kt"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"5170b7fb8adc5d215c417ef05ec59624b45ae21bf6ac463fff988bd5a399c230"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): app/src/main/java/com/example/llamadroid/service/titlegen/TitleGenerationLogic.kt:57-60 | app/src/main/java/com/example/llamadroid/ui/ai/llama/delegation/DelegationViewerSupport.kt:83-86 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/titlegen/TitleGenerationLogic.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"436ef749fcaef29082b998db28e3b0f33c4c2af48bb56ff9e57e35fb1197d635"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:5055-5058 | app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:2038-2041 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":5055}}}],"partialFingerprints":{"codehealthFindingId/v1":"d571900b7664ed60a1a12f1d5c5667644344f5d364c257d12cb6b526b6c0612f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): app/src/main/java/com/example/llamadroid/wear/PhoneWearGatewayService.kt:23-29 | app/src/main/java/com/example/llamadroid/wear/WearCompanionBridgeService.kt:23-29 \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":"app/src/main/java/com/example/llamadroid/wear/PhoneWearGatewayService.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f59cbebb34cbe5905476711cc613d66981e93cd69a09f9fb885c0534ca6e074"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 2\u002B corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessProjectManagement.kt:163-164 | app/src/main/java/com/example/llamadroid/service/AgentProotRunCoordinator.kt:377-379 | app/src/main/java/com/example/llamadroid/service/AgentProotTerminalSessionManager.kt:710-712 | app/src/main/java/com/example/llamadroid/service/AgentWorkflowModels.kt:491-493 | app/src/main/java/com/example/llamadroid/service/KvCacheKeys.kt:83-84 | app/src/main/java/com/example/llamadroid/service/LlamaPromptCacheSupport.kt:284-286 | app/src/main/java/com/example/llamadroid/service/NativeChatBasePrefix.kt:139-140 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 2 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or 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":"app/src/main/java/com/example/llamadroid/harness/HarnessProjectManagement.kt"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e0be66c6cbb126f0d8910100f9d3f66cc43be851bcb67904bd701c5d75ec72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): app/src/main/java/com/example/llamadroid/service/AdventureForegroundService.kt:417-424 | app/src/main/java/com/example/llamadroid/service/PDFSummaryService.kt:344-352 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AdventureForegroundService.kt"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db8017dced4d53349837a459af46402f32e47e6be1c9766703a4e92de88b39a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:96-99 | app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskService.kt:472-475 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"087f520ea7d3b8adb36c05e6ef567683a49b03e944f1104d8ba620e9ebded299"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): app/src/main/java/com/example/llamadroid/tama/data/TamaBedtimeRules.kt:22-26 | app/src/main/java/com/example/llamadroid/tama/data/TamaPet.kt:82-86 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/data/TamaBedtimeRules.kt"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ba2904840aa9d2876b95b960db14faf23cc82732ace8d6510200480641c468"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt:2217-2221 | app/src/main/java/com/example/llamadroid/service/DeepResearchSupport.kt:304-308 | app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:3902-3906 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt"},"region":{"startLine":2217}}}],"partialFingerprints":{"codehealthFindingId/v1":"00150c922f067d0c2a34c9842d796f0f35b5d6ee897e49476403a1436d530434"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt:1101-1103 | app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferConfiguration.kt:252-254 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc8b0649a403ee455a7e00a6b8e01d4f3136004b0696b174509d9b40d6a9c31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:3704-3706 | app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:4086-4092 | app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskRunner.kt:445-451 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or 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":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":3704}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb0dceed4626c1afb9a254c5de18380160810e7370b520caf05810d1fb811e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): app/src/main/java/com/example/llamadroid/service/SdGeneratedImageMetadata.kt:517-517 | app/src/main/java/com/example/llamadroid/service/VideoGenerationConfig.kt:874-874 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdGeneratedImageMetadata.kt"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b655d5a7f16bfe015ba17cae6ddc106759406a11e0a10a76d41554795b7b64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:699-699 | wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:1618-1618 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c003b83bfdd63e5423293cd2ce6647b931b27e1106cfcb2a08422c10e8bbdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): app/src/main/java/com/example/llamadroid/onnx/OnnxTtsSupport.kt:213-219 | app/src/main/java/com/example/llamadroid/ui/audio/library/AudioLibraryScreen.kt:1108-1112 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/onnx/OnnxTtsSupport.kt"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d537bd97fe7977611467edee47702e0e51db17acd9489f0faf424f95dc04f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): app/src/main/java/com/example/llamadroid/harness/HarnessRecoveryFileServer.kt:456-460 | app/src/main/java/com/example/llamadroid/service/AiServerSupport.kt:184-188 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessRecoveryFileServer.kt"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e14b760af27545f80cadb10acf6dbe4a854cbbfcb70fb75917c2a321b43be5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/VideoGenerationConfig.kt:887-936 | app/src/main/java/com/example/llamadroid/service/VideoGenerationConfig.kt:939-988 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/VideoGenerationConfig.kt:887\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoGenerationConfig.kt"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"d067cc744c95d593f1be71e6d1b70d78bdf5a576354cd40d111a3839e2f6e9e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48\u201350 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:1277-1326 | app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:1336-1383 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f443391bba6c45ef6c2d79f280c25744a4eddba58d7c62923e3dc215dd17f11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46\u201347 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1217-1263 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:2091-2136 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1217\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":1217}}}],"partialFingerprints":{"codehealthFindingId/v1":"84769b3e9d3f88866dba2aa0f2459499c3dd9cee37c8946c1ab51cdb4287be63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40\u201344 lines \u00D7 2): app/src/main/java/com/example/llamadroid/harness/HarnessTerminalDialog.kt:57-96 | app/src/main/java/com/example/llamadroid/harness/HarnessTerminalDialog.kt:201-244 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/harness/HarnessTerminalDialog.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":"app/src/main/java/com/example/llamadroid/harness/HarnessTerminalDialog.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"50865e5cf50e719dbeaa4700463ca343ebb5860cf71fb97ea1bb125b15de50f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4267-4308 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4970-5011 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4267\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4309\u0060 calls \u0060onTranslateSubtitlesChange\u0060, \u0060optBoolean\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5012\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":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":4267}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b1ca2d9acdf8eca082e84017b38b1117265797d7aa90337b40e0f6f572389e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201340 lines \u00D7 2): app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:235-273 | app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt:166-205 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 280 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:235\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":"app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"67261d221aca333cf46b30bce3a361c0ddc183ecb70771c6bf30d4ad5a58825c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:136-173 | app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt:86-123 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 280 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.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":"app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a81fa6cf521a0c43858bdc337115873b769d8359edd9d9cd0732bd0c920326f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201338 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/ModelShareService.kt:172-209 | app/src/main/java/com/example/llamadroid/service/ZimShareService.kt:152-185 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/service/ModelShareService.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/ZimShareService.kt\u0060 as WHOLE FILES: this scan already matched 8 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/java/com/example/llamadroid/service/ZimShareService.kt:145\u0060 calls \u0060i\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/ModelShareService.kt:164\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":"app/src/main/java/com/example/llamadroid/service/ModelShareService.kt"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef66193d62b25edf11e014ec671b259fb1c1e1e48cfd36ecc57217a57ecac9d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4320-4372 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5029-5081 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4320\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":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":4320}}}],"partialFingerprints":{"codehealthFindingId/v1":"e910fdcf6cfc0240a1ecb70aa57e93c14aeb870ad2f653a6dec7bd02c1a2b830"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:309-344 | app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt:242-277 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 280 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"64542fac6508f8cfcf7b54a2907047d40742d417f3daef98eb9526279cfa3dbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:2903-2937 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:3066-3100 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:2903\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":2903}}}],"partialFingerprints":{"codehealthFindingId/v1":"89834b7a95eb52831d6b3960b71ae9225057540ec858a7e69f46853ee0d34132"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:3180-3214 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:3287-3321 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:3180\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":3180}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8dd5c02d07cec05ff873576cfae866ed9ab0403dae4f138fc5598c6c7b9f85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt:460-493 | app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt:302-335 \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 \u0060app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt:460\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"774b936e986c3c69befc12a631ad845a7e74ac12ff9f0020673da7b0fc94dfd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:3586-3618 | app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskRunner.kt:369-401 \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 \u0060app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:3586\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":3586}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5dd019be5a956c443d7ce4be70407c9622bd08eb9217233ea22e6f3c5583e30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201333 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4175-4205 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4488-4520 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4488\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":4175}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd736dd7fafb0292dcbcc560697bac7ad911646ae08e8219031add4bd3b9bac4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:891-923 | app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt:587-619 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"f156a97494527076a44d58cec2db5b67c5cc4f87bb2638b6f7c13c191bb4871f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201332 lines \u00D7 3): app/src/main/java/com/example/llamadroid/service/SdCliSupport.kt:265-295 | app/src/main/java/com/example/llamadroid/service/SdCliSupport.kt:647-678 | app/src/main/java/com/example/llamadroid/service/SdCliSupport.kt:719-750 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/service/SdCliSupport.kt:679\u0060 calls \u0060isNotEmpty\u0060, \u0060SdUnsupportedModesException\u0060, \u0060toList\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/SdCliSupport.kt:752\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":"app/src/main/java/com/example/llamadroid/service/SdCliSupport.kt"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a1cc5016e2fff2548c7edf9cd3e121360747ae12b447167239d8e0e4c556fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201332 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:1924-1953 | app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:1806-1837 \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 \u0060app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:1924\u0060 it does not close everything it opens, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:1838\u0060 calls \u0060isNotBlank\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:1954\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":"app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt"},"region":{"startLine":1924}}}],"partialFingerprints":{"codehealthFindingId/v1":"8271d52fa8a4da87ee9904a1507e6ff76be2b29cafc7f12b70ef73d746722e28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201332 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:157-188 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:191-219 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a1f958b1708bf1812bcb6bbf372944e1ef0ae48c1eb53c161ce40ff3ddbbb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentImageOperations.kt:166-196 | app/src/main/java/com/example/llamadroid/service/NativeChatUnifiedImageGenerator.kt:109-139 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentImageOperations.kt"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"723f0e21ac0f7c52465768e884703b99f41a2f2de96bd63bd4dbcb8df4b6efc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201331 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4893-4921 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5188-5218 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5188\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":4893}}}],"partialFingerprints":{"codehealthFindingId/v1":"d606a7013944ef5cf372397bbccf8f27a4ba6e41bbcb50236aaf7b7239f15c7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:140-170 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:411-441 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:140\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"b252766d7ee80cd8bb23b7cb719fe569eb488378a4287ff7a9859f3f0c900e44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/WhisperVadModelsSection.kt:399-428 | app/src/main/java/com/example/llamadroid/ui/models/WhisperVadModelsSection.kt:477-506 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/models/WhisperVadModelsSection.kt:477\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/WhisperVadModelsSection.kt"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9be830507daed3a29501d9107c3ca5488d89526d1d1bdfee9e4e93c2e24126c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/model/DownloadTaskSupport.kt:48-75 | app/src/main/java/com/example/llamadroid/data/model/DownloadTaskSupport.kt:94-122 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"app/src/main/java/com/example/llamadroid/data/model/DownloadTaskSupport.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"61cf704c6401aa2ad7257b171ad2bd9e116e4a8eef3be0ce2a7de964c55efe7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt:962-990 | app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt:1115-1143 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt:962\u0060 it begins part-way through the construct above it, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt:991\u0060 calls \u0060log\u0060 and \u0060app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt:1144\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":"app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"b897ee3b38f7eb9308a12eb52d8e22d2a4af6523d01031ba63e3ed2e04e6a583"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:1163-1191 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:1337-1365 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:1163\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"f59951dbdb2eff8034299a363b9462f2773ea0ba0d93e5dc597cae9cf5f860f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1495-1523 | app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1764-1792 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":1495}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f210439feb07e8ad9d5b847c75f02bd2b8cb3edf5e4934ebb5d2781863e526"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:354-382 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:628-656 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"960fbbb60f82d41aba4ba248acfaac56d9c82d3c2f02ea782b8a13a554c570a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201329 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundlePicker.kt:152-174 | app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt:292-320 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundlePicker.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundlePicker.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af445f60fe5e306f926a14f7bf7e2966d064a3cf66bacd893dfc25ac6a3518e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:880-908 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:990-1018 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:880\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:989\u0060 calls \u0060Spacer\u0060, \u0060height\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:879\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":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62d6a6557a4f159a8c1ce4d51c0b9ce53dcf08e524de336e906f028a9bd06f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:12047-12074 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:12962-12989 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:12047\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":12047}}}],"partialFingerprints":{"codehealthFindingId/v1":"4703fae41b08b3cf3c256b09202fe9ff414ce70d23b78ee6e8b4e9eed92c3671"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:3783-3810 | app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:2047-2073 \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 \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:3783\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":3783}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2829cd8eccc64868da613182fedfb7ee47ca8d57e2c20218d0a1d2f82ed0e55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:3968-3995 | app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:4001-4028 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:3968\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":3968}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ecc73c3e7ebdb37365a967f858627e8231f3f86835442c026365e505684612b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:2898-2925 | app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:3031-3058 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:2898\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":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":2898}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b40490896df44f66d3d9524897cf24db2cbbc270545302bca7d67e5e078aadb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1308-1335 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1426-1453 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1308\u0060 it begins part-way through the construct above it, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1454\u0060 calls \u0060toLongOrNull\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1336\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":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":1308}}}],"partialFingerprints":{"codehealthFindingId/v1":"e026c7cf7a32db0fa94dbe0bca0ea0a75154a5cc1142f679dec2d6c6b453171a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): app/src/main/java/com/example/llamadroid/util/AssetPackManagerUtil.kt:270-297 | app/src/main/java/com/example/llamadroid/util/AssetPackManagerUtil.kt:363-389 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/util/AssetPackManagerUtil.kt:270\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/AssetPackManagerUtil.kt"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd965b932f80beb4d19f0d075930999b372af9cf44f4ab71395c5d763cb3bef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt:851-884 | app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt:1021-1054 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt:851\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"32fb5cc2acb0470ea1b8842fe40829912833f6052d161bcb0a97f5cb66cde152"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:475-501 | app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt:291-317 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 280 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3f6c1182bfc390f194f8fca6c3828fe74e221d66b315be03deef907abdb4ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt:239-265 | app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt:296-322 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"897cc00367053dc567f8f0ae1bc0102c96258e3f2d75c15d7b321a9e7c47bdf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:1084-1110 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:1254-1280 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":1084}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c9fee4f9bf80674d1f04b4b03db6030fb53452b780b4b7a70180b6e3a098c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:940-965 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:1050-1076 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:1047\u0060 calls \u0060imageLoras\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:937\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":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d65c8594fe759649ff63ba64f86a1526662e4579b0ac25bdf0fad26466c7cbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:537-563 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:638-664 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:537\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":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c0ba7597d3e0d0c7956c38bc24cce62edca73dd5cb2512b4941e16a359e21c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1246-1272 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1378-1404 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1246\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":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":1246}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cddd6398bcd992a4b91db601f7db549442c2347b12a41c9c3add32da50ce95d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkHistoryScreen.kt:352-378 | app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkHistoryScreen.kt:509-535 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkHistoryScreen.kt:352\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkHistoryScreen.kt"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"874e4f6ce8b5c31f253a11cc733c0a08720c023c2fa4b276c57c96e0dd16df98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/NativeVideoRecognitionRuntime.kt:162-187 | app/src/main/java/com/example/llamadroid/service/NativeVideoRecognitionRuntime.kt:206-231 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeVideoRecognitionRuntime.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"a411bdadbfdc70e1664b6bf4dd36590d1dda604bec8978b86d83f9d49d2d28f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:492-517 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:2074-2099 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:492\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"0871bb38a5301996574019e093a5693daaf9972d15554f78cf49aa459313a0d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/repository/LiteRtModelRepository.kt:689-713 | app/src/main/java/com/example/llamadroid/data/repository/LiteRtModelRepository.kt:729-753 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/data/repository/LiteRtModelRepository.kt:689\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/repository/LiteRtModelRepository.kt"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2d8c23036c6163925fcc204e582ac346b660860f8da2ab6b348c94211db85a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:12217-12241 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:12325-12349 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:12217\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":12217}}}],"partialFingerprints":{"codehealthFindingId/v1":"8caafe34347b4a041cd7d95be593e5cac7dd0659265aee91126cf48220f4ff27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201325 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:12268-12289 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:12382-12406 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:12268\u0060 it begins part-way through the construct above it, so those exact 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":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":12268}}}],"partialFingerprints":{"codehealthFindingId/v1":"746dfc99c56b16eb287e1e5ea67bdf88d34ae29629d709e11e1e4443c58a8dd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/DatasetBackendSupport.kt:82-106 | app/src/main/java/com/example/llamadroid/service/DatasetBackendSupport.kt:170-194 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/DatasetBackendSupport.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 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":"app/src/main/java/com/example/llamadroid/service/DatasetBackendSupport.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"0253842c28f2704d50b80d7aa728d8506050d73e1560058901d1b2f91ac6cc34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/game/TamaMemorySupport.kt:190-214 | app/src/main/java/com/example/llamadroid/tama/game/TamaMemorySupport.kt:217-241 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaMemorySupport.kt"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28fe77bcf6f082419bc8f41645d6291279bd7d1a014edbdfc51e6f795ab10a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1337-1360 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsControls.kt:184-208 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1337\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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46013165a3e3b63ed0650ff29694f1d6f7052ba7c3b25ec5fa8634a3d7f530f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:309-331 | app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:160-184 \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 \u0060app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:309\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"113d67cf9c54134029b15349d6e6a504d6d76cad2403844d56f663ba8083e549"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:2017-2041 | wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:2151-2174 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:2017\u0060 it begins part-way through the construct above it, so those exact 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":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":2017}}}],"partialFingerprints":{"codehealthFindingId/v1":"86cae060c0979ebd75564da6bb4d90e8028dde1c167430d58871a696545c9876"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:4107-4130 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:4176-4199 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":4107}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b66cb9cf868eb24c2b68cad04a39ddfd85768fa6fe413d9883e223e5d65795"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentRuntimeProfileControls.kt:602-625 | app/src/main/java/com/example/llamadroid/ui/agent/AgentRuntimeProfileControls.kt:675-697 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentRuntimeProfileControls.kt:602\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentRuntimeProfileControls.kt"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"559200593b788dfacd333696bcbc7d9c4335cd8fc2f59afab40dfe2d4d4e519f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1456-1479 | app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:535-558 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1456\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":1456}}}],"partialFingerprints":{"codehealthFindingId/v1":"9091a8766a9623b13a0b1b6aeb032a065444f463c1b6d4252a88d50d39d770b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:745-795 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:1628-1678 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:745\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e7f4904fcff420de7b06b249de30a5415883c0972c2d20ecaa48501883cc48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201324 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/VideoSumupScreen.kt:898-916 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFSummaryScreen.kt:414-437 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/VideoSumupScreen.kt:898\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoSumupScreen.kt"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"538d8a308e3a398e405a4adc0896d464b4d72eff015617241c181a2cc9c372c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:3987-4008 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5412-5435 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":3987}}}],"partialFingerprints":{"codehealthFindingId/v1":"70cb1c8eca24f62f7afa97e79903ce0a447ed32aa40b8f1848cdb4a6e4ffcd84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6301-6323 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:7135-7158 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6301\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":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":6301}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4161763a48e29cf4764e838cef0a09f07dfea29a07d113c34ea294b8fdb543c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201324 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsEnvFactory.kt:54-68 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/LlamaChatScreen.kt:170-193 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsEnvFactory.kt:54\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsEnvFactory.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"27911581b144d4a724a12585c1d92ca5dd064865c9a36d68b79abdd23a75e9ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:1987-2010 | wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:2119-2141 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:1987\u0060 it does not close everything it opens, so those exact 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, \u0060wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:2117\u0060 calls \u0060ErrorText\u0060, \u0060stringResource\u0060 and \u0060wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:1986\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":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":1987}}}],"partialFingerprints":{"codehealthFindingId/v1":"364567e2b01411dd27a0ee1ac87a4862874f7c4d374620269c12887b9d2d5d25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 4): app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:555-576 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:656-677 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1263-1285 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1395-1417 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:555\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d6bbc472e04e092715655fc17a5b1b8052071b3362f40bf85cb186a2e19d14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): app/src/main/java/com/example/llamadroid/service/PDFService.kt:6246-6268 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:6463-6485 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:6694-6716 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":6246}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f099309095876408940bad108cb9daaf3349b43b375ba391e4d45de2538369"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/model/ModelLibraryManager.kt:66-88 | app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt:272-293 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/ModelLibraryManager.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"810f12a6a8e3b31ebe0157aa0b22b0d213cb8fd7f96f7883b61245f64086713a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:905-927 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:3635-3657 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:905\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"a148edfcc0f4f4d841740c82ee0f4df3ebb6dc2207efc581b8ebe626bde837dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/VideoGenerationConfig.kt:371-393 | app/src/main/java/com/example/llamadroid/service/VideoReusePayload.kt:343-365 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoGenerationConfig.kt"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d03cd4f1f4a1c7b20b8ef1d321166ffd330ebb93129470684c10caf9816c41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/shimeji/ShimejiChatActivity.kt:71-93 | app/src/main/java/com/example/llamadroid/ui/bubble/ChatBubbleActivity.kt:53-75 \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 \u0060app/src/main/java/com/example/llamadroid/tama/shimeji/ShimejiChatActivity.kt:71\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/shimeji/ShimejiChatActivity.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"72dc596e1107b036e81aa3e2967adcb5fa7f76592e55966bbaad0e7fb3887ca3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:1291-1313 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:1866-1886 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:1291\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":1291}}}],"partialFingerprints":{"codehealthFindingId/v1":"88545981c021979eb2f6765514814c789b3939647a97205225b0eb30e3e8cfdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt:1613-1635 | app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt:1708-1729 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt:1613\u0060 it does not close everything it opens, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt:1611\u0060 calls \u0060rememberScrollState\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt:1707\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":"app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt"},"region":{"startLine":1613}}}],"partialFingerprints":{"codehealthFindingId/v1":"66bd5d067c978012184d45f67526f78efc8f5d8ca4dc92f638da07e99478a8b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1186-1208 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:2062-2082 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1186\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":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6f8200cb8c93a0ca6c31f3a9734b6e832595668b4a47581a58371617e64a2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:1966-1987 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:2163-2185 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:2163\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":1966}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b9c659f87133188a74621cbe86fdb1f8e1f615ca49b1b717502b4b0c947da9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1779-1801 | app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1949-1971 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1779\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt"},"region":{"startLine":1779}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d22c0d7145cfa75a42afeda55d4ef0fadaafd36b0799c088f946296d597c274"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201322 lines \u00D7 4): app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:3583-3604 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:121-138 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:335-352 | app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt:351-368 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:3583\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":3583}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87fa4a1eacb62bf4d3076697fe0a9994bd311210a558801e4413f1ff5609ddb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201322 lines \u00D7 3): app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:583-599 | app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt:371-387 | app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:4143-4164 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:583\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":"app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9474ba3bec9a2c5bb1f6f99fd9479acdb45d40cf2685a05c0a371acd6135f6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201322 lines \u00D7 2): app/src/main/java/com/example/llamadroid/audio/AudioStorage.kt:101-118 | app/src/main/java/com/example/llamadroid/audio/AudioWavSupport.kt:156-177 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/audio/AudioStorage.kt:101\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/AudioStorage.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"a97e55be6684647ee647dcc639fb3018bb31c474a5c3b05c9319d0fd9e3357c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt:715-736 | app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt:766-787 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt:715\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70c043e0d52f897d9dd1c36364a563c995be3580d0f2ad7f96f880cc8e9febe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt:521-542 | app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt:1003-1024 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d2875c3584e21ac5e08328c3996469164401bd2c8cf9758db24e49ffa23c45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:4279-4300 | app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:4538-4559 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:4279\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":4279}}}],"partialFingerprints":{"codehealthFindingId/v1":"e114dbbfe801165c9a1456f8d8efdc19ffad6aca947aac00e1709c192207d04f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/GenerationBatteryOptimization.kt:255-276 | app/src/main/java/com/example/llamadroid/ui/ai/GenerationBatteryOptimization.kt:285-306 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/GenerationBatteryOptimization.kt:255\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/GenerationBatteryOptimization.kt"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b8450043c27dfbd4de421ea5335e88008d3ee62fde2a6814e7c249dab82e5d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:2657-2676 | app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:3453-3474 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:2657\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":2657}}}],"partialFingerprints":{"codehealthFindingId/v1":"7664a94056dd625f20544a5717aa68b5519d29004d42510c462184a598862fd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:584-604 | app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:578-599 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:584\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4034e32c6fe8d223ede07b24878836454455254863a4f4d1b13914d75814ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt:356-377 | app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt:542-563 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt:356\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab367d571418175f2d281c9504c1fb350848b282788102da4c4e3179356520d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6280-6299 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:7112-7133 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6280\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":6280}}}],"partialFingerprints":{"codehealthFindingId/v1":"f11174c748935ba0c25a5019c068edff31327fb87b55b70bcce8d55739d0e3f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201321 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:3772-3789 | app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1988-2008 \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 \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:3772\u0060 it begins part-way through the construct above it, so those exact 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":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":3772}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c9c51a060adeeddd9239689924c897207b6bc1eededd249d5f20777a25c99f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/FastsdGalleryScreen.kt:109-129 | app/src/main/java/com/example/llamadroid/ui/ai/FastsdGalleryScreen.kt:273-291 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/FastsdGalleryScreen.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9bd69cb6d6429269d6f800940aad062f7c738ec5a7a9614d71fb410f233e23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:4704-4724 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6829-6849 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:4704\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":4704}}}],"partialFingerprints":{"codehealthFindingId/v1":"51683a3b0d344062be7cbc6978d478d79951566b5998d454ac47a2e911b61f41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/QuadtrixWebUiScreen.kt:223-241 | app/src/main/java/com/example/llamadroid/ui/ai/TermuxWebViewScreen.kt:165-185 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/QuadtrixWebUiScreen.kt:223\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/QuadtrixWebUiScreen.kt"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"5819bed70e2f0c952705426c20f29c3d4a03bc54e50914d771eceb1588d9c92a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt:387-421 | app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt:574-608 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt:387\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8e3bda222b1bd5522fbfab0af8ed04a9c12768d39f195eca0be4d33780f7c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6185-6204 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:7029-7049 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6185\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":6185}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eae82cc154791a6cc44150c0923eb07cfc900b4aa2e87f19fb08c0773480f76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:4290-4309 | app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:4549-4568 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:816-834 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:4290\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":4290}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9812e0b28e2f7b76c3b997caabf7014c59542be75a3033bacfc9c2e8c01343e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:667-686 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsEnvFactory.kt:27-46 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/LlamaChatScreen.kt:142-161 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3f919cfcbbe3722bd995abe90249c923d9b1932b43b4cd1bb3ffc40f7201ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:63-82 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:269-288 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:562-581 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:63\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"7908c9c3521da88b2c49abf987819a6ccd84d397b8cbc28898f6995ee6db865d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:384-403 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:666-685 | app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt:400-419 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd194b8f398585e4b2d8e510e9fc844ad2f2993040a92cca1bc0553be9623a16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/DownloadService.kt:1839-1858 | app/src/main/java/com/example/llamadroid/service/DownloadService.kt:2043-2062 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/DownloadService.kt:1839\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":"app/src/main/java/com/example/llamadroid/service/DownloadService.kt"},"region":{"startLine":1839}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1f221cdf328864ce7ff0613dd568fcb61098e05acbbb1a0aeee0a7c85eb078"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/GenerationQueueRepository.kt:70-88 | app/src/main/java/com/example/llamadroid/service/GenerationQueueRepository.kt:188-207 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/GenerationQueueRepository.kt:70\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":"app/src/main/java/com/example/llamadroid/service/GenerationQueueRepository.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"4584ed290214fed687fb8dd108bc234d248fb2dab0c43af6a2e8a67b92ef7f73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFSummaryService.kt:84-103 | app/src/main/java/com/example/llamadroid/service/VideoSumupService.kt:84-103 \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":"app/src/main/java/com/example/llamadroid/service/PDFSummaryService.kt"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a48295aa0ce665a75a4b1b8607c9956db1a455adac368b04efe2585e9a4384"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:875-894 | app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:1225-1244 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:1225\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:1223\u0060 calls \u0060onPreview\u0060 and \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:874\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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7adcf97b361515d088c4531256299d5d0846cc8dc778ca25f26520370ab087"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:656-675 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:5662-5681 \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 \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:656\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f154eb7818c871b65947509285467076230ef548e4e6b371306ef846b1a2094"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:770-789 | app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:1500-1519 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:770\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b136c5fc96528b6830c5df18bd7089f17f29ef5709b55797289828301c1db5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4234-4253 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4942-4959 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4234\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":4234}}}],"partialFingerprints":{"codehealthFindingId/v1":"543163b20166139e9a584b58467654c9f79cd30cc95d2d519fd93085e6fbc6c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1411-1430 | app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1700-1719 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1411\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":1411}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7eb34f1b690733076650f312880924d2bdd72abdfcb31875fcef20c3e8e2ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/audio/library/AudioLibraryScreen.kt:839-858 | app/src/main/java/com/example/llamadroid/ui/audio/library/AudioLibraryScreen.kt:915-934 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/audio/library/AudioLibraryScreen.kt:839\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/library/AudioLibraryScreen.kt"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57fe9c9d3f845bb72573f58ac4c862cc2066d643c4d03b1b79cd140773f037b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:690-709 | app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt:292-309 \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 \u0060app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:690\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e956489cb69d5da587004d4ce2e11957a860e932d60ddd0ca51e62fe8c03f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 6): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1595-1613 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1659-1677 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1690-1707 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1787-1804 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1875-1893 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1906-1923 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1595\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":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":1595}}}],"partialFingerprints":{"codehealthFindingId/v1":"5837121b9788868e03e20fb53045d93e188dbba58248a63de78d4208369b7132"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt:441-459 | app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt:597-615 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt:441\u0060 it does not close everything it opens, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt:594\u0060 calls \u0060updateProgress\u0060 and \u0060app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt:436\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"358a6a0ebc18671041134e270d6bb023f7742d0f505bb8e4b1b1a8e79834479e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactFinalizer.kt:299-317 | app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactFinalizer.kt:373-388 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactFinalizer.kt:299\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactFinalizer.kt"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0f3ad8c8ce8eafaed0460b91e5623440f0fdbd43a83f95d618d84fd9a5d325"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt:992-1010 | app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt:1144-1162 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt:992\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt:991\u0060 calls \u0060log\u0060 and \u0060app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt:1143\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":"app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"26cfcb216f0a084afe2fe6450a68c00810cac63a14d4458413a38233c7cdb418"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:107-125 | app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt:62-79 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 280 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:107\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b6981c688233f777c5e731e305d8e87567b5a914598fce279afdc09e4fb298"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:622-640 | app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt:375-393 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 280 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"185f8523a8c4c1030bab55e150f326a953831b1edf16fd30de6ff7d48d68b9c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/LlamaServerLauncher.kt:190-208 | app/src/main/java/com/example/llamadroid/tama/game/TamaDailyDreamManager.kt:699-716 \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 \u0060app/src/main/java/com/example/llamadroid/service/LlamaServerLauncher.kt:190\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerLauncher.kt"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc879de6ed04f64f871fd65c4fbdda9bfc219e047a5b8807c216ecb2ab6d7d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/LlamaService.kt:384-402 | app/src/main/java/com/example/llamadroid/service/LlamaService.kt:550-566 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaService.kt"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9988430aa569063f5892a6489b00914acafba37c8bf54bbbf5c70cb654b4aca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/OnnxImageGenerationService.kt:291-309 | app/src/main/java/com/example/llamadroid/service/OnnxImageGenerationService.kt:315-332 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/OnnxImageGenerationService.kt:291\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/service/OnnxImageGenerationService.kt"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b7a3f127df2127fc37883878e8db342bc026fa152728a90b70b483791e9e2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/ArcadeMemoryGame.kt:757-775 | app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt:1404-1422 \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 \u0060app/src/main/java/com/example/llamadroid/tama/ui/ArcadeMemoryGame.kt:757\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/ArcadeMemoryGame.kt"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"a550e793b6b23dea4f474ff6f85fbf21c255d69f08c32d932e1b96ed87fec186"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:1120-1138 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageMedia.kt:66-82 \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 \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:1120\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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b7e38a90d915b1aea537ad030a85a56dbb7f1b33aaca05813d16ec0f717bdda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:1139-1157 | app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:1184-1202 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:1139\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"04638fcb006bd38414187ade546ac0c74832f8594ec70bf9c6e4cdacfe115b92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:310-328 | app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:419-437 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:310\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ffef4e6bb18cc6e53ef06552f0240fdc1ddaee52aae5a53517cdc3f8edf460"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentRuntimeProfileControls.kt:524-542 | app/src/main/java/com/example/llamadroid/ui/agent/AgentRuntimeProfileControls.kt:653-671 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentRuntimeProfileControls.kt:524\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":"app/src/main/java/com/example/llamadroid/ui/agent/AgentRuntimeProfileControls.kt"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c58533a3333ff76d00677b5664c4143b6516f72c7cc704d0f0af4dc994d12a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/CustomToolsScreen.kt:236-254 | app/src/main/java/com/example/llamadroid/ui/components/ApprovalQueueDialog.kt:42-60 \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 \u0060app/src/main/java/com/example/llamadroid/ui/agent/CustomToolsScreen.kt:236\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/CustomToolsScreen.kt"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"d973ca4f75d29865103d4e08f0394ef1be7de7073b7e49c9ca9c0d624a55c1aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:1981-1998 | app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:2124-2142 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:1981\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":1981}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c258431a2aba6862652256b8ccba2cc69f79fc71219d83c24fbfc58bbafddb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/LiveTranslatorScreen.kt:893-907 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsSections.kt:810-828 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/LiveTranslatorScreen.kt:893\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/ui/ai/LiveTranslatorScreen.kt"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7bfd94cb98930c27b717de9e0488a0d2f50c10edbc80da0ba712204b0cd144f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:2926-2944 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:3224-3242 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:2926\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":2926}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e7813a73f3613ddc8cd56fcf6257594df8ede15103e887c48ca470cf30ec2a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:2954-2972 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:3251-3268 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:2954\u0060 it begins part-way through the construct above it, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:3269\u0060 calls \u0060isNotEmpty\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:2973\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":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":2954}}}],"partialFingerprints":{"codehealthFindingId/v1":"846d57577535291de65104074e7692e5b9bd25caf570ed3e32bf9a7de390eebd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:339-357 | app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:1766-1782 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:339\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":"app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef7345207b8eec00df9d83fbd933447003ddd02648696f5c795fb689e9aa329"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1718-1736 | app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1791-1809 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1718\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt"},"region":{"startLine":1718}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b54fee9655d3ef7d7c59cec06942d8b48ec80a938233840f1cbd66c9ab183c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 8): app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:455-472 | app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:540-557 | app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:860-877 | app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:910-927 | app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:961-978 | app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:1019-1036 | app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:1074-1091 | app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:1148-1165 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:455\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:1147\u0060 calls \u0060log\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:859\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":"app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"f15925f9d9f68b04ae436c746634d889d935f3f16dc9cd3100de8615927d60cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 4): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4349-4365 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5058-5074 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6315-6332 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:7150-7167 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4349\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":4349}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3d53b33d60e0250f16c22ca7b91817b7cad07109bf7015eb55a7042f76db67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:325-342 | wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:356-373 | wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:391-408 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:325\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4de8ae2679f559a498734c06e3c485578098e04c3ac973a06b4ad9f23c58b9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:599-616 | app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt:352-369 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 280 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb5866706c6912de5787378677ba53d911bf068b91313252c2f2314f61e9900"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:8792-8809 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:8903-8919 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:8792\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":8792}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a752f6ac693bc51e2a2abe4bfe15b452052a56bac9d5bceae5aa5d952d8f545"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:9367-9383 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:9444-9461 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:9367\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":9367}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12cdcbdcda5e5987a796e191d286c8024d36ff25699cc27f8f4dd332432baf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:18241-18257 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:18283-18300 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:18241\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":18241}}}],"partialFingerprints":{"codehealthFindingId/v1":"32247fa9fc17cc55a14e26e424df55b5848f59a46fc5d14dabe53d38c4e80328"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:1216-1233 | app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:1288-1305 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:1216\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt"},"region":{"startLine":1216}}}],"partialFingerprints":{"codehealthFindingId/v1":"42789f3b022dca651d378e1fc4bec75d3a0f97da59493b7d0afcf0d697d4899e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/DeepResearchService.kt:457-474 | app/src/main/java/com/example/llamadroid/service/KnowledgeBaseIndexingService.kt:240-257 \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 \u0060app/src/main/java/com/example/llamadroid/service/DeepResearchService.kt:457\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DeepResearchService.kt"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae9c0d526eeb0c29daba6b27ad4e0b3903abb510b5c342c34c70d058abc3f83e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:1820-1837 | app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:1844-1861 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:1820\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":1820}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19d6ffd9ea7fe6b29ba14caa53a02fe7cb8d5ef3b708048fecbf3d6898d8ad9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:1194-1210 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:1253-1270 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:1194\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":1194}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d0fc08f3c3aefc99543e2e2ca939a25f632e4e730a519f7c611a8cffbf1e31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:2259-2276 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:2277-2294 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":2259}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ef24d4664dc6923980eaba9282a72d53de7a2accec8ada96a32c6282e377ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:6010-6027 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:6110-6125 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:6010\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":6010}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3649569c9a04d2e652e53e666f29dfdb311a5d1545614b73cdce6a4801e0ecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt:1030-1047 | app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt:1167-1184 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt:1167\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7c0cd0f7b67323cf7374111237a5fa191faf3e742b0c9340718c3d9b46f654"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201318 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/ArcadeMemoryGame.kt:707-724 | app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt:1361-1373 \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 \u0060app/src/main/java/com/example/llamadroid/tama/ui/ArcadeMemoryGame.kt:707\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/ArcadeMemoryGame.kt"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"893d46b27fb2e9f2ccbe6bdc4d5b25991594c6a12914e5af6116c85bd5a69377"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:389-406 | app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:504-521 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:389\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"98906e7a465f73409f5b0d6b3c8bf2fc02a93ea25739951da7985b16f72c7c4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201318 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:2226-2237 | app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:3579-3596 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:2226\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":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":2226}}}],"partialFingerprints":{"codehealthFindingId/v1":"58bc248b9d3064e74cd6a4fa8c21bbf6fb61784295e13670554a3741a6e447ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:3728-3745 | app/src/main/java/com/example/llamadroid/ui/agent/AgentRuntimeProfileControls.kt:1221-1238 \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 \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:3728\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":3728}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9385ed59205a07c939880ac57b31e8e09cbea548a6ea0bc63600a70e8b2c6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessProjectActionDialog.kt:293-310 | app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessProjectActionDialog.kt:519-536 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessProjectActionDialog.kt:293\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessProjectActionDialog.kt"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8dfd87556e626083768e50ceba20d96dc6a4647be04e22116a89a4668309972"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt:870-887 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:1407-1421 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt:870\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"4713ccf2161556ae67807c5098a6e328e388734677ea541480bbe148cab4f4eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:2361-2375 | app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:491-508 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:2361\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":2361}}}],"partialFingerprints":{"codehealthFindingId/v1":"2462b88a8fa116a26e0489db7045bb10b8e469d6d513041d5fd0cc9aa5e62045"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/InpaintMaskEditor.kt:229-245 | app/src/main/java/com/example/llamadroid/ui/ai/MangaPaintedMaskEditor.kt:356-373 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/InpaintMaskEditor.kt:229\u0060 it begins part-way through the construct above it, so those exact 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":"app/src/main/java/com/example/llamadroid/ui/ai/InpaintMaskEditor.kt"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7249e959482761394cfec4436970ce612b914799c441ba09f46ce2f467cbc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt:472-489 | app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt:653-667 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"221203ed5adc6518cbe3e5f33e317cdb443d97888e34c936710b970d9e277efb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:2095-2112 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1630-1645 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:2095\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":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":2095}}}],"partialFingerprints":{"codehealthFindingId/v1":"97776d0601eb50d832358712433bc8062226abe92dcba0597bbf64d7e6ee57e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:2118-2135 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1646-1662 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:2118\u0060 it begins part-way through the construct above it, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1645\u0060 calls \u0060isEmpty\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:2117\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":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":2118}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1db5ed384109ed4731229b9045d4cdbfdc98b4ccdef788037d7f3dbfaff4c82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1432-1449 | app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1721-1738 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1432\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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ba8074c08bd2755a61eec7db0afd18725a2a4b3b267755dc7d1a350cd44527"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:290-307 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:583-600 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:290\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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaefb774ac06673828e2ccdd09094a5c626dc6a1eaf3ab3df874a731953df80f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:542-559 | app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:605-622 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fedb9c94d787d02760bced52c10b377793cef96ef69a19579c5244b78ed6531"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/settings/WelcomeScreen.kt:276-293 | app/src/main/java/com/example/llamadroid/ui/settings/WelcomeScreen.kt:349-366 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/settings/WelcomeScreen.kt:276\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/WelcomeScreen.kt"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"9838b00363feabd9d9cd4e085a829c594e41a1baeb63ad17e52af0c57a612b01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/walkthrough/FeatureMediaModelGuides.kt:433-449 | app/src/main/java/com/example/llamadroid/ui/walkthrough/FeatureOtherGuides.kt:631-648 \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 \u0060app/src/main/java/com/example/llamadroid/ui/walkthrough/FeatureMediaModelGuides.kt:433\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"app/src/main/java/com/example/llamadroid/ui/walkthrough/FeatureMediaModelGuides.kt"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b49074328277d1462770586a9744219b77d9eaf5ffe907269a03eb358f2f47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:78-94 | app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:265-281 | app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:301-317 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:78\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":"app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f5f790b91b1d4dcd91fb65a00827fe2f9cf53acc22deef04c8767e03a419ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:2001-2017 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:2133-2149 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:2001\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":2001}}}],"partialFingerprints":{"codehealthFindingId/v1":"5959d4c5edefbeba04b41a8c73eccadd6303bf3da4fae7f789b6c5eb41356244"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:18861-18877 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:18968-18984 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:18861\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":18861}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc670e7564d21a3252c92e6f01cb22a1bcad540fe8560d2d1426c896a1586a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/MangaTranslationForegroundService.kt:50-66 | app/src/main/java/com/example/llamadroid/service/MediaTranslationForegroundService.kt:53-69 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/service/MangaTranslationForegroundService.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/MediaTranslationForegroundService.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/MangaTranslationForegroundService.kt:50\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":"app/src/main/java/com/example/llamadroid/service/MangaTranslationForegroundService.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"67244a708e46dfaf85aced4338a11f62d764fff71a5b5f0b5850397fff990965"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:4046-4062 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:4308-4324 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:4046\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":4046}}}],"partialFingerprints":{"codehealthFindingId/v1":"db308a02e17ba605b0114c937a127fa8de9e6e5a9de71c9215bc59cf496eed92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:5753-5769 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:5829-5845 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:5753\u0060 it does not close everything it opens, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:5771\u0060 calls \u0060stringResource\u0060 and \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:5847\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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":5753}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb47a9dbc96e09f4ec48392147eaa4f25e4cc2cd0718451cff96edd145e8ce12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmUpgradeDialogs.kt:284-300 | app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmUpgradeDialogs.kt:380-396 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmUpgradeDialogs.kt:284\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmUpgradeDialogs.kt"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"d922e4f059b27b505ab0f984115898272c0d397e174499fda9269b1c3f914f59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt:594-610 | app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt:1120-1136 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt:1120\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt:1119\u0060 calls \u0060Spacer\u0060, \u0060height\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt:593\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"57816f95c86db4481d0dda436fbb6ee1c16db55d1c82da44b54176c99b44d858"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt:1346-1360 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageMedia.kt:84-100 \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 \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt:1346\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt"},"region":{"startLine":1346}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af9301d8b5ec60bd44f67f2bbfb7ef9b91ba33499dc62d94fd8387aa8e1860a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201317 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:3631-3647 | app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:4336-4346 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:3631\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":3631}}}],"partialFingerprints":{"codehealthFindingId/v1":"52183e3d6a591885925ca4c4b7b6c44f9a6c8ff6511006ac879e8fa7926b838b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/AiJobStartupGuard.kt:26-42 | app/src/main/java/com/example/llamadroid/ui/ai/AiJobStartupGuard.kt:45-61 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060block\u0060 to \u0060(\u0060 in one and \u0060suspend (\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":"app/src/main/java/com/example/llamadroid/ui/ai/AiJobStartupGuard.kt"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c15f52da046bfb783edd4694bd32029f9a3d76e9bb2342ef25639abc071fb63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt:1845-1861 | app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:2554-2569 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt:1845\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt"},"region":{"startLine":1845}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16fa0b2fc08d4f70ac35a4d51110a3539630eedb1f108d130c7d9d3e312571f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4556-4572 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5249-5265 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4556\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":4556}}}],"partialFingerprints":{"codehealthFindingId/v1":"8470dca5742002cc062601947cf44593eb3f02890f3a72d3c73ba15004a4e08b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6245-6276 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:7078-7109 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6245\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":6245}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b330d320ab946f992e1335bbefefabedbaee26bf9f2152f513ec8ea54ebf77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:1319-1335 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:1700-1716 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:1319\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":1319}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ed5752793d1f3df7dc58e20f57da1f067ad98854df9742299ca7a867ad6f9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:478-494 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1185-1201 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:478\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":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e0f5fa1b9e5a82d4f3d44d6079a573e5971a3594eb2c1001b3536848d56fea6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:706-722 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1213-1229 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:706\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6bdb0e5e1b7c2ef4aa8f98fa8fa9753813c7b9273fcc044fb1fcf409319b57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1320-1336 | app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1403-1419 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"6797338fff91fb56630526a8b436dc3569be691167fca2a7fcb0f0d4a566dc21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/java/com/example/llamadroid/util/DynamicFeatureManager.kt:302-318 | app/src/main/java/com/example/llamadroid/util/DynamicFeatureManager.kt:401-417 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/util/DynamicFeatureManager.kt:302\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/DynamicFeatureManager.kt"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"3851e4c1b3407983f304dd7cbe0a36e05df0fe35f777f3c2410da5883fed1cbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 8): app/src/main/java/com/example/llamadroid/service/AgentService.kt:11466-11480 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:11507-11522 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:11580-11594 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:11752-11766 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:11798-11812 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:11832-11846 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:12816-12830 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:12846-12860 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:11466\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":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":11466}}}],"partialFingerprints":{"codehealthFindingId/v1":"944c863a7f0c775feb60a67941edbfc50965f959f6e243c4d76e31a93c80b411"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 7): app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt:2239-2254 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4187-4202 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4450-4465 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4500-4515 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4904-4919 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5147-5162 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5199-5214 \u2014 there are 7 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 7 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt:2239\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt"},"region":{"startLine":2239}}}],"partialFingerprints":{"codehealthFindingId/v1":"718c837bb4abd8c2b97a8f9a21fed5bfac321092b40533d91cf6044034bda068"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201316 lines \u00D7 4): app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:893-908 | app/src/main/java/com/example/llamadroid/ui/ai/OnnxBackgroundRemovalScreen.kt:269-274 | app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt:431-440 | app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:2821-2826 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:893\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/ui/ai/OnnxBackgroundRemovalScreen.kt:274\u0060 calls \u0060startActivity\u0060, \u0060createChooser\u0060, \u0060getString\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:908\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":"app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b55e7ad3d5639b03718c179e1bb98c2710f0c367869e3ef8a592905e65a3eaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:4671-4686 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6781-6796 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:4651-4666 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":4671}}}],"partialFingerprints":{"codehealthFindingId/v1":"c373d4e804ae92269bb7fd455725fda84528720acc8e26e0c8f422d9a22d252d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:496-511 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:2078-2093 | app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:383-397 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:496\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d04c49246c85a6a9bd25a8b2a2392e7cf4bc6fe70ab78591303d1dfb7a5979b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:815-830 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:952-965 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:1062-1076 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:952\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6e56834d95a4a635215820272998873902b1bd6064d1f8325876e2ca257a00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1718-1733 | app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1791-1806 | app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1961-1976 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1718\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":"app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt"},"region":{"startLine":1718}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e944f0f12690f23a58944b958119d1ea4bf1bb868bcccf71184eb1aef40eb66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt:423-436 | app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt:576-591 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt:594\u0060 calls \u0060updateProgress\u0060 and \u0060app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt:441\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":"app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4abdc90649a9dd64160b1d549a92fd9a3eb35138d3da30cc39775c14a03f47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/DatasetBackendSupport.kt:120-135 | app/src/main/java/com/example/llamadroid/service/DatasetBackendSupport.kt:213-228 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/DatasetBackendSupport.kt:120\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DatasetBackendSupport.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1a9dd0fc1e64a52c8616e9139bcd92b24b29d15e28ef7f3bf430d62dcb9a39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:3913-3938 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:4041-4066 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":3913}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3769578e95f7cb83fddcb769e091f0d78261ad920c81c6e14e4a088a60727a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/ProcessController.kt:901-916 | app/src/main/java/com/example/llamadroid/service/ProcessController.kt:1816-1831 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/ProcessController.kt:901\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ProcessController.kt"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"58217f5cc8d42bb3fa63abfa5f75bbd4096bb12cca449a9b267e81522c8c31e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1265-1277 | app/src/main/java/com/example/llamadroid/service/VideoUpscalerService.kt:68-83 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1265\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt"},"region":{"startLine":1265}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93de9e06dd1ea1644cf82d2caed2594e7b3171432aca0c4cc71d8bf8556391e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateArena.kt:323-338 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateArena.kt:420-435 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateArena.kt:323\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":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateArena.kt"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca71c8ef3bc7e083cd98640018dd519f69e2321bac68bf98f49f625f78baeee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:591-606 | app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:1025-1040 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:591\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c3fb7101b31a0da73dfa41cdb681914a3df7e0daaadb36184256cc638444da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:4588-4603 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:4646-4661 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:4588\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":4588}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda072716e532eb1b74c55026ce5be231ced0a2a99a8e8cdad0003bb4c17b46c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt:578-593 | app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt:1103-1118 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt:578\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":"app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"93562600ba12a24916bbab9e95a5d3d430924d465fe75d9d793e11983442a23f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt:619-634 | app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt:1166-1181 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt:619\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"589caeb3633ea59b18e4b81cc183465e6fe6cffa942ab879643147d2ba70bd4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201316 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:4089-4097 | app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:4371-4386 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:4089\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":4089}}}],"partialFingerprints":{"codehealthFindingId/v1":"55113ea809ed91ae53a87556a6e3c7a247620f0f6daa12b7e42ddcec9e14c31e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessProjectActionDialog.kt:191-206 | app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessProjectActionDialog.kt:444-459 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessProjectActionDialog.kt:191\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessProjectActionDialog.kt"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"061f3abd135776065fab006860a67433b7607e875cf6a185e5ddfef16ad8d97a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:2464-2479 | app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:606-621 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:2464\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":2464}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf9dc8ffe2ac749e6c46f9e2ab7a082908909ba0e101074a5d759aa93beb86c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:4729-4744 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6852-6867 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:4729\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":4729}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bac2066f46a9dcb1c962c7fe5e2c0eccfdd21cfb260a40c44a8b4a7e7be083c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:5027-5042 | app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:2004-2019 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:5027\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":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":5027}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc3c4625ea02f7005e4c7bfd3f1ca84d571593b641fcad923f8cceccb63c4e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1204-1219 | app/src/main/java/com/example/llamadroid/ui/models/ModelClassificationOverrideUi.kt:201-215 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1204\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":1204}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5ef3d48f9a52041e02da129e060c16fc28597a51a816e0db6051d72c736121"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:1193-1208 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:1367-1382 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:1193\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":1193}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1dfa1a67fd594a1f1aef27d0275eb0e04a56c715ef2830be687563ec1785192"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5291-5306 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:7214-7229 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:7231\u0060 calls \u0060Spacer\u0060, \u0060height\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5307\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":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":5291}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b008a22a3b69db874dd45b49e178c0523c9bc7e3c19b3de929dec60028ed67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:318-333 | app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt:334-349 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:318\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bdd23bc1d259bf9c9f66cfc527fca18046c9f275a5567c11b042042fcb5cb58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/components/DraftNumericTextFields.kt:65-80 | app/src/main/java/com/example/llamadroid/ui/components/DraftNumericTextFields.kt:122-137 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/components/DraftNumericTextFields.kt:65\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/DraftNumericTextFields.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a9c0db3e7e78b87dd10388ef6ceddd97420cc811a82b7e388d985e6ccc81eb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/components/RemoteSummaryBackendEditor.kt:491-506 | app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt:2128-2143 \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 \u0060app/src/main/java/com/example/llamadroid/ui/components/RemoteSummaryBackendEditor.kt:491\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":"app/src/main/java/com/example/llamadroid/ui/components/RemoteSummaryBackendEditor.kt"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"3385dd4067d9c9cdf2e9b3f4afa1f054b3d9948b3c174e8e120ea79070370d3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:2046-2061 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:2202-2217 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:2046\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":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":2046}}}],"partialFingerprints":{"codehealthFindingId/v1":"8102cfdffc7dc9b17b49cb6a457018dde2c912860dcda077bb96830381ebc517"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkScreen.kt:284-299 | app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkScreen.kt:309-324 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkScreen.kt:284\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":"app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkScreen.kt"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0d69683e75d6df1ed69eba5fb735327ee717e77b9f852ff0b91976b5d807f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1437-1450 | app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1726-1739 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:294-308 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:587-601 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1437\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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":1437}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ea44606a45f9c86dd2d8793c26a91f70974927030efa7589970a0ffc7af898"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): app/src/main/java/com/example/llamadroid/service/LiteRtLmWorkerService.kt:938-952 | app/src/main/java/com/example/llamadroid/service/LiteRtLmWorkerService.kt:1058-1072 | app/src/main/java/com/example/llamadroid/service/LiteRtLmWorkerService.kt:1171-1185 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/LiteRtLmWorkerService.kt:938\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":"app/src/main/java/com/example/llamadroid/service/LiteRtLmWorkerService.kt"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c4b72b35d8f490544e9da898a2af34bd02431e96fb8c3ae2c1addae61ae865"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:1068-1082 | app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:1113-1127 | app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:1199-1213 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:1068\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:1083\u0060 calls \u0060importMask\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:1128\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":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ef0265ab58077058ab9e0798c93d64543ce310fb532ed71a460df491d9eef9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:4652-4666 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:2979-2993 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:3266-3280 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:4652\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":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":4652}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4e4d08c8d692be39d1954ad1dc2e0b10f8a9591ac94641ca668becd8d4a632"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt:1555-1569 | app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt:1574-1588 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt:1555\u0060 it begins part-way through the construct above it, so those exact 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":"app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b638f9c355d08ff4f86346c7d73be3b6f1a979b9c25f0d25fb02be8d22cb91e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:18224-18238 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:18264-18278 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:18224\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":18224}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8464f3953bc3eefa11ff14640af984241534ab6d11c33eb0b02b12b2e2da8db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201315 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:18857-18871 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:18922-18931 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:18857\u0060 it begins part-way through the construct above it, so those exact 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":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":18857}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f1d83fc6fc7bb97f019dec9cefaef38296c203f988bb02879f8ed5b4d111b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/QuadtrixTrainingService.kt:129-143 | app/src/main/java/com/example/llamadroid/service/QuadtrixTrainingService.kt:186-199 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/QuadtrixTrainingService.kt:129\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"app/src/main/java/com/example/llamadroid/service/QuadtrixTrainingService.kt"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47267e4ae1e25b656d735c3523813c8b0b4e9205088047e27b0bf44f83fdef6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:344-358 | app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:369-383 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:344\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d351284c6f437b81e30ded1853672befb1ce1e6e51abc147a2ae5512e576854"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/SSHService.kt:630-644 | app/src/main/java/com/example/llamadroid/service/SSHService.kt:715-728 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/SSHService.kt:630\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/service/SSHService.kt"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2e498f30e403d8eede7d9993583f71e4ffa8a18125651b90a70458453442f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/SdGeneratedImageMetadata.kt:474-488 | app/src/main/java/com/example/llamadroid/service/VideoGenerationConfig.kt:492-506 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/java/com/example/llamadroid/service/VideoGenerationConfig.kt:490\u0060 calls \u0060optString\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/SdGeneratedImageMetadata.kt:472\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":"app/src/main/java/com/example/llamadroid/service/SdGeneratedImageMetadata.kt"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b955f2866057f877e5badf0b2caf16ee8e0f198761ddaa2ae5f149cd09d5464"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/SdRuntimeSupport.kt:243-257 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1297-1311 \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 \u0060app/src/main/java/com/example/llamadroid/service/SdRuntimeSupport.kt:243\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdRuntimeSupport.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"042a081e4792c2826ac7b977d65bc4e3426ef27863777598c748f505ce2805ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:1327-1341 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:756-770 \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":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":1327}}}],"partialFingerprints":{"codehealthFindingId/v1":"425df197e8c198ed58cc97740bb19ff2bfc7957bf0d348a14409527b9573c2c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:635-649 | app/src/main/java/com/example/llamadroid/service/VideoReusePayload.kt:538-552 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"9810ab8684e712e4f7e9a338da8972d213c77ce596f73201fa2c4cf6a2713b7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt:315-329 | app/src/main/java/com/example/llamadroid/service/chat/NativeChatVideoSupport.kt:722-736 \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":"app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"588fa442b8eab3ce57c85cfcacb382b4b7bfee9b58ac7623b41c1858ef84aa0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/chat/NativeChatCitations.kt:97-111 | app/src/main/java/com/example/llamadroid/ui/ai/llama/MarkdownText.kt:799-813 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/chat/NativeChatCitations.kt"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5b10ece220e7b1b09542a827522714f8ce054da2588b68acc06f3a31e431c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:1054-1068 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:1231-1245 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39fdb6b7c016c17a2ac3265ec991828131c7242b61d43d001e866d62fe110d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt:405-419 | app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt:443-455 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt:405\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad5511030daabe73e60da58999297b96acab1cfbbf35c4f8974636a11b1dbf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:1116-1130 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:1425-1437 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:1116\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"328160f661f027a3aa82545b284d8ad489118d4a3b5a20a8bc0cee021efcf3ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:1514-1528 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:3437-3451 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:1514\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":1514}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d2b555b997078cc982660a656aae3d99553acd9c2f411e0da29b348d0d3e2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaChatServerSettings.kt:166-180 | app/src/main/java/com/example/llamadroid/tama/ui/TamaChatServerSettings.kt:212-226 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaChatServerSettings.kt:166\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatServerSettings.kt"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d476ae723033337663aa4608cb6f67ee442fa7f0ba7b6833c91639e727c66c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaChatServerSettings.kt:472-486 | app/src/main/java/com/example/llamadroid/tama/ui/TamaChatServerSettings.kt:525-539 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaChatServerSettings.kt:471\u0060 calls \u0060isLlamaSwapBackend\u0060 and \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaChatServerSettings.kt:523\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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatServerSettings.kt"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1cd1658cb73e537e9d208320bc9d73084ac41488feb53b999b83a3e6d57681"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:528-542 | app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:587-601 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:528\u0060 it does not close everything it opens, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:543\u0060 calls \u0060verticalScroll\u0060, \u0060rememberScrollState\u0060 and \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:602\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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbfc0363d45b961eb89cf9abcad6867e3caf93cf5212527b7cce26ce41d977ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:430-444 | app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:467-481 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:430\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd7cd0e174942f0597dc47c72872f4cd09600915ae38b1553575c27d8abc1a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessModelEditor.kt:317-330 | app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt:1524-1538 \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 \u0060app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessModelEditor.kt:317\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessModelEditor.kt"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"255668e04adf94a231f081a6fa125e85715976566894bd65273c06ca0b0c7182"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/DatasetScreen.kt:119-133 | app/src/main/java/com/example/llamadroid/ui/models/ModelShareScreen.kt:300-314 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/DatasetScreen.kt:119\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/DatasetScreen.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"96fefd8a6b0e464643a1f09f340b7714cc7383b645f3c4bcb0afb9a56b25bbf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:1950-1964 | app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:290-304 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:1950\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":1950}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa0854e4f43a80d09f88e599d5ba27f5ec1709b3af1385507460824ef21569e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:2244-2258 | app/src/main/java/com/example/llamadroid/ui/models/WhisperVadModelsSection.kt:318-332 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:2244\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":2244}}}],"partialFingerprints":{"codehealthFindingId/v1":"3055042a3fcb00e0d2abb3aaec530815c632ea83095b702a3278cc9ddd71a307"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:311-325 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:706-716 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:311\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":"app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b463ea4d28ff9582337d10c4c57451b7f67e536d3c1f31387217fee9efd9c46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4434-4448 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5131-5145 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4434\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":4434}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a15811ee0e38f8752bd5d53f94aa2ad90d66b6a77674f7eac431e4ea8587fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1321-1335 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsControls.kt:169-183 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1321\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":1321}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac287d17193bc4e65e01fccd8e09b41f50a29adccb9cc53bb9e16596c36a7b60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsSheet.kt:48-62 | app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/ServerPickerSheet.kt:82-96 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsSheet.kt:48\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsSheet.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"277475879b1a45cb09b2faabf2ff71f6ece5318cccfa960f109c94cb43a77a76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/LlamaChatScreen.kt:920-934 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/LlamaChatScreen.kt:1019-1033 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/LlamaChatScreen.kt:920\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/LlamaChatScreen.kt"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"23448dbdb5ae8a02fb60b19ebfbc515375ae788fdd21e7f81a25812dbc36ca53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/distributed/WorkerModeScreen.kt:231-245 | app/src/main/java/com/example/llamadroid/ui/kiwix/ZimManagerScreen.kt:1305-1316 \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 \u0060app/src/main/java/com/example/llamadroid/ui/distributed/WorkerModeScreen.kt:231\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":"app/src/main/java/com/example/llamadroid/ui/distributed/WorkerModeScreen.kt"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"e59061697de36806d10bb44892f5d5a76ae8052277ed0fe47db2743273f38e83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:2056-2070 | app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:656-670 \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 \u0060app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:2056\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt"},"region":{"startLine":2056}}}],"partialFingerprints":{"codehealthFindingId/v1":"d062dd24b696e4abe98163239f089755fe5d4e1fd0887d3c4988a719e668557e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:1410-1424 | app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:1745-1759 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:1410\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt"},"region":{"startLine":1410}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ed107f9b5f88d8f4d7091b7320414a6ff019e034b3c4640e4dd297067d1aad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt:680-694 | app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt:848-861 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt:680\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"8781e87128aa22df6cfe440a17c3bd98b65880dace381b0643a812c66bca90c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt:122-137 | app/src/main/java/com/example/llamadroid/ui/models/WhisperVadModelsSection.kt:172-186 \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 \u0060app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt:122\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a2b860b3a16b498b7807d68e64c933d3089a7cc5d4e7b236eb373297bc4c23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt:550-564 | app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt:680-694 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt:550\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"353d76a0a600b817efb01d23696256196e674d5ffcdeacc9133b62e7cdf7050a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:1677-1691 | app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:2148-2162 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:1677\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt"},"region":{"startLine":1677}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f62e2d7c94f0c8ddf4da7de3dfad59874d7f24c93b4ac7dedafb2d0066e9ca0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:459-473 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1166-1180 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:459\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"61fa3d975b77ac3d847dc2e4ea5942ad2b90926422f3b4a5cf3b196f4575bdfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:469-483 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1082-1096 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:469\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1097\u0060 calls \u0060isEmpty\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:484\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":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8a8de06ea5756cc294699c9214e75e9307005c6c5db340381f03395bc39abe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1304-1318 | app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1386-1400 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"e76f912ad8e7b6bb710993d5e2ae5f293ef2d97754af8434728aae25e4e9e2da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): app/src/main/java/com/example/llamadroid/util/AssetPackManagerUtil.kt:241-255 | app/src/main/java/com/example/llamadroid/util/AssetPackManagerUtil.kt:337-350 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/util/AssetPackManagerUtil.kt:241\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/AssetPackManagerUtil.kt"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d4ba6ff65977659736b216b44cbc5b0c00f83ae0782a2c46cf14104e1ddf58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:2764-2778 | wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:3501-3512 \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":"app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt"},"region":{"startLine":2764}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc45147e749d4e8ca5132ac7fb4e78bfacc92d6225c1bb562a0d607875f08882"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 15): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1590-1603 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1621-1634 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1654-1667 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1685-1698 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1715-1728 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1748-1761 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1782-1795 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1812-1825 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1841-1850 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1870-1883 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1901-1914 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1931-1944 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1964-1977 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1999-2012 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:2031-2044 \u2014 all 15 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1590\u0060 it does not close everything it opens, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1729\u0060 calls \u0060sdFamilyEnum\u0060, \u0060orEmpty\u0060, \u0060initialCompatProfilesForModel\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1604\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":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":1590}}}],"partialFingerprints":{"codehealthFindingId/v1":"e402cc0f93f5ffd8cd005665daa7ef9f1e60e97252ca70378d9b64d7150223f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1417-1430 | app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1706-1719 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:69-82 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:275-288 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:568-581 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1417\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a8da4e453d03bb004cc10499b274dffc421c2df4f35bd0ee0e42531155d3e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:1984-1997 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:117-130 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:331-344 | app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt:347-360 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:1984\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":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":1984}}}],"partialFingerprints":{"codehealthFindingId/v1":"829ccc874799dd33b5984f2ec30003d74f848f35825e36ca83d2f98783604c14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201314 lines \u00D7 4): app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:2289-2295 | app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:2425-2431 | app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:4087-4093 | app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:4369-4382 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:2289\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":2289}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5fe1110f16e24b2abd30d6a342dfbd735246ae31d29ff716f0c14ec202ea99d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:1004-1017 | app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:1096-1109 | app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:1140-1153 | app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:1178-1191 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:1004\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"01675642b0f03824517a2a6c90ae94e1e46ea82d4403fd7bc2a6c87ccecbf18f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt:1301-1313 | app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt:1368-1381 | app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt:1443-1455 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt:1301\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e38a62d40657552afe048a045f9771f580443ef75988113295eb33a41dfe4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): app/src/main/java/com/example/llamadroid/service/AgentService.kt:11462-11473 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:11502-11515 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:11547-11558 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:11462\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":11462}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b074126b30f976fd20a1075b9065f4a1be4cfacc9b8d5c4502ae6ff8602d79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:724-734 | app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:2986-2999 | app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:3996-4009 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:724\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b478daff21db1f27ea9f7225f8b8d8abe523ba434e6cfb91bd5a4d450ab957"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt:1819-1832 | app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt:1925-1938 | app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt:1952-1965 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt:1819\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt"},"region":{"startLine":1819}}}],"partialFingerprints":{"codehealthFindingId/v1":"98787c9be2e69cbb83c3cfb61a2a150935b20b1feefc759b5a8f555aa9615e32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1464-1477 | app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:543-556 | app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt:348-361 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1464\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":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":1464}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c685f6391e706fbcfed8eceb9806e6fa4033f3600fd31aed8edce552ca3ad8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1518-1531 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:377-390 | app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt:393-406 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1518\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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":1518}}}],"partialFingerprints":{"codehealthFindingId/v1":"a047956ed67562122d8e8abe82aca203e06b06554d96c697b3def4ac752d8215"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/pdf/PDFSummaryScreen.kt:273-286 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFSummaryScreen.kt:291-304 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFSummaryScreen.kt:404-417 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFSummaryScreen.kt"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"c671e06b3359b10a5bea4724a1d5b4b2f9327447e94c6254d82dd31556621539"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): app/src/main/java/com/example/llamadroid/audio/library/AudioLibraryRepository.kt:154-167 | app/src/main/java/com/example/llamadroid/audio/library/AudioLibraryRepository.kt:562-574 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/library/AudioLibraryRepository.kt"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41ff3193830335fa530ae61590037ced46121d6bbbcba31cb16158534d96e71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentControlPromptSupport.kt:749-762 | app/src/main/java/com/example/llamadroid/service/AgentControlPromptSupport.kt:974-987 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentControlPromptSupport.kt"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"5754e5a77bf8d2c9cfa2e2a3b6c5b53993db7db68d1feca105dc97d141031840"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentProotTerminalSessionManager.kt:589-602 | app/src/main/java/com/example/llamadroid/service/HarnessRecoveryTerminalSessionManager.kt:467-480 \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 \u0060app/src/main/java/com/example/llamadroid/service/AgentProotTerminalSessionManager.kt:589\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProotTerminalSessionManager.kt"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"80426552cb98b9e241cddffb88c67cb98943c55df46a8cb779b85c596863f82c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:7102-7115 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:7512-7525 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:7102\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":7102}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b878163c9108ac6641b634be112ec235068692acc4fce80528b397fe8b9749f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:947-960 | app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:1059-1072 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:947\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:1073\u0060 calls \u0060log\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:961\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":"app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"586c7334bbaa9147fe9fe493c7f58c8d3449ef8ded595cd0b3f92531e848cbcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:396-409 | app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:471-484 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:396\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b753dcf38bbfabd7aefc9bbe05ea56295259451f150c9cd58c6858f9532b15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/ModelShareService.kt:100-113 | app/src/main/java/com/example/llamadroid/service/ZimShareService.kt:92-105 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/service/ModelShareService.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/ZimShareService.kt\u0060 as WHOLE FILES: this scan already matched 8 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/ModelShareService.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":"app/src/main/java/com/example/llamadroid/service/ModelShareService.kt"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"98747a546543256e0df14089983e27497f5ee0e82dbe08cbd16b0a0979362dc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/NativeChatOnnxImageGenerator.kt:63-76 | app/src/main/java/com/example/llamadroid/service/NativeChatOnnxImageGenerator.kt:103-116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatOnnxImageGenerator.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"8133c04ea4aa0e2764d45dfa403e6f2c31dd8bf3c397e80b9ff7a8858e8a9a61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:2084-2097 | app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:2222-2235 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:2084\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":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":2084}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0903370aafa9f88d2dd7e42066755543f1b46e80b9caa2b6a84396567cad491"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:813-825 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:6554-6567 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:813\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c8b7e642638717fedb6726e3cde3890c4fdadd4fa7a88450a705ce4fb12b8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:2838-2851 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:2994-3006 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:2838\u0060 it begins part-way through the construct above it, so those exact 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":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":2838}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d908b7d011b28dc8baff89b06a18f427c35b25d3005614b8cee46f74fed6888"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:2073-2086 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1493-1506 \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":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":2073}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c52d9637c2fb94859f647a5676d4c2674e17cfb6f47e4362950b0c7fe1b2648"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:2094-2107 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1514-1527 \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":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":2094}}}],"partialFingerprints":{"codehealthFindingId/v1":"91522474cb9eda3cb6c9f416b84ac5b8647be7f5a8c94f327ec10a01e9819eb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:4230-4243 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:4657-4670 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:4657\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":4230}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc712ad691754a88e2e9b27b4416414fdd8eae9cf5127d2091c40f867886cf4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/AdventureSettingsDialog.kt:158-171 | app/src/main/java/com/example/llamadroid/tama/ui/TamaSettingsDialog.kt:167-180 \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 \u0060app/src/main/java/com/example/llamadroid/tama/ui/AdventureSettingsDialog.kt:158\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureSettingsDialog.kt"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2f05479fce54382d41d6f2698aac85af798fcdae63128b6e1cf00318c10b20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:330-343 | app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:439-452 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:330\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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e6c8a9a5e36a91c5d718ffeb9cccfa58f785ce45778073e55b22a96f724b92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmDroneDialogs.kt:98-111 | app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmDroneDialogs.kt:238-251 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmDroneDialogs.kt:98\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":"app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmDroneDialogs.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e898bdb3e1dcb6564ac6109b63eb7c314f18b5d1d53a976d42748dadcec6abd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:3768-3781 | app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:2032-2044 \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 \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:3768\u0060 it does not close everything it opens, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:2031\u0060 calls \u0060stringResource\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:3767\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":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":3768}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ccfec9221334ac16912e3251af7313ec2dcf21159ead5c0fa5281f52ac04547"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt:426-438 | app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt:1115-1128 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt:426\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec5e2e9f37a16d64b7e3f173aad59a0e7f469f8287cb5d167872ad346289c4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt:1444-1458 | app/src/main/java/com/example/llamadroid/ui/components/DownloadTaskSection.kt:196-209 \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 \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt:1444\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":"app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt"},"region":{"startLine":1444}}}],"partialFingerprints":{"codehealthFindingId/v1":"681cf0f37a58660f43227d6316dde39aa0871c4eb273ec7ae308858e84c8ece8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt:510-523 | app/src/main/java/com/example/llamadroid/ui/ai/VideoUpscalerScreen.kt:313-326 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt:510\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/java/com/example/llamadroid/ui/ai/VideoUpscalerScreen.kt:312\u0060 calls \u0060consumeWindowInsets\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt:509\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":"app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"a363718f586b9ae749d996bd42d115ca8f6bdc6bcdb54ff38e4b41d463792af1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:306-317 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:259-272 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"95157c005438e9b35ad61be22cd32f27b00d60856025f9aa655be1a293c7567a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/QuadtrixWebUiScreen.kt:135-147 | app/src/main/java/com/example/llamadroid/ui/chat/ChatScreen.kt:217-230 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/QuadtrixWebUiScreen.kt:135\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/QuadtrixWebUiScreen.kt"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"e324c6e027af3bd8422ec8c14263c28c443d5a5c8ec6291c814ef502ff72f7b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:2254-2267 | app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:936-949 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:2254\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":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":2254}}}],"partialFingerprints":{"codehealthFindingId/v1":"639983e7ae8c7d133f9f83d5f1fc1e75d328290ad0966de442d5237d84d5680e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/VideoInterpolationScreen.kt:542-555 | app/src/main/java/com/example/llamadroid/ui/ai/VideoUpscalerScreen.kt:465-478 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/VideoInterpolationScreen.kt:542\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoInterpolationScreen.kt"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"1041251f517fbf6ac64d1b202a6423f99797fd6a4faf71461192e57a0f6267d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:494-507 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:509-522 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0203689017314627042b07c2ca32878b1f96ad0bd26a99486f755a180b7b60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:1127-1140 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:1295-1308 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:1127\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":1127}}}],"partialFingerprints":{"codehealthFindingId/v1":"acca932c745bd5c97cd740f59ea4f9f8ee20804cd5e732b33fd7d13518d112de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:2141-2154 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1669-1681 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:2141\u0060 it begins part-way through the construct above it, so those exact 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":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":2141}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9be18618e8c4c42f2d51663c92278d56eab9e2bc940a15639dd8a969fa29424"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:2680-2693 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:2155-2165 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:2680\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":2680}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7edf43203cebf4fd84603fb46ed9c8e55ff7b2d842a135f32900cf5084c53a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/MarkdownText.kt:179-191 | app/src/main/java/com/example/llamadroid/ui/ai/llama/MarkdownText.kt:194-207 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/MarkdownText.kt:179\u0060 it begins part-way through the construct above it, so those exact 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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/MarkdownText.kt"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f16cc3ae58e6073bb2ac8db331c09b4d5e1f00cfac45209bb9188dc5cda135"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatContextGauge.kt:129-142 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsSections.kt:856-869 \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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatContextGauge.kt"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"af6f16e49fe217e8dab0a461cf3f6233bfa51942616162b308c25f9f4b29d703"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/PrepareCachesSheet.kt:115-128 | app/src/main/java/com/example/llamadroid/ui/easy/EasyChatOptionsSheet.kt:121-134 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/PrepareCachesSheet.kt:115\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/PrepareCachesSheet.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3afc363022220bd9f5c7b8f536e3e4ea59932a0d501103a0da9e182d8c7dea5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201314 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:396-402 | app/src/main/java/com/example/llamadroid/ui/library/AllMediaGalleryScreen.kt:262-275 \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 \u0060app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:396\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"8738e186454f9412e71c966d7253b60e2450b3e6ec6cb152d16c7c14f78c1a49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:2686-2699 | app/src/main/java/com/example/llamadroid/ui/library/AllMediaGalleryScreen.kt:617-627 \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 \u0060app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:2686\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":2686}}}],"partialFingerprints":{"codehealthFindingId/v1":"932c40ac24c1cb64d800f0c4716294939fe61acacd8f7811b5e4b941759d5a4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:4561-4574 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:4605-4618 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:4561\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":4561}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8faa9aa92311662ff2ed006da8c48a56ee91beba37890b4b11b5ceda960821"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201314 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/AiServersHubScreen.kt:978-980 | app/src/main/java/com/example/llamadroid/ui/distributed/WorkerModeScreen.kt:1086-1099 | app/src/main/java/com/example/llamadroid/ui/models/ModelShareScreen.kt:480-493 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/AiServersHubScreen.kt:978\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/AiServersHubScreen.kt"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f5a5a1e8b336a2ba18183a558ed0f34ccfd1d2d35f86c6dd06e58dfbd96af13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:1207-1220 | app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:1666-1679 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:1207\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdbde688bccb716927670566dea5fc0f8b66361befb3be4a45c8eaf4573cbc8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/WhisperVadModelsSection.kt:349-362 | app/src/main/java/com/example/llamadroid/ui/models/WhisperVadModelsSection.kt:452-465 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/models/WhisperVadModelsSection.kt:349\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/WhisperVadModelsSection.kt"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc424cad25a129d6a31322c74d26ff1af14ad0c0b7b07e00220e294681c777d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1342-1355 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1462-1474 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1342\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":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31f1ffee0f7c97892e392e4c8343e6265b297d85615d296258670b6f213744d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt:72-85 | app/src/main/java/com/example/llamadroid/ui/settings/WhisperSettingsScreen.kt:85-97 \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 \u0060app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt:72\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":"app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"e98ab5007d571db950a3cfce8272625716cbcb8d490fba297895c81eb4a45b32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/util/ProcessUtils.kt:49-62 | app/src/main/java/com/example/llamadroid/util/ProcessUtils.kt:99-112 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/ProcessUtils.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5438aca0ded71a9df0fec19afd53366b92cf26fb8e8e12912813ce693ade92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:2701-2712 | app/src/main/java/com/example/llamadroid/wear/WearCompanionBridgeManager.kt:1086-1099 \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":"app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt"},"region":{"startLine":2701}}}],"partialFingerprints":{"codehealthFindingId/v1":"a198d2ca670096ee00bcb75b7d520609996dc29e32285b539875179e2d48b467"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatServerSheet.kt:46-58 | app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/PrepareCachesSheet.kt:115-127 | app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/ServerDetailSheet.kt:112-124 | app/src/main/java/com/example/llamadroid/ui/easy/EasyChatOptionsSheet.kt:121-133 | app/src/main/java/com/example/llamadroid/ui/quicksetup/QuickSetupSheet.kt:32-44 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatServerSheet.kt:46\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatServerSheet.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"679ee2a3f73af6aba64fe2d97b2ef10d73bf09e7518c37ccd7fe979157ae99a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1550-1562 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:141-153 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:412-424 | app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt:428-440 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1550\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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":1550}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c14ea9293d057cc18f07374e5c833cdb80179ce5fa87639807778219fc3cb0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): app/src/main/java/com/example/llamadroid/service/DownloadService.kt:1839-1851 | app/src/main/java/com/example/llamadroid/service/DownloadService.kt:1926-1938 | app/src/main/java/com/example/llamadroid/service/DownloadService.kt:2043-2055 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DownloadService.kt"},"region":{"startLine":1839}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2cdb96cb2c0848699e848a8eb902ea14f7f490b54ce3108a1fcbd1b4e9230a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:2113-2125 | app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:2130-2142 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1532-1544 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:2113\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":2113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6cc267daf1f9c5a9dcf7ac53426268ca485fcc4205b3ed6874d43928ef7d346"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:3991-4003 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:4361-4373 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:4407-4419 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:3991\u0060 it begins part-way through the construct above it, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:4004\u0060 calls \u0060Column\u0060, \u0060spacedBy\u0060 and \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:4374\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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":3991}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c423916b3d8efc3d11f61b2f0d92b27d8648ba14eb5e960f11c4d3a9e9f5c27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:857-869 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:901-913 | app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt:597-609 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:857\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cee776127ea90464eb8f94b646c78ef48beaf20a4db0844a1521dfc6f39c5a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:504-516 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:704-716 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1211-1223 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:504\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":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"0518ad3912b92ca63963dfad5556dde543460e0487e6245415a6952187cf80c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:802-814 | app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1048-1060 | app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1569-1581 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:802\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"12df8c919a66eaff50c3e4451cdd0d6dea7300728ee0ae4d1e92aaaa25e98a9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt:1988-2000 | app/src/main/java/com/example/llamadroid/sd/SdArtifactInspector.kt:1208-1220 \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 \u0060app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt:1988\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt"},"region":{"startLine":1988}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a792a0f7e202df60f691ca8cd0abe92aed898b771cdca89048992e648ed0847"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201313 lines \u00D7 2): app/src/main/java/com/example/llamadroid/harness/HarnessProjectIntegrationDialog.kt:139-145 | app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:1287-1299 \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 \u0060app/src/main/java/com/example/llamadroid/harness/HarnessProjectIntegrationDialog.kt:139\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessProjectIntegrationDialog.kt"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"045e03bffa81c10105219f03db943052276fcf41e491ed7211f25a8934d76efd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentRemoteChatWorkerService.kt:581-592 | app/src/main/java/com/example/llamadroid/service/AgentRemoteChatWorkerService.kt:707-719 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentRemoteChatWorkerService.kt:581\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentRemoteChatWorkerService.kt"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6611273593ec9a4a04058503d8e1a7f6f6727c8479e872430aa7c63c507f862"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:1004-1016 | app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:1202-1214 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"76156bea7a65cf8fe2b3387ef6a3805404d88c4104cb7579d1afaa6d72f399ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:2939-2951 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:3102-3114 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:2939\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":2939}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69417b4389f35e5ed29553214cdf04b6555c624df3e050054af7b3159cb549e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:7022-7034 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:7095-7107 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:7022\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":7022}}}],"partialFingerprints":{"codehealthFindingId/v1":"604c038e56dbda98d3321c9a1dd0634213f27ca85bf7c9e118b5f4db5c1352e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFSummaryService.kt:189-201 | app/src/main/java/com/example/llamadroid/service/VideoSumupService.kt:604-616 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFSummaryService.kt:189\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFSummaryService.kt"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"324c3eac57a424b87d5b9f3c44658275ebd1a959e4f46e1a260a0d6272f9441a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:651-661 | app/src/main/java/com/example/llamadroid/service/VideoReusePayload.kt:554-566 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2cb13914529109f565d24b3e9d0e2e73a87c324c8f7755fb193674e7e0ad9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201313 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/VideoInterpolationService.kt:172-178 | app/src/main/java/com/example/llamadroid/service/VideoUpscalerService.kt:202-214 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoInterpolationService.kt"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"1720bea74af17e4696506c3c39c3669a747fdd7a62bf388fd6b56a9c7556fcfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/bubble/ChatBubbleOverlayService.kt:269-280 | app/src/main/java/com/example/llamadroid/tama/shimeji/ShimejiOverlayService.kt:277-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/bubble/ChatBubbleOverlayService.kt"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a161af36fe05b48b7efcf567f57b0dda2963050b0420e521a8fccf29c85d114"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:1105-1117 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:1270-1282 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":1105}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc8eb7922e9d87fd5cb092f50273a72d2a9a6e574892299b37b8e4d2c968bb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:179-191 | app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt:928-940 \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 \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:179\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"7451908b8e0379ef06a91eb679aef6281c421386cd7d249a1504e88f465f73e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:620-632 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:5623-5634 \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 \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:620\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26007601a2b938901702af0b3b98515b55ec0cd84aa0e20510fb49a34a47fb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:3044-3056 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:3331-3342 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:3044\u0060 it begins part-way through the construct above it, so those exact 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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":3044}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e405573bd10ade700b362ad849d4d43c1b4532e8881457b615c138f9767224"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:5065-5077 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:5099-5111 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:5065\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":5065}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd8b4580cd01afd10ec2ad501781ac0ca0936b688b23488a3cc49dfa4e8e760"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentDirectStatusCard.kt:65-77 | app/src/main/java/com/example/llamadroid/ui/agent/AgentRuntimeProfileControls.kt:258-270 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDirectStatusCard.kt:65\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":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDirectStatusCard.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4f1c4c6b1b5ce2400d7dc478accbf4d0f68af3410406bb88c8d700884f35ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt:1489-1501 | app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt:1523-1535 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt:1489\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7974543cd40acd0426033e5bcc5f7484275af643d97dff3c2b474feaede51a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:761-772 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6011-6023 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:761\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"9968a4f5baa7e97e9b0e9cb7f5ea2ea72b01b55a5f5c8112975471baa4c5c8d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:2607-2619 | app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:1004-1016 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:2607\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":2607}}}],"partialFingerprints":{"codehealthFindingId/v1":"373d7ac176509b7a504554436f62601f6e9c72f81a38dd5f7a3d8476b45f58f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:4308-4320 | app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:755-767 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:4308\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":4308}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a133129e867b7d85a8fc9a07a3b4091b84519939b28872132a6c046684357bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/OnnxBackgroundRemovalScreen.kt:578-590 | app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt:1259-1271 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/OnnxBackgroundRemovalScreen.kt:578\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxBackgroundRemovalScreen.kt"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a886a060eb93ef4e75df6db37d4ddafe86066939c20149219f93bc08158d759"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/OnnxBackgroundRemovalScreen.kt:593-605 | app/src/main/java/com/example/llamadroid/ui/ai/OnnxTtsScreen.kt:376-388 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/OnnxBackgroundRemovalScreen.kt:593\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":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxBackgroundRemovalScreen.kt"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b78f5645c83a65edf8500b6c0c6d43d5ca681afbc8ee1cb6f43c9e110a8d087"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/SdIpAdapterControls.kt:362-374 | app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaChatListScreen.kt:1151-1163 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/SdIpAdapterControls.kt:362\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":"app/src/main/java/com/example/llamadroid/ui/ai/SdIpAdapterControls.kt"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"b552e93ecbd52a0a20c160807b4ece5f41f9559c7e4b94e9ba0c882668336828"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:3490-3502 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:3514-3526 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:3490\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":3490}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a05ef0c516c38800d53996edd49dd3638d1701580e979a125c5eedb186efe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4111-4123 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4152-4164 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4111\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":4111}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0675c6f45585b27c8c645f945b7151d6cbc6dc881f7a4534ea92bafbb0460f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5957-5966 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5986-5998 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5957\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":5957}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a71bf3b739a6a90a24432877c80c1a96cf9c6c62de56c104536c36ffd2068a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaChatListScreen.kt:1052-1064 | app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaChatListScreen.kt:1262-1274 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaChatListScreen.kt:1052\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaChatListScreen.kt"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"c692119f901348b1f1cc9bb2cc5db998e76a0e555eb32e5e117f5d0e2e2ede75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:898-910 | app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:931-943 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:898\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b41ec749edc79cf08d892f6d808d60d685e2f40f9c752aa41c50d4b09cd350c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/components/AppChrome.kt:143-155 | app/src/main/java/com/example/llamadroid/ui/components/ResponsiveComponents.kt:194-206 \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 \u0060app/src/main/java/com/example/llamadroid/ui/components/AppChrome.kt:143\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/AppChrome.kt"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"478032e2dba90f0a082ef0f93963e67274822ec813aca5810ada6e30fa1a119e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/components/ApprovalQueueDialog.kt:85-97 | app/src/main/java/com/example/llamadroid/ui/components/ApprovalQueueDialog.kt:253-265 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/components/ApprovalQueueDialog.kt:85\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/ApprovalQueueDialog.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1dac5a420c77e9cb0472b62b7ad624bdb75c4189a0ff42b737e5f50ebffa74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/components/SharedSettingsComponents.kt:31-43 | app/src/main/java/com/example/llamadroid/ui/components/SharedSettingsComponents.kt:79-91 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/components/SharedSettingsComponents.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":"app/src/main/java/com/example/llamadroid/ui/components/SharedSettingsComponents.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce3505fbffaa1c370266aa0c3f1f7be3f023c76c7d378418be1c4f4156ad13e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:3122-3134 | app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:3240-3252 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:3122\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:3120\u0060 calls \u0060Text\u0060, \u0060stringResource\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:3238\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":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":3122}}}],"partialFingerprints":{"codehealthFindingId/v1":"01729085dcb11b1a71e42f2a959b64be9b550a15ab72dd8beb1b519d78b904cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:3249-3261 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:3447-3459 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:3249\u0060 it begins part-way through the construct above it, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:3263\u0060 calls \u0060LabeledTextField\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:3460\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":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":3249}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cff8f0710b7e3d7a81c2005487782da716eaaff734c52941ad1f8f2f1347ffd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:1434-1446 | app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:1476-1487 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:1434\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt"},"region":{"startLine":1434}}}],"partialFingerprints":{"codehealthFindingId/v1":"039918c98d1a55b462d6e252c0718fd78772ec3ea621880248e4e8ea948f29ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt:786-798 | app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt:1136-1148 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt:786\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"1efb0db5e52544f150f8a99d6bea28899fab4f66ac9a2f44c8821f772b15501d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt:550-562 | app/src/main/java/com/example/llamadroid/ui/models/WhisperVadModelsSection.kt:349-361 \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 \u0060app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt:550\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt:563\u0060 calls \u0060Row\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/models/WhisperVadModelsSection.kt:362\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b57f3a493e2f24f44ce7455181f1a023dfe1981c37aecee0e2c3100aec4fcbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:1457-1469 | app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:1475-1487 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:1457\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt"},"region":{"startLine":1457}}}],"partialFingerprints":{"codehealthFindingId/v1":"808e7124ee6fe934a2efc88c675eff65a519939aa27c40fae71bc5a9d53be0dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt:70-82 | app/src/main/java/com/example/llamadroid/ui/settings/VideoUpscalerSettingsScreen.kt:53-65 \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 \u0060app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt:70\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a300ef98cf35e2c781f0b241506ad3f034336de3fa6e189987173243cd4820d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:904-916 | app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:935-947 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:904\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a9eba466940b19e262dffc9d0885f14ba4f2a293c8d3bc04c858e9ed4d4ac6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/settings/TitleGenerationSettingsCard.kt:96-108 | app/src/main/java/com/example/llamadroid/ui/settings/VisionHelperSettingsCard.kt:92-104 \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 \u0060app/src/main/java/com/example/llamadroid/ui/settings/TitleGenerationSettingsCard.kt:96\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/TitleGenerationSettingsCard.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88606e131103fd8d9fd3e46a871dda26ca8d3078b07a96b23f2421effef8d15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4354-4365 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5063-5074 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6288-6299 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6321-6332 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:7120-7131 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:7156-7167 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4354\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":4354}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf33f4d9f8c6b46e827b6d23c88c903ac919959dd15ab68fbe3fec4436d082f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): app/src/main/java/com/example/llamadroid/data/model/LocalModelImports.kt:154-165 | app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt:1939-1950 | app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:1115-1126 | app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt:827-838 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/LocalModelImports.kt"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ad91ae137ae9d3eefd696b311c7d10b2b64c22ca524b2061699f1029939dd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 4): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:65-76 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:271-282 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:564-575 | app/src/main/java/com/example/llamadroid/ui/settings/SpeculativeRunHistoryCard.kt:133-142 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aae5283a84502f7ddf8adda8c322a3a57548fc9ed0b36cde39689bd6826dca8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201312 lines \u00D7 4): app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:1132-1138 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:2289-2300 | app/src/main/java/com/example/llamadroid/ui/settings/ChatKvCacheStorageCard.kt:49-57 | app/src/main/java/com/example/llamadroid/ui/settings/SpeculativeRunHistoryCard.kt:53-62 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:1132\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"b40dfd0cd0c711c1069bb4901d43cdeb822ac9842cbddc8a47441a899e00cebf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt:1554-1564 | app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt:1572-1583 | app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt:1595-1606 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt:1554\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt"},"region":{"startLine":1554}}}],"partialFingerprints":{"codehealthFindingId/v1":"116cccdc4ac2698d77d38a104995dfdb793ad929dabae4da86d3cfec6381789c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): app/src/main/java/com/example/llamadroid/data/repository/LiteRtModelRepository.kt:691-702 | app/src/main/java/com/example/llamadroid/data/repository/LiteRtModelRepository.kt:731-742 | app/src/main/java/com/example/llamadroid/data/repository/LiteRtModelRepository.kt:759-770 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/repository/LiteRtModelRepository.kt"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"da964c6702bb4d7360e58fc51708f55c4a07ff62504437c598c87c7da6304e96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:3842-3853 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:3921-3932 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:3991-4002 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:3842\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":3842}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b96ad7a1ce162044f3655af318ceb055b8d199fbf32800a96a5e01a2b76de12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:699-713 | app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt:460-471 | app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt:302-313 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:699\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":"app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a9cc98cde3e7c89bdbb5c4838cfa3dbbaf22196cbb8833b04791515d0c59a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:859-870 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:898-909 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1008-1019 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:859\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"005e559c92e3c647c96e24546da917aa7eef2d20d3297f000deeea69c1afad02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt:70-82 | app/src/main/java/com/example/llamadroid/ui/settings/VideoUpscalerSettingsScreen.kt:53-65 | app/src/main/java/com/example/llamadroid/ui/settings/WhisperSettingsScreen.kt:83-94 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/settings/VideoUpscalerSettingsScreen.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/settings/WhisperSettingsScreen.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt:70\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc28ef5e5e72356bb0f3cfaabb9d249766dd29511d08dbe871bca958ede8ba46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1702-1713 | app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1775-1786 | app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1945-1956 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1702\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":"app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt"},"region":{"startLine":1702}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9667f016cc5a9c77d9822718222054a9572ae9b390188779ad149906af7d82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:319-330 | wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:350-361 | wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:416-427 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:319\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd6b37a784e738d043580e8d88133c247ff8f9f123e3daf4d5027c80fad931e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/audio/library/AudioLibraryRepository.kt:489-500 | app/src/main/java/com/example/llamadroid/audio/library/AudioLibraryRepository.kt:525-536 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/audio/library/AudioLibraryRepository.kt:489\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/library/AudioLibraryRepository.kt"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf37d877863848fdc8fa1813fbd6df168b256d88517e8561e185fb2d7efc08e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactFinalizer.kt:528-539 | app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt:2178-2189 \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 \u0060app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactFinalizer.kt:528\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":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactFinalizer.kt"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"4207bb3fc9038ce971259dba0f608e5baefd6bbbf6a3686c56e84b044c5dab5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactLifecycle.kt:101-112 | app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactLifecycle.kt:144-155 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactLifecycle.kt:141\u0060 calls \u0060suspend\u0060 and \u0060app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactLifecycle.kt:98\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":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactLifecycle.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"e10284383e3c49bb91a6d063f929134c2279e0ca9bf5c0618f00c060b1c26887"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt:880-891 | app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt:903-914 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt:880\u0060 it begins part-way through the construct above it, so those exact 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":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"9406b8659246e968f003e8395797373c1e0b289fcf6d973e92b2f14683304835"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentLocalProjectRunner.kt:461-472 | app/src/main/java/com/example/llamadroid/service/AgentProotRunCoordinator.kt:284-295 \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 \u0060app/src/main/java/com/example/llamadroid/service/AgentLocalProjectRunner.kt:461\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentLocalProjectRunner.kt"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49381f111ad207299348cf803e6baf683f65923fe25e9213a772ba96565c06d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:2221-2232 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:2292-2303 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":2221}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ef2128712e5f49e7bfa4fe628d8ca449b6840814f111b48831611e48e4a419"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:20611-20622 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:20733-20744 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:20611\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":20611}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfdee20670683bac1056c40cd72cf4323b056395dc217986ff796e3caef713bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:487-498 | app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:2842-2853 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:487\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea240881f491f85a539e4205b7f34fc88fce33fb319d7fdddfae6c92e8ef5baa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/DownloadService.kt:988-999 | app/src/main/java/com/example/llamadroid/service/DownloadService.kt:1127-1138 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/DownloadService.kt:988\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DownloadService.kt"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda3b8cf04ed0f17bf0f88ca96bc9b8bd95a4b780f25ec49f45fd4bf47e51d61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/GenerationQueueService.kt:249-260 | app/src/main/java/com/example/llamadroid/service/GenerationQueueService.kt:279-290 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/GenerationQueueService.kt:249\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"app/src/main/java/com/example/llamadroid/service/GenerationQueueService.kt"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"abefe665c1ddc45ba312bb140249d54d870d872db7d314e50f2acd1c6b03e1e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskService.kt:380-391 | app/src/main/java/com/example/llamadroid/service/NativeChatLocalServerStarter.kt:200-211 \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 \u0060app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskService.kt:380\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskService.kt"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba1e1a25a10f58bc8e1e3977193df07140ce2058861d1c61f689ea3016734226"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt:1226-1237 | app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt:1354-1365 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt:1226\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":"app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd63718f93b7f8d59ce8579f0b46fdfc4fbef9311fcb051380191ed27893dd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt:1546-1557 | app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt:1731-1742 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt:1546\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt"},"region":{"startLine":1546}}}],"partialFingerprints":{"codehealthFindingId/v1":"e640db79ab9abd3e841e487a96bac097dba350b86209e30149aedb9ec43c167e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/OllamaService.kt:155-165 | app/src/main/java/com/example/llamadroid/service/OllamaService.kt:758-769 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"app/src/main/java/com/example/llamadroid/service/OllamaService.kt"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a4f79146443cfc0acd910b8fd649cb3b6742c100a4c729f1c7125464348a6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:921-932 | app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:946-957 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:921\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:959\u0060 calls \u0060readLine\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:933\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":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"197cb2514c5240b8209522784bbe19106d2dee957c218f279d6c8377cf8f27d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:1142-1153 | app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:1166-1177 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:1142\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:1179\u0060 calls \u0060readLine\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:1154\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":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f987bdbf949a8a187f5d753273339c476fe8176d19548d60f518f1ad4444e3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/VideoUpscalerService.kt:375-385 | app/src/main/java/com/example/llamadroid/service/VideoUpscalerService.kt:595-606 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/VideoUpscalerService.kt:375\u0060 it does not close everything it opens, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/service/VideoUpscalerService.kt:607\u0060 calls \u0060toString\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/VideoUpscalerService.kt:386\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoUpscalerService.kt"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1eb46d789b35e53f0dd7e3c230a472ea4a1c404efa7f5208bf9a2e296d5c17c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt:554-565 | app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt:579-590 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt:554\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcffcc0f7e3354dd356f8df568ac6e076a0b5a6c282fe08f456f02eef94e1e1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:1794-1802 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:1883-1894 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:1794\u0060 it begins part-way through the construct above it, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:1791\u0060 calls \u0060clip\u0060, \u0060RoundedCornerShape\u0060, \u0060background\u0060 and \u0060app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:1882\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":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":1794}}}],"partialFingerprints":{"codehealthFindingId/v1":"777480d6814430db7e7db0aff08cabeddd608b07462bdf88328203670b174b8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:1035-1045 | app/src/main/java/com/example/llamadroid/ui/agent/AgentChatList.kt:1457-1468 \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 \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:1035\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6fe538099067df7a01908e6d94e16825925bf5527fe9628426aaf0539a38f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaMapView.kt:320-331 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:2132-2143 \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 \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaMapView.kt:320\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaMapView.kt"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4ed11a722d5b2371f4c20e2b47b62ddc4785176472627bbb72147973a92b8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:1538-1549 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:1559-1570 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:1559\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":1538}}}],"partialFingerprints":{"codehealthFindingId/v1":"f892e8b5635d4550fba71080d72d6e1afaf63b274362421216afe4eacda1b751"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:2993-3006 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:3286-3299 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:2993\u0060 it does not close everything it opens, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:3300\u0060 calls \u0060clickable\u0060, \u0060onBuy\u0060, \u0060toInventoryItem\u0060 and \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:3007\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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":2993}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fafe4118d6c60cbcd330a40d24997722affe357bae10f1c85ddfb316d962b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:5574-5588 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:5682-5693 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:5574\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":5574}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5e93d376b768164710873f7440688c2021fb4a44e4e39ed826641ccf75bed5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/LlamaApp.kt:909-920 | app/src/main/java/com/example/llamadroid/ui/LlamaApp.kt:1096-1104 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/LlamaApp.kt"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9d92928bf9fb2c6d1f49e0854bb2894c91f4af8e554a6abf82496e85e401f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:3921-3930 | app/src/main/java/com/example/llamadroid/ui/models/AudioModelsScreen.kt:82-93 \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 \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:3921\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":3921}}}],"partialFingerprints":{"codehealthFindingId/v1":"b96e47584f4484f70885cfeec7903ced90124f8815e495dda5beeb84914de440"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentSkillManager.kt:300-311 | app/src/main/java/com/example/llamadroid/ui/agent/AgentSkillManager.kt:338-349 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentSkillManager.kt:300\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentSkillManager.kt"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"c379ce82505757861984f9eb16c172895852d83e8669bf60614bda4557a42aee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeTransfer.kt:939-950 | app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeTransfer.kt:962-973 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeTransfer.kt:939\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeTransfer.kt"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"63435f1fc64b86b5e5ba2dd966deec01b7075c56debb0f15d6a8b938e18ead64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessTurnActions.kt:244-255 | app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessTurnActions.kt:261-272 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessTurnActions.kt"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8428bcaf7534812c627d2c0b12d2dca873c19f2586dddb4cc4700523253612c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/DatasetScreen.kt:184-196 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:3563-3574 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/DatasetScreen.kt:184\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/DatasetScreen.kt"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"917844fc4207a1a52f81bab8c8481ab0477a223b5118a89821c8e2e9e073ea0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/GenerationOptionGuides.kt:107-118 | app/src/main/java/com/example/llamadroid/ui/ai/GenerationOptionGuides.kt:169-180 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/GenerationOptionGuides.kt:107\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/GenerationOptionGuides.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb3ace12960522cb6ad96e54251440f2d1192d1d45f617f51a4f944646d10c67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:591-601 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5944-5955 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:591\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4176d9c6ded8f7aef228ddfe49308b937309f95a4d8dcf2f70bda6a81b97ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:4476-4487 | app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:955-966 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:4476\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":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":4476}}}],"partialFingerprints":{"codehealthFindingId/v1":"d919759de490287d90818153cfb761a5d5d972cff3ca65bfce29852963e15f79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:5352-5363 | app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:1068-1077 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":5352}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d73432eb59f431c96e8493b978e11613467a7632b88f8b0016e853cc56bb517"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:1036-1047 | app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:1054-1065 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"63a958936100ba5f7bda91c8388c1e7097650f967807163009e849921b9ca9b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:216-227 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:624-635 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.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":"app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac676ce8f8a2f440a7dd91d0d45d8f244dd0bbfec36e4e7f09e05d67cac5e58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:230-245 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:638-649 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:230\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c99b171ca066e7da4cff88fab8a2f9ca5d136fd224ba76c2c16b21b2b9271e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/VideoSumupScreen.kt:740-751 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:7460-7470 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/VideoSumupScreen.kt:740\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoSumupScreen.kt"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe18b3ef27ace42e5908b7ee3c883af840b75462717262bbf535ca332f51433"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:2443-2454 | app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryScreen.kt:961-972 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:2443\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":2443}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2861303b22dbd52b1679fcc5879682a516fee42d8cc6bb1bf09146ed5e24a54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt:634-643 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5311-5322 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:7238-7249 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt:634\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":"app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"2583ef6bf1457305bed760ac0279001f2da2684770c4c1f1b58c303b8e13095e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatServerSheet.kt:48-59 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chatlist/NewChatSheet.kt:148-159 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatServerSheet.kt:48\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatServerSheet.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1430286fd51f1ba11a9c9d3c4fa764b589d5f8960abb81d8483ef1affc378ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsSections.kt:665-676 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:1258-1269 \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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsSections.kt"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"038604660e2f6fe81696e484be8afab553f030ced4fc7c506f25b30565d8c62b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/components/AppChrome.kt:520-531 | app/src/main/java/com/example/llamadroid/ui/components/AppChrome.kt:533-544 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/components/AppChrome.kt:520\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/AppChrome.kt"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67c928acb7c2fe226f08ab0be69f1dfa63163dfbed5ff7cccbf5104b22b5e59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundlePicker.kt:244-253 | app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt:539-550 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundlePicker.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundlePicker.kt:244\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundlePicker.kt"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"192ba1b794fe9a824361cd17cba1c82caf3d841abaa8c8d7ab9872cfb365249d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/components/VideoInputPicker.kt:173-184 | app/src/main/java/com/example/llamadroid/ui/components/VideoInputPicker.kt:245-256 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/components/VideoInputPicker.kt:173\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/VideoInputPicker.kt"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"f11732a0929b15834b9abdc54ed01bbc99d23a4d1f1cbcf8c5028d5d349b856b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt:773-780 | app/src/main/java/com/example/llamadroid/ui/settings/SpeculativeRunHistoryCard.kt:137-148 \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 \u0060app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt:773\u0060 it begins part-way through the construct above it, so those exact 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":"app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"6510e6a4702fa335159ea1447f7ea808e18c24a03c443124246576021127fcf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:1683-1694 | app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:1923-1934 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:1683\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":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":1683}}}],"partialFingerprints":{"codehealthFindingId/v1":"f302db0944d956b273e0470d4c1c562d7b3cb79c47f69f11dfc1005400211829"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:2855-2863 | app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:2990-3001 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:2855\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":2855}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fe0990ea1091cf5487c1d40dbc19750ab321fdc085aedd73a7bb79d4cda833f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:2033-2044 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:2189-2200 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:2033\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":2033}}}],"partialFingerprints":{"codehealthFindingId/v1":"628b45512ce2fc3ecc566d65690a0f7af5253cdfb3c61a5250d1c96723231762"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkScreen.kt:328-340 | app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkScreen.kt:347-358 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkScreen.kt:328\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkScreen.kt"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"032fbd786a5b2a8d86b710e6277f263e5dc3d065ae8aeae3316aff5458ef783e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/widget/TamaFarmWidget.kt:199-210 | app/src/main/java/com/example/llamadroid/widget/TamaPetWidget.kt:177-188 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/widget/TamaFarmWidget.kt"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d7cfa660c86227872d42c2faaa3bbb281064d70e025769804a946c283150fb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:471-482 | app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:524-535 | app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:749-760 | app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:792-803 | app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:853-864 | app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:1462-1472 \u2014 there are 6 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:471\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64bf4838a1973bb439f706ff27b76b337e29761a5e50f03b856a4a61562eba1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt:75-85 | app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt:106-116 | app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt:137-147 | app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt:159-173 | app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:723-733 | app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:770-780 \u2014 there are 6 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt:75\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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":"app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3dbd434c5d86f47612f8a2c70b0897c0583adde91f34f535ab1387259ba9390"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): app/src/main/java/com/example/llamadroid/audio/music/StableAudio3LoraMath.kt:72-82 | app/src/main/java/com/example/llamadroid/audio/music/StableAudio3LoraMath.kt:95-105 | app/src/main/java/com/example/llamadroid/audio/music/StableAudio3LoraMath.kt:119-129 | app/src/main/java/com/example/llamadroid/audio/music/StableAudio3LoraMath.kt:130-140 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/music/StableAudio3LoraMath.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c80e87200d4f67cfe2f4d8c196e2069ec1506125a0806b43b42e96ee927132"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 4): app/src/main/java/com/example/llamadroid/harness/HarnessAppToolsSettings.kt:101-109 | app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:3863-3873 | app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:2123-2133 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:975-985 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. 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":"app/src/main/java/com/example/llamadroid/harness/HarnessAppToolsSettings.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33c91fa0cd8d97bbbbf506f17450e216cafd404d85a92c3c5a5d9cd45e2fe84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:178-188 | app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt:927-937 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:1455-1465 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatScreenSupport.kt:103-113 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt:926\u0060 calls \u0060clearFeedback\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:1454\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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"048e21517cd7c00d576c8263f99570971f29f738f77ab3a2d7cabff1152bd58d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:324-334 | wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:355-365 | wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:390-400 | wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:421-431 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:324\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"adea4fedf2056a1b2ec92d2c546a981474cc74f55a298b63309aa8f8a9ef494b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): app/src/main/java/com/example/llamadroid/service/LiteRtLmWorkerService.kt:105-115 | app/src/main/java/com/example/llamadroid/service/LiteRtLmWorkerService.kt:195-205 | app/src/main/java/com/example/llamadroid/service/LiteRtLmWorkerService.kt:328-338 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtLmWorkerService.kt"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"3625a9217aeb1b1944b9c1e25b80b706f6a39a207dd06cd14059f8472de9e02a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:596-606 | app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:1030-1040 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageMedia.kt:589-599 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt:596\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"c436908760bcf3082087199e0dfb72dcf2cc6cbd4309d5660af3666140c69fb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt:777-787 | app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:777-787 | app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:1507-1517 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt:777\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb1ed5b9ac2e695b84fa6132f4a9f4dd80561f0ec8083f8a1f997b90ccdc79f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:749-759 | app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:761-771 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6012-6022 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:749\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"393e730072d65138ce2d51d37665120c4a76aab774b44fda560bbf585498abcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:3917-3927 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:2746-2754 | app/src/main/java/com/example/llamadroid/ui/library/AllMediaGalleryScreen.kt:708-718 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:3917\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060item\u0060 to \u0060WorkflowOutputGalleryFile\u0060 in one and \u0060SdGeneratedMediaItem\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":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":3917}}}],"partialFingerprints":{"codehealthFindingId/v1":"187c23e9968b99c4857d065465478008b3d0967a282e33a3b77515320de62e10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/PrepareCachesSheet.kt:144-153 | app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/PrepareCachesSheet.kt:216-225 | app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/PrepareCachesSheet.kt:246-256 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/PrepareCachesSheet.kt:246\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/PrepareCachesSheet.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"81353d2a1b197471cf4fcf8f756595174ec42ce6206bca6f9f5471f1ac6fef5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:1684-1694 | app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:1924-1934 | app/src/main/java/com/example/llamadroid/ui/kiwix/ZimManagerScreen.kt:1443-1453 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:1684\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":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffda2875b6e75813687e7d8b0854ca481da8853c68c2f11d34e6dbe39d3a55d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/settings/VideoUpscalerSettingsScreen.kt:58-68 | app/src/main/java/com/example/llamadroid/ui/settings/VideoUpscalerSettingsScreen.kt:89-99 | app/src/main/java/com/example/llamadroid/ui/settings/VideoUpscalerSettingsScreen.kt:120-130 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/settings/VideoUpscalerSettingsScreen.kt:58\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/VideoUpscalerSettingsScreen.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"806142cdf2a2a1d4f57ecdb494b90ed022c1cb765d98408659c58f0dda4911d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/settings/VideoUpscalerSettingsScreen.kt:89-99 | app/src/main/java/com/example/llamadroid/ui/settings/VideoUpscalerSettingsScreen.kt:120-130 | app/src/main/java/com/example/llamadroid/ui/settings/WhisperSettingsScreen.kt:131-141 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/settings/VideoUpscalerSettingsScreen.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/settings/WhisperSettingsScreen.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/settings/VideoUpscalerSettingsScreen.kt:89\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/VideoUpscalerSettingsScreen.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"316d15b0e0f728c19e58840b76012a066273c87705a5100f3aae8adafd48ee2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/audio/music/StableAudio3LoraMerge.kt:560-570 | app/src/main/java/com/example/llamadroid/audio/music/StableAudio3SafeTensors.kt:247-257 \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 \u0060app/src/main/java/com/example/llamadroid/audio/music/StableAudio3LoraMerge.kt:560\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/music/StableAudio3LoraMerge.kt"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"255ef9416eba91a4ab2fce695b1dba8a26c2e8fa8e72dce3bf1a06b605be3668"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt:1316-1326 | app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt:1458-1468 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt:1316\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"904eb2b0de6c00edd835847a26ab4129b2de5efd622b0e8dd9457aa3f60547a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferConfiguration.kt:261-271 | app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferDomains.kt:562-572 \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 \u0060app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferConfiguration.kt:261\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferConfiguration.kt"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3158f11330233e530e4db408c627ec42793e38c287117652f4b181ffc5871c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:511-521 | app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt:327-337 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 280 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:511\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6639fccfa98aeb10b5afefe0a6a3b5f582bf87b6637b2558a7582ef429ea4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentProotRunCoordinator.kt:266-276 | app/src/main/java/com/example/llamadroid/service/AgentProotRunCoordinator.kt:281-291 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProotRunCoordinator.kt"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad60db56130b8e3d1701650eff001e79061cc3bee34e9785dcb530d50488dc00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:7951-7961 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:7998-8008 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":7951}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60bb20b87eee084b601f4a1354f7947ad5e81d9e180685cb9da5d5023bdf231"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:11668-11678 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:11697-11707 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":11668}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12177d4e55e3583b9e1aa0e55a892664f993fedb7f612d4ac631b4fc5722f53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:470-480 | app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:589-599 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:600\u0060 calls \u0060randomUUID\u0060, \u0060toString\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:481\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":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"f81ea6398002ba52cb2c33b464bac6bf00671a0e62b27d01298f0b333040ca47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:526-537 | app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:551-562 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:526\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7783e7d75849d7f621ae1f9a6bef8a4858b8ae5a04e556da8325c8141c23d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:993-1003 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:1211-1219 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:993\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ddd98de66356634b036f1f303fd45415328dc155384d1da70bf74c5aed420c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:2530-2540 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:2786-2796 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:2530\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":2530}}}],"partialFingerprints":{"codehealthFindingId/v1":"b169dc4faec58b96be938573a78ced6e3309f5df8afeca739d4a44352b15c2ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:2744-2755 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:4319-4330 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:2744\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":2744}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c2f401907b88f582635e104e17295ccb6a4526b8ea06051cfec8d69f06fa9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:5344-5354 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:5432-5442 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:5344\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":5344}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd03f98996ac99502ceade95d70ce3260e86e0fc88c9b3dd5933afe793d559e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:850-860 | app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:1069-1079 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:850\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a38c94e05fdb3b1ebaed4e2a151722114dc9c83e71b4e4638fe91ede9d7adf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/SdRuntimeSupport.kt:263-273 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1316-1326 \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 \u0060app/src/main/java/com/example/llamadroid/service/SdRuntimeSupport.kt:263\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdRuntimeSupport.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd38c58ff2041cda53a51920541843425e4819ed9ceeb37eea7ef74a6a967a67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:1155-1165 | app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:1174-1184 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:1155\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef1ab9bcc33307d79db3001628dce4b787a22765fb45a1b840e96ee70fc0adbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/adventure/AdventureService.kt:587-597 | app/src/main/java/com/example/llamadroid/tama/adventure/AdventureService.kt:647-657 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/adventure/AdventureService.kt:587\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/adventure/AdventureService.kt"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"58cb3602c1ea0ccb5bf2dc07f3a85f537f2b1fce2a11d729f438c4109a932fa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:746-756 | app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt:847-857 \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":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"875ef21cb63ab5116d49ddf5615da89524551a2b4b7635cfabfcc413f30f7c6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:1659-1668 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:1729-1739 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:1659\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":1659}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5780b94808f714c59119006318ec07696dc1d8cd3448112e87cba0fd983c3cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:3867-3877 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:3948-3957 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:3867\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":3867}}}],"partialFingerprints":{"codehealthFindingId/v1":"e545990af0aae93564c5fc06af84d93085a0bf863056e6b71322450dcb5c9dab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmUpgradeDialogs.kt:107-117 | app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmUpgradeDialogs.kt:124-134 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmUpgradeDialogs.kt:107\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmUpgradeDialogs.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed84957b104bcf8e92979f10855fb00381183f94dc2f5d7f3e2bde7d98dea23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentChatList.kt:1264-1274 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageItem.kt:204-214 \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 \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentChatList.kt:1264\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentChatList.kt"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"6439d6c0515401ec05cdd7a4585e1c068c8d02203f49c0b7de78a6c52c718295"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/FastsdGalleryScreen.kt:227-237 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageMedia.kt:634-646 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageMedia.kt:634\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/ui/ai/FastsdGalleryScreen.kt"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb85c584cbb93d22fe42f7d334c023781388a638a656a72be253671955fda2e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/FastsdGalleryScreen.kt:464-475 | app/src/main/java/com/example/llamadroid/ui/ai/FastsdGalleryScreen.kt:613-623 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/FastsdGalleryScreen.kt:464\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"app/src/main/java/com/example/llamadroid/ui/ai/FastsdGalleryScreen.kt"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea3d57eb9d438886a04ce3848f49ca720c9eeee68419a97884f4ddb438bb3cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/GenerationOptionGuides.kt:120-130 | app/src/main/java/com/example/llamadroid/ui/ai/GenerationOptionGuides.kt:182-192 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/GenerationOptionGuides.kt:120\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/GenerationOptionGuides.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"117a324b4dce8f3bb9d2a29294c4d4501ddfc8f6ad4f21bd0225bc915e2df900"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:226-234 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5921-5931 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:226\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdebbaf0a5ab1121c5281b648eaae471a7710ebd39702d72037f34c43806f4b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:3869-3877 | app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:4351-4361 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:3869\u0060 it begins part-way through the construct above it, so those exact 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":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":3869}}}],"partialFingerprints":{"codehealthFindingId/v1":"279e27cdda320190f59f3dbaef7a897f3d3ca708006b04da326e21dc4a18518b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:4789-4799 | app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:1879-1889 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:1877\u0060 calls \u0060fromStoredValue\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:4788\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":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":4789}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1083c53e51cbc402a186a2c52551cc4e3fa4b14ac658d4c5866a13fafaec78b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/OnnxTtsScreen.kt:364-374 | app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:1495-1505 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/OnnxTtsScreen.kt:364\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxTtsScreen.kt"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"666e4a20ba813a8ca23b160a65565898b907d7a2a708d1bf0732e4479ed85e3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/SdIpAdapterControls.kt:396-407 | app/src/main/java/com/example/llamadroid/widget/NoteDisplayWidget.kt:546-557 \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 \u0060app/src/main/java/com/example/llamadroid/widget/NoteDisplayWidget.kt:546\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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":"app/src/main/java/com/example/llamadroid/ui/ai/SdIpAdapterControls.kt"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c6092483faae497bb949b2c55085e1fc56f5eae0144ff78d9654ee9b2b4672"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:1125-1135 | app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:1143-1153 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:1125\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":"app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt"},"region":{"startLine":1125}}}],"partialFingerprints":{"codehealthFindingId/v1":"949564d157df868f2c21039117e284f7ed233f63778c6f398a9065b3c2412d22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/VideoInterpolationScreen.kt:647-657 | app/src/main/java/com/example/llamadroid/ui/ai/VideoUpscalerScreen.kt:533-543 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/VideoInterpolationScreen.kt:647\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoInterpolationScreen.kt"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"061b82d2e34e2ca52db971dc45040f4e11aa73eb787eec5cada4db238beb58d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:2111-2121 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:963-973 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":2111}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccc2ee7b185c583f1f03330219527399a0002689b988107e009db9e5ca40dd7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageMedia.kt:465-475 | app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:1675-1685 \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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageMedia.kt"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b54883ee4827b6929c8340a3186afa2e47adb7c68e0093d459cccc072b33f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/RemoteServerForm.kt:523-533 | app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/RemoteServerForm.kt:670-680 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/RemoteServerForm.kt:523\u0060 it begins part-way through the construct above it, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/RemoteServerForm.kt:681\u0060 calls \u0060refreshOllamaCapabilities\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/RemoteServerForm.kt:534\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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/RemoteServerForm.kt"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca660eb88ae680b3dd116f1a8f8ff6ec645e12b2b1f3326fff93a8f61be10372"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt:733-743 | app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt:1762-1772 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt:733\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5076de3906b5ae2e82615111b78ab4550d918e2ea39713a562ae4cb39067df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:1804-1814 | app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:962-972 \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 \u0060app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:1804\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":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":1804}}}],"partialFingerprints":{"codehealthFindingId/v1":"175fbf4b5d5fddbb38e651ebe18bee47c38080eb38e1d679c3226329f5dc44f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:4518-4526 | app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:5060-5070 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:4518\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":4518}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3cc327d2dfe22732dd7f969ce0c5a9bc07b2845769a8c2189f044d344ee8ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/kiwix/ZimManagerScreen.kt:1132-1141 | app/src/main/java/com/example/llamadroid/ui/models/ModelShareScreen.kt:113-123 \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 \u0060app/src/main/java/com/example/llamadroid/ui/kiwix/ZimManagerScreen.kt:1132\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":"app/src/main/java/com/example/llamadroid/ui/kiwix/ZimManagerScreen.kt"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6a185cafd6d056cd09a31d7b8bbadee363c763fba0d0f640da809e9286ff87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:791-801 | app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:850-860 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:791\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9801784d34b185afad6525954dc5cfe40d5ab3b0dd57a077db139b4dd499da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:816-826 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1107-1117 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"c99707476d2c10bf2c23348e785b67316a54801e2601b221f7b9b2c6f6ba8352"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:1088-1098 | app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:1142-1152 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:1088\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":"app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f7cb617c4695789b49641e8d244fc72f459890203d5077baaad2f6bde46e83d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/theme/PixelPalettes.kt:47-57 | app/src/main/java/com/example/llamadroid/ui/theme/PixelPalettes.kt:66-76 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/theme/PixelPalettes.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e511534e0ab7722701b050d6ad83ee8fbb80b990a76b28c8e2ff131174cc2803"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:2225-2236 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:1690-1700 | app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt:1060-1069 | app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt:1622-1632 | app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkHistoryScreen.kt:254-265 \u2014 there are 5 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:2225\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":2225}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef6c30cbe35fc8cb6ea2d64d1b96b4acc6d47a1355246a49c0f60cbfe2f8811"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt:364-373 | app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:4136-4145 | app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt:1087-1096 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt:364\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"a494efa39b597e3b4dd5d96ec4a202393785058588179e35fa5e85d91b56e7a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): app/src/main/java/com/example/llamadroid/service/MediaModelSupport.kt:192-200 | app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:2751-2760 | wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:3488-3497 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/MediaModelSupport.kt:192\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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":"app/src/main/java/com/example/llamadroid/service/MediaModelSupport.kt"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"984e253c641ffe1efd73243aebf75ddaaf9fa7a30dde2ce11aa5276c377b7543"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:1083-1092 | app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:1111-1120 | app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:1137-1146 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:1083\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f3d19d5f44104cda8dcc4f99125dbbc5500d85b0dbb12f657dddd04bf4018f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmUpgradeDialogs.kt:108-117 | app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmUpgradeDialogs.kt:125-134 | app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmUpgradeDialogs.kt:200-209 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmUpgradeDialogs.kt:108\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmUpgradeDialogs.kt"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4991d2abd757df1ef71dbea27bfd65f079eb5b15c8cb427f59582215c6610f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:671-680 | app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:1362-1371 | app/src/main/java/com/example/llamadroid/ui/ai/VideoUpscalerScreen.kt:485-494 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:671\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba7342a1a84ae8248acd5bb1ec44657cc0efc588f99a4520e3738e925d402d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:2257-2267 | app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:435-444 | app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:939-949 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:2257\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":2257}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3bcc5eb60c5890d56e673bc61e6edd457a748f252bd3ec1eb6b7bff484d06b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:608-617 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:707-716 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1214-1223 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:608\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":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1027e87491f7c3c4563bade1232f163ba7fe702c7f72f766aa052ba7fcca97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt:1032-1041 | app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt:1063-1072 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt:1032\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f0fe3d9d8a9f01e703519b9d720d332da2d63a92270a46ed4ddc0c42ee043dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/harness/HarnessAppToolsSettings.kt:164-173 | app/src/main/java/com/example/llamadroid/harness/HarnessAppToolsSettings.kt:181-190 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/harness/HarnessAppToolsSettings.kt:164\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAppToolsSettings.kt"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f7f3d498d785cf4f60182f9526e78388f24290d56b7eab7223c5a56944880d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt:256-265 | app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt:1187-1196 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab1e99ff955668d0e927811b40b067bb793cce6d15adb30afa70d8536ffb473"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt:861-870 | app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt:883-894 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt:861\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"52fa8d1a22b149b60d34fe975fc8a5d0418c8ca7b67ca43692cda4f81e3be160"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:2447-2456 | app/src/main/java/com/example/llamadroid/service/SSHService.kt:302-311 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":2447}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8833d33c0d8c3f15045fbc0c232c052ce2b3510e20908fb1210a9f4e0d62e51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:14821-14830 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:14929-14938 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":14821}}}],"partialFingerprints":{"codehealthFindingId/v1":"39eaef142ff5055271bc8ff952ad7c67b0a65e63d110c31bd8c585f1b81f277a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:20653-20662 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:20773-20782 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:20653\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":20653}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e95f988dd3f8d5b7f9cbc795179578eb9f2e080938b4b9e59ed81655233d27f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:3776-3785 | app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:3863-3872 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":3776}}}],"partialFingerprints":{"codehealthFindingId/v1":"660a5f824c81df08c82f516a57aa1e07221126ef000c19a140763a71f16692ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/NativeVideoRecognitionRuntime.kt:346-355 | app/src/main/java/com/example/llamadroid/service/NativeVideoRecognitionRuntime.kt:408-417 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/NativeVideoRecognitionRuntime.kt:346\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeVideoRecognitionRuntime.kt"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e24f46ad37e733d62243e5299107248a258a7f30a348707e9dcf524e60f6eb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:3670-3679 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:4137-4146 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:3670\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":3670}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a297f0caddceb5fff57cf451e4bff9647fc456041d2aa535302d263d7ffc46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:6166-6175 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:6562-6570 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:6166\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":6166}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1b52262f5d40e3005af7aa8832367baab55dec4d7cf88aa93590d754ef3159"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:6923-6932 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:7188-7197 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:6923\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":6923}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb20e96daa1c9b31dcfd90eff7f5e4bb9014282c420137d4dc55dd7e795e1b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/SdGeneratedImageMetadata.kt:287-295 | app/src/main/java/com/example/llamadroid/service/SdGeneratedImageMetadata.kt:380-389 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"app/src/main/java/com/example/llamadroid/service/SdGeneratedImageMetadata.kt"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"26458dd9ada780cb40d0cd5c16e12be441a54d7fcc3e6923dab5f08f15bcaf58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt:146-155 | app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt:187-199 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt:146\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"d135229a919c86aac86b2cae7e850e39cf209b81e4eaf12a40915cb73e99d9b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt:628-637 | app/src/main/java/com/example/llamadroid/service/VideoRecognitionWhisperTranscriber.kt:184-193 \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 \u0060app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt:628\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/java/com/example/llamadroid/service/VideoRecognitionWhisperTranscriber.kt:183\u0060 calls \u0060environment\u0060, \u0060putAll\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt:627\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":"app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e57af959fdf9a54de693a555ffc33fe695778752601c8f4c1cc190cc516b6cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/bubble/ChatBubbleOverlayService.kt:185-194 | app/src/main/java/com/example/llamadroid/tama/shimeji/ShimejiOverlayService.kt:465-474 \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":"app/src/main/java/com/example/llamadroid/service/bubble/ChatBubbleOverlayService.kt"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf225e458f88c2df0e4254a2642553a17dbf171c40a5fca45beacbcd0d84bb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/game/PetMapper.kt:67-76 | app/src/main/java/com/example/llamadroid/tama/game/PetMapper.kt:140-149 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/PetMapper.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"9862d366852c50a54cb9884e2ccf341d1fcf715c6dcf2abfa844b17a334170a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:1547-1556 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:1771-1779 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:1547\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":1547}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d74bdeeab9f561920032ec2989e5ddbf77d106f1f249bbb693ffa52177bb78e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/ArcadeMemoryGame.kt:610-619 | app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt:1319-1328 \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 \u0060app/src/main/java/com/example/llamadroid/tama/ui/ArcadeMemoryGame.kt:610\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/ArcadeMemoryGame.kt"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4118b49d0db15e156b90efaff141f5aeaf2a17681b5647672f3cb812bfdfac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmCoinPop.kt:55-64 | app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmTileOverlay.kt:235-244 \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 \u0060app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmCoinPop.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":"app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmCoinPop.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd0d28375bdd1cd5d076c321a9f929b0b9ef4999a53ad74b4e93aa28dbd719f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmMaterialUi.kt:160-169 | app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmTileOverlay.kt:229-238 \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 \u0060app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmMaterialUi.kt:160\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmMaterialUi.kt"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e84760ee86c32047d8e622e29abb032ad018d9ad3f92cd97dd603e02f6b6a17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmUpgradeDialogs.kt:252-261 | app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmUpgradeDialogs.kt:326-335 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmUpgradeDialogs.kt:252\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmUpgradeDialogs.kt"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1a562ab3add1d2d5b4af0e680b92911a230d29be8f15c9f51a8cc6868707a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt:1430-1439 | app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt:1492-1501 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt:1430\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"940795779d6fbae01e0c697aae834268f8c864841914dc022befd40a0ca7de7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:1692-1701 | app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:1714-1723 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:1714\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":1692}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4f949eec2130403ebab698b45152097c564511d4fa047f872812cd4fc84265"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:4169-4178 | app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:377-384 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:4169\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":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":4169}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d6ded821f5dba2374262759af5f85c705649599f9011b8ec780b2ff5be8fb02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/InpaintMaskEditor.kt:120-129 | app/src/main/java/com/example/llamadroid/ui/ai/MangaPaintedMaskEditor.kt:184-193 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/InpaintMaskEditor.kt:120\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/InpaintMaskEditor.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9fb493c740b2f16cf15169bbd3b46a9d668b0e20708a82af151478b2b902385"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/InpaintMaskEditor.kt:472-482 | app/src/main/java/com/example/llamadroid/ui/ai/InpaintWorkspaceManager.kt:130-140 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/InpaintMaskEditor.kt"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"432014920b670ee167f0bd9e8611a5267c163765482ae5b022de446a59e7e029"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt:256-270 | app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt:804-813 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt:256\u0060 it begins part-way through the construct above it, so those exact 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":"app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4add4c5158429550cba385835b9ea78cd7d426d0755050a315b7a481081d62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryViewModel.kt:469-478 | app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryViewModel.kt:496-505 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryViewModel.kt"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"8592ae5264adb9be9b3110209f3795f38de173203fcc37fa350b22df6ccd159d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:916-925 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1027-1036 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:916\u0060 it does not close everything it opens, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1026\u0060 calls \u0060Spacer\u0060, \u0060height\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:914\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":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c8da06a859d2dd03e2ff74b211d7b8e16bf2415e5b31dde4f2862b11dceea51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/settings/VideoUpscalerSettingsScreen.kt:151-160 | app/src/main/java/com/example/llamadroid/ui/settings/WhisperSettingsScreen.kt:355-364 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/settings/VideoUpscalerSettingsScreen.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/settings/WhisperSettingsScreen.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/settings/VideoUpscalerSettingsScreen.kt:151\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/VideoUpscalerSettingsScreen.kt"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"856b61c90d4b5c1477f01cab3603606ef4842746e42553e46858320987865f84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:1163-1172 | app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:1181-1190 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:1163\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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":"app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"989d32689852339261a4854b33ef7fba8087ea3fca8932599265ca0eb6acfcb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:168-179 | wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:299-308 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:168\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1deeea36b68e0670bcc63afdb1d2550763e2836d2347262dd0b9a118ba0d703"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:2223-2235 | app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt:1060-1068 | app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt:1622-1631 | app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:471-481 | app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:524-534 | app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkHistoryScreen.kt:252-264 \u2014 there are 6 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:2223\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":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":2223}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f2bcaa4b14dd52335798d8d34e8927d7472e238d7d2daf2d1570eb467a0cb6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): app/src/main/java/com/example/llamadroid/service/AgentLocalProjectRunner.kt:446-454 | app/src/main/java/com/example/llamadroid/service/AgentLocalProjectRunner.kt:461-469 | app/src/main/java/com/example/llamadroid/service/AgentProotRunCoordinator.kt:269-277 | app/src/main/java/com/example/llamadroid/service/AgentProotRunCoordinator.kt:284-292 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentLocalProjectRunner.kt"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"878bed67419b5a795b523f8e2f2867791987f6cc3da5cb01cfb87b0b7f246f7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:1955-1963 | app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:2103-2111 | app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:295-303 | app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:800-808 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:1955\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":1955}}}],"partialFingerprints":{"codehealthFindingId/v1":"cadb923ee02b1621912b09f8242f9165f163b91d65f646793fada953421f096d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 5): app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt:472-480 | app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt:483-491 | app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt:494-502 | app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt:505-513 | app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt:515-522 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt:472\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":"app/src/main/java/com/example/llamadroid/ui/models/WhisperModelsScreen.kt"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3cb65facdfea7ecfca519cc6a427cc67e57e648483d1729d656c491e2fee550"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:468-476 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:554-562 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:655-663 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1081-1089 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:468\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":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"848221bf9c62678bca3824e080eb630c4796208f654bbf2a9b9cdafa67dddc3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:571-579 | app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt:357-365 | app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:4129-4137 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:571\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c495d8b8e3cc07f0f1475a9fcaac1ad17976fd8ac620087660f6dc8d4d48f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): app/src/main/java/com/example/llamadroid/service/PDFService.kt:2840-2848 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:2995-3003 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:7634-7642 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":2840}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8a5c5d4aba8c2a81ba3efa585632f9b31f6cf7d7bf6aa674ce2afc47f331e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): app/src/main/java/com/example/llamadroid/service/SdGeneratedImageMetadata.kt:173-181 | app/src/main/java/com/example/llamadroid/service/VideoGenerationConfig.kt:383-391 | app/src/main/java/com/example/llamadroid/service/VideoReusePayload.kt:355-363 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/service/VideoGenerationConfig.kt:392\u0060 calls \u0060put\u0060, \u0060toJsonArray\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/SdGeneratedImageMetadata.kt:182\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdGeneratedImageMetadata.kt"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"9daed59480a6611d1a5f91ca8916910a8df225ccc4ee61ade75e519aa487c55f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:318-326 | wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:349-357 | wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:442-450 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:318\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c620f0adc158c1fbc6875fb7a5fcbc215603b6bb4611eb71d8299225e6539f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/audio/music/StableAudio3ModelDoctor.kt:394-402 | app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactGroups.kt:137-145 \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":"app/src/main/java/com/example/llamadroid/audio/music/StableAudio3ModelDoctor.kt"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2e4ba8b3cc08181f59379a5a8e30420f8b08a114ed05d9cd8671b29142b9c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/model/AudioModelSupport.kt:260-268 | app/src/main/java/com/example/llamadroid/data/model/CuratedBundleSupport.kt:303-311 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/java/com/example/llamadroid/data/model/AudioModelSupport.kt:258\u0060 calls \u0060payloadArtifactIdentity\u0060 and \u0060app/src/main/java/com/example/llamadroid/data/model/CuratedBundleSupport.kt:302\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/AudioModelSupport.kt"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c446344e5a0498bbc907dd9a71a7c91e71a6b7b00bc663aac0c924357fe96eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt:681-689 | app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt:748-756 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt:681\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda7c7a57625f8e077ba61438560ab01bf6447f1f7c4efe7adf28acc1ca1dfe0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/proot/AgentProotEnvironment.kt:271-279 | app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeEnvironment.kt:342-350 \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 \u0060app/src/main/java/com/example/llamadroid/data/proot/AgentProotEnvironment.kt:271\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeEnvironment.kt:351\u0060 calls \u0060require\u0060, \u0060startsWith\u0060 and \u0060app/src/main/java/com/example/llamadroid/data/proot/AgentProotEnvironment.kt:280\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":"app/src/main/java/com/example/llamadroid/data/proot/AgentProotEnvironment.kt"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef3c51a981fd82fd0f94c5a389e3b8d36ac751e0b197d080ee7254fb27f3ccd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/runtime/AgentRuntimeProfileSupport.kt:125-132 | app/src/main/java/com/example/llamadroid/data/runtime/AgentRuntimeProfileSupport.kt:180-188 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/data/runtime/AgentRuntimeProfileSupport.kt:125\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/runtime/AgentRuntimeProfileSupport.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c7aa9a75931afc48e68fbfa99594947fe8ee7a55e2e527b27e9762470bcd9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/harness/HarnessAppToolsSettings.kt:67-75 | app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:975-983 \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":"app/src/main/java/com/example/llamadroid/harness/HarnessAppToolsSettings.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c8f9fb4ff54f4d23b7688156c12c929dee6cfcec5d30ebc8206ab71d74da46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt:244-252 | app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt:1177-1185 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"a517a8b8ec427e4f12c4624dab0d8b7fbeca9c50e8a40f245776c8bf4085b194"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt:765-773 | app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt:837-845 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt:765\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc6c1ed01b2b77030fe40b0362819bb20805041f67606ae7b2ca5d77b895cf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferDomains.kt:139-147 | app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferDomains.kt:187-194 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferDomains.kt:139\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":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferDomains.kt"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"362882152635b08eefb3b64b16893651e7d4f6e7278eb2990714a1ab4ca86d2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentRemoteChatWorkerService.kt:572-580 | app/src/main/java/com/example/llamadroid/service/AgentRemoteChatWorkerService.kt:694-702 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentRemoteChatWorkerService.kt:572\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentRemoteChatWorkerService.kt"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df99a054507e82d70ad817f222deff7c2ee44a483aedf618c92c51ce7fed046"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:1046-1066 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:3674-3694 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d44741f7bceb83d698b3d17dc81ba17d5481455d0a96d7ff5f38a3823089220"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:897-905 | app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:1003-1011 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:897\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"393d56057d3070f8fc4ac0cc5b997de0a845ef0322c13b60b64616811a652955"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:446-454 | app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt:306-318 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:446\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"b22a93fd075433aa6058f3929cd4d8ddc32a16d1cfde195e9695f7fd495119a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:2374-2382 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:2418-2426 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:2374\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":2374}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f2737ba9ab4ec982c70010e01572b6809d8c72e64359fb1547c34551cd1387"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:7042-7050 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:7118-7126 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:7042\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":7042}}}],"partialFingerprints":{"codehealthFindingId/v1":"967ce2aef1f4b599c6ab4e6fdfcd6006af79201a40b5d33e83447d4f6242b67c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:775-783 | app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:1008-1016 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:775\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060SDConfig\u0060 in one and \u0060SDUpscaleConfig\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":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"543dfe7b0bb956d3f307a62485f2fe91a9cc826bf559f87e0b3c8b2e6128cc44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:899-907 | app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:1123-1131 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a38894a8aad1af0f3268bd1e9b7034e55ace5b4ba628dbc7cebb9ae821ea8aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:2149-2157 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:2173-2181 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:2149\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":2149}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a72143b41de3395aa0142be434c77196356673399c9fb8ee3c8919dac580f60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt:349-357 | app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt:413-421 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt:349\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9ed54cf32b8e1683a6a24983d43aae977d731d6d40563927abc74e1b14539d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaChatServerSettings.kt:650-658 | app/src/main/java/com/example/llamadroid/tama/ui/TamaChatServerSettings.kt:661-669 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatServerSettings.kt"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0121d5d4d5ac2322cc0227a3aa865eab8fa4f3ae5e8310c273b5ef44732c87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:4935-4942 | app/src/main/java/com/example/llamadroid/widget/TamaPetWidget.kt:320-328 \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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":4935}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e5a4b252e6e55fbc2a4a299a5c6d03d58670a8c02859a368861a578a57c0fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:412-420 | app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:450-458 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:412\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f0f96fb4374e1a864f0c4a4959ed796daa7b5e29dbe4ecc1787c213e042db8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:746-754 | app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:4021-4029 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:746\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:755\u0060 calls \u0060Spacer\u0060, \u0060height\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:4031\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":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"9293e9f72200c5c2d260df6f8f3e5bb4b91e560625c8025ab5a066fa228a5323"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:759-767 | app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:4034-4042 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:759\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":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"de75635bfd9d2b525fc6263297b34b8c626bd5e8dd85d0531ece7cdd3e745b32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:4080-4088 | app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:4099-4107 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:4080\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":4080}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5587c493825c24fb0d7890e428f8eab17bd50d3a16c8e8bb838ba680a9afc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentNewProjectDialog.kt:61-71 | app/src/main/java/com/example/llamadroid/ui/agent/AgentPlanEditorDialog.kt:53-61 \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 \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentNewProjectDialog.kt:61\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":"app/src/main/java/com/example/llamadroid/ui/agent/AgentNewProjectDialog.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8906c816df6a52a7c0ee83c236eb2f4c589d55aba8248a06a66268d9f4f277f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRootfsFileBrowser.kt:329-337 | app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRootfsFileBrowser.kt:401-409 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRootfsFileBrowser.kt:329\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRootfsFileBrowser.kt"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eea7d27c3614418f25b3017bdd14c80e7fce2e69878f2da5b2d93065e5e8379"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/AIHubScreen.kt:290-298 | app/src/main/java/com/example/llamadroid/ui/ai/AIHubScreen.kt:315-323 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/AIHubScreen.kt:290\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/AIHubScreen.kt"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e36025564c1e03bf613db953ddf9b20959e625dc3ec20cbf745a7e37fb4d67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:3789-3797 | app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:1337-1345 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":3789}}}],"partialFingerprints":{"codehealthFindingId/v1":"5861a6d17e72637bd26d6d333b67213e1765d831dff91f319237d8bea7aa0647"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:426-434 | app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:623-631 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:426\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c66a27cdc7ec994cc7d6acd8874aba749b7a47043458e991af7e9edbfce6d18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1756-1764 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:620-628 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1756\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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":1756}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95decd16cf9e93893f3bc977f5a9bb50e95134c2a5a20c0e7cbf62bbf86640c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatDelegationServerBlocks.kt:296-304 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatDelegationServerBlocks.kt:308-316 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatDelegationServerBlocks.kt:296\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060null\u0060 to \u0060color = MaterialTheme.colorScheme.onSurfaceVariant) val shortfall = if (DelegationParticipant.HARNESS_AGENT in who \u0026\u0026 info?.cardId !=\u0060 in one and \u0060color = MaterialTheme.colorScheme.error ) if (navController !=\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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatDelegationServerBlocks.kt"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd56293339b41a74cd71d09a9fc71369685cae07738541f8ada0e009f8e519c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/components/RemoteSummaryBackendEditor.kt:377-385 | app/src/main/java/com/example/llamadroid/ui/components/RemoteSummaryBackendEditor.kt:488-498 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/components/RemoteSummaryBackendEditor.kt:377\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":"app/src/main/java/com/example/llamadroid/ui/components/RemoteSummaryBackendEditor.kt"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03db7eea97684f9826cd7ed6914d3e59a2888a27ae5b3a7c6a20981b87a6d7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/components/ResponsiveComponents.kt:293-301 | app/src/main/java/com/example/llamadroid/ui/components/ResponsiveComponents.kt:324-332 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/components/ResponsiveComponents.kt:293\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/ResponsiveComponents.kt"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc4f92ad0882f572d7083a39f09e71738f0834346a8530fb34336347ab90171"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:4150-4164 | app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:5035-5043 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:4150\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":4150}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae1fb40a91f613f1a07a54f37b545ccb29cfc86f2620775b162b522d5f0323ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:3700-3708 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:4114-4121 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:3700\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":3700}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1da02b27efb7a20d7863326b05e1bea07855b31a648608d00dd29d7452eaf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1540-1548 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1910-1918 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1540\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca85d1a06e7d6eb207801b3ef0b754f2a13695dfcd9f580c858b4b54c2b7022"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1016-1024 | app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1053-1061 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1016\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"931e4edfbeaa78e980b1224f4b492eac4a8a7866a64e5c43b8b2678b4ba14a09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/settings/SystemPromptsSettingsScreen.kt:75-83 | app/src/main/java/com/example/llamadroid/ui/settings/SystemPromptsSettingsScreen.kt:119-127 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/settings/SystemPromptsSettingsScreen.kt:75\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/SystemPromptsSettingsScreen.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac0871d13463235da71e789f626c88d24b69464171a77f730e2e033b54a3910"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:2739-2747 | wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:3383-3390 \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 \u0060wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:3383\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt"},"region":{"startLine":2739}}}],"partialFingerprints":{"codehealthFindingId/v1":"4835269e628fb35e0802dc67f9072847051be626932401a75732a656cb91ed95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:223-231 | wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:384-392 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:223\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c0ab1f195abb042d6d1be0ae6c537af2e07bb02375541b1a7d792dba136c4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 2): wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:292-297 | wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:386-394 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt:292\u0060 it begins part-way through the construct above it, so those exact 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":"wear/src/main/java/com/example/llamadroid/wear/AdtTileServices.kt"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"df8145bd7b00a9ec62c9839146505651b827d7369e2f91e3b503cd68c5ab18a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1439-1450 | app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1728-1739 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:89-96 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:297-308 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:590-601 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:1439\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":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":1439}}}],"partialFingerprints":{"codehealthFindingId/v1":"696b91bff218f5785c6cf728ed5ebb97f5edb65171a774bde41492f0bf121c3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:3002-3009 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:3986-3993 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:4041-4048 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:3002\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":3002}}}],"partialFingerprints":{"codehealthFindingId/v1":"707a60373e07383e947d67c2d5602f3d88de119235dde628854297288795d510"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1232-1239 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:2105-2112 | app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:406-413 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1232\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ca676707c71239d8c7c7765153b5f62174ba2fc7739267a5da7d1665f24fd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt:732-739 | app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt:910-917 | app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt:1052-1059 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt:732\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"20be72e541653a71f9b0e6180fcc9c7c2d3473ad8bf3af046be4c3aee2276508"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/db/RestoreCoordinator.kt:596-603 | app/src/main/java/com/example/llamadroid/util/DownloadResumeMetadata.kt:59-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 \u0060app/src/main/java/com/example/llamadroid/util/DownloadResumeMetadata.kt:59\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/RestoreCoordinator.kt"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6e2b6c07718816b05aa32229f7e60e54b25c4b72e8c8f38ee509f0c6d8c8d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/model/CuratedBundleSupport.kt:210-217 | app/src/main/java/com/example/llamadroid/data/model/StableAudioCuratedBundleCatalog.kt:26-33 \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 \u0060app/src/main/java/com/example/llamadroid/data/model/CuratedBundleSupport.kt:210\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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":"app/src/main/java/com/example/llamadroid/data/model/CuratedBundleSupport.kt"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"1202c4c11787c4f659d256899c54b2d848319ad3d70c531ac721874cba0476e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt:2317-2324 | app/src/main/java/com/example/llamadroid/service/KnowledgeBaseIndexingService.kt:381-388 \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":"app/src/main/java/com/example/llamadroid/data/repository/KnowledgeBaseRepository.kt"},"region":{"startLine":2317}}}],"partialFingerprints":{"codehealthFindingId/v1":"16859fd9a067053c70e9cb6fc2e9714b58998e2fca49504f4482b4718061c0f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeProcess.kt:886-893 | app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:493-500 \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":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeProcess.kt"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc6f8f289efa71e58dace2c441bf774cd6499db4813cdea2c1b11b675778993"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:727-743 | app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt:475-491 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 280 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"747dcbe1d78f7d6bba5e037f6bb5703831048d1031528fadca610efe51ed7d49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:20073-20080 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:20141-20148 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:20073\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":20073}}}],"partialFingerprints":{"codehealthFindingId/v1":"a361c924ac2ba72739b234fb9321395cd5a71e88d5d8a9984e4f99e711ac2c45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt:2472-2479 | app/src/main/java/com/example/llamadroid/service/chat/ThinkingTags.kt:26-33 \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 \u0060app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt:2472\u0060 it begins part-way through the construct above it, so those exact 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":"app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt"},"region":{"startLine":2472}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbade60f22966d99d5da5f3d3cd949361a6695367327dc3ca61425ce4a21df62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/LiteRtLmWorkerService.kt:978-985 | app/src/main/java/com/example/llamadroid/service/LiteRtLmWorkerService.kt:1212-1219 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/LiteRtLmWorkerService.kt:978\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtLmWorkerService.kt"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"148f70f8fe03d5a35f91ff68f1a7b759652fbc14780fc2d00b8cc57f83ad02ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/LiteRtTextGenerationClient.kt:184-191 | app/src/main/java/com/example/llamadroid/service/LiveTranslatorNativeRunner.kt:210-217 \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 \u0060app/src/main/java/com/example/llamadroid/service/LiteRtTextGenerationClient.kt:184\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtTextGenerationClient.kt"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d9022b5b143a3ab62c93969ae5d47d5e02edf1e4aa633d2f5bd210daad0909"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:632-639 | app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt:457-464 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:632\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"58ab7bc6d059a11f23ce95e837881434e3318dadf18df346013b066c5547ac61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:3632-3639 | app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskRunner.kt:417-424 \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 \u0060app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:3632\u0060 it begins part-way through the construct above it, so those exact 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":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":3632}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c72245003b6121f4fb61bba241b4da99c76ce86d9d703fa7e454f8c318c1141"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/LlamaService.kt:1203-1210 | app/src/main/java/com/example/llamadroid/service/LlamaService.kt:1231-1238 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/LlamaService.kt:1203\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaService.kt"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"b79dc806ca8ba14ad2aff977c2dd9662cf2076efa981b0dc836c28860e647e69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt:1063-1069 | app/src/main/java/com/example/llamadroid/service/PDFTranslationLogic.kt:372-379 \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 \u0060app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt:1063\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"b781803822e60155caf61eb10ede4263bd9b23955d34508e2b86e7d210df7b2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt:1630-1637 | app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt:1791-1798 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt"},"region":{"startLine":1630}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc7a5d8226d2363ebf403212647d75787e05e1927cc4e3210ef52185fcd8c9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/NativeLlamaAudioSupport.kt:282-289 | app/src/main/java/com/example/llamadroid/service/WhisperService.kt:76-83 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/NativeLlamaAudioSupport.kt:282\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/service/NativeLlamaAudioSupport.kt"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43129e6ae6b6c525952371cbaf775161065ec4f0a3f5484b5f9b65f5ead4a5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:1662-1669 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:1705-1712 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"43a1364e846695aef44b05f5a544c1a71abcf824f85145dc4470e0228a1e3e75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:2540-2547 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:6814-6821 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:2540\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":2540}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc028d7dd46dc6ec4642b46b9a2ccb4eee95e7b4b91c7d2fd6db224d5d153b9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:3164-3172 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:6285-6293 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:3164\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":3164}}}],"partialFingerprints":{"codehealthFindingId/v1":"108ceaa178e78cd6bf3b92acfef6571d469a6094edd85cdfe984c3c350f5f202"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:6416-6423 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:6509-6516 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:6416\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":6416}}}],"partialFingerprints":{"codehealthFindingId/v1":"9374daa895310ec362a823e1df1e828bb8f60d3aa6f5cbf9910e473001cdc654"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:729-736 | app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:805-812 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:729\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"aabee8eb2613b0b9cb3421e6917b54cc7344edcd30d6af58b7a2b163e0934c23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:841-848 | app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:1060-1067 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"de07de3a5d635b356d16ded95d8ff9299534edfa0c8b0239c174fbce98d74b1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/SSHService.kt:343-352 | app/src/main/java/com/example/llamadroid/service/SSHService.kt:831-838 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SSHService.kt"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ef3d02ed4558127986e82c656742db55b9af2f696f6de77c27c4bb9af1fe74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:1414-1421 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1157-1164 \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 \u0060app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:1414\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":1414}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f7e2dd61f01a64600c9d05a48bb90de3af2fd3a318be658fb2bfc8327eb2d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/VideoGenerationConfig.kt:416-423 | app/src/main/java/com/example/llamadroid/service/VideoGenerationConfig.kt:747-754 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoGenerationConfig.kt"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"c617e3a8fa7513c05fcd6aa2b4d3cd7aedfacd21a219c0d5b6a6104f18426de2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/game/TamaDailyDreamManager.kt:776-783 | app/src/main/java/com/example/llamadroid/tama/game/TamaDailyDreamManager.kt:786-793 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaDailyDreamManager.kt"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f91da3749f4c078cf1e1eb0fa732c899e7c54772bda29fa041b8feeb578178"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferCoordinator.kt:196-203 | app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferCoordinator.kt:231-238 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferCoordinator.kt"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a31759ad04ed8f239f6ee99879decd0194f5c5867bec1dffe5b01fc5cebf6ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:4349-4356 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:4484-4491 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":4349}}}],"partialFingerprints":{"codehealthFindingId/v1":"819cf6c1016989898c33d1987ce2b1c39bab7c877f6a334e5048d0b4f196d889"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/AdventureScreen.kt:224-232 | app/src/main/java/com/example/llamadroid/tama/ui/DungeonScreen.kt:79-86 \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 \u0060app/src/main/java/com/example/llamadroid/tama/ui/AdventureScreen.kt:224\u0060 it begins part-way through the construct above it, so those exact 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":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureScreen.kt"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"a843ee7a93971ccf3eeb8c9e53e796594b1683049333552f44e50bf3351db288"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentChatList.kt:751-760 | app/src/main/java/com/example/llamadroid/ui/agent/AgentChatList.kt:1215-1222 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentChatList.kt:751\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":"app/src/main/java/com/example/llamadroid/ui/agent/AgentChatList.kt"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1cedc297117d6fed23032bb5bcbe0e5ac8cd53173098b773d6a0ee24960f486"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeInstallations.kt:829-836 | app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeTab.kt:522-529 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeInstallations.kt"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"839e4f21fa7c05f3774a4c4b80b00f62ad5494bde6e5bea8800e4fdd8c6f9338"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt:1611-1620 | app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessSettingsNavigation.kt:768-777 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt"},"region":{"startLine":1611}}}],"partialFingerprints":{"codehealthFindingId/v1":"81cba5e2552da799ccd181291ccc4ce43e0127d63c7a2671c2a3483cc6cce175"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt:780-789 | app/src/main/java/com/example/llamadroid/ui/ai/VideoUpscalerScreen.kt:560-567 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt:780\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":"app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aed42ef3f90df1581044e13d0a370df59670c74f98a1b62af0444c49e7abdcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:2645-2652 | app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:3582-3589 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:2645\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":2645}}}],"partialFingerprints":{"codehealthFindingId/v1":"2071e2575b000f26b4a834e9997ec32e6b0680d4fb5ff02ca18bb5c63ca34161"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:2747-2754 | app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:2779-2786 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:2747\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":2747}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c56f8b9c21fb20b0ebc75751e3f7ce770e004a784626c487c89b84c75714cfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:4245-4251 | app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:396-403 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:396\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:404\u0060 calls \u0060rememberLazyListState\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:4252\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":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":4245}}}],"partialFingerprints":{"codehealthFindingId/v1":"6417b34dfd79f4833d4a14d36167420e8769ae5aa26cad93bd5d7a36f350c528"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/OnnxBackgroundRemovalScreen.kt:452-457 | app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt:996-1003 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/OnnxBackgroundRemovalScreen.kt:452\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxBackgroundRemovalScreen.kt"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"c994e52e4a1cbfcc20c1ccb35c57a178eeac519d6d0b996f217333370ae7db49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt:880-887 | app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt:953-960 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt:880\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"edec20515fce133b15620aaf925b04adca4b92c0d40aea264f329f95e4752211"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:836-843 | app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:249-256 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:262\u0060 calls \u0060mutableStateOf\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:847\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":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbb5fc4012d58585e1347d57640c013a5176e8fe290b3a1520d46c444d87775"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1006-1013 | app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:324-331 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1006\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd7da21d579cc823e56ae784b678d6daa698be001dbba6a3cb3531cba3e0c78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt:452-471 | app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt:631-638 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt:452\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":"app/src/main/java/com/example/llamadroid/ui/ai/SdCuratedBundlesSection.kt"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"22adbeea59b1be679e70a4e395aa72fbfce47b585c2968affa11dca334a9364a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt:944-951 | app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkScreen.kt:123-130 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt:944\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"20183c501526e3487c2309c68a8e92dc3027a5708fdca6c1f223ef63455df598"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6379-6386 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:7202-7209 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6379\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":6379}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6640d532517385cf0792dcd281ba01320375c1a20c0ec302a80a4258d41ed04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6710-6718 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:7451-7459 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6710\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":6710}}}],"partialFingerprints":{"codehealthFindingId/v1":"692f2ee39df912b8e211293f8d40826dc8ec4bfd6b2dbb5d412a787c57cbef36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6798-6805 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:4668-4675 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6798\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":6798}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b02abd3dbe518687186e23eb8c0a0fe7e60f50cf9f7987d612bd4559bd8630"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaChatListScreen.kt:424-431 | app/src/main/java/com/example/llamadroid/ui/servers/ServersHubScreen.kt:86-93 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaChatListScreen.kt:424\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaChatListScreen.kt"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f67f77d5309aa6a1254ef0dadb727194f95d46408e3187eab848f6a999bc2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/LlamaChatScreen.kt:656-663 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/LlamaChatScreen.kt:686-693 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/LlamaChatScreen.kt:656\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/LlamaChatScreen.kt"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"6856d8eba45da8b5414c7583e7ac28e85e5663903840316b5f729fab7f36fae8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:4886-4894 | app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:4954-4962 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":4886}}}],"partialFingerprints":{"codehealthFindingId/v1":"c542f7ead50ff2ec4505065315440261564063edfd2b1eeade292801ff6eab3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:978-985 | app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:1055-1062 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:978\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa6913ea3bac68886a5916e457315fe11671da342a64460fb27989b9f353f15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/ModelPromotionDialog.kt:43-50 | app/src/main/java/com/example/llamadroid/ui/models/ModelSourceAttachment.kt:218-225 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelPromotionDialog.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf3e4916a8b50710ac1b62dccf1a8edb8f79322b384da23e802fd6aaa3ec62c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:745-752 | app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:760-767 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ff905c322ba3fc5592de35028d7176ba80fcfa3ddb68ae46b38d818061e410"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/pdf/PDFSummaryScreen.kt:98-105 | app/src/main/java/com/example/llamadroid/ui/settings/PDFSettingsScreen.kt:79-86 \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":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFSummaryScreen.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33e9a920c7d1621976f7ec1c9d1cbb734c8c27fb35f76c946b0b19c6a4037b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:430-437 | app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:1977-1984 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"17061a6726fbf226058fd7f7a187773a80bc026d6cc66ad66d7003659c434c4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:1942-1949 | wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:2084-2091 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:1942\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":1942}}}],"partialFingerprints":{"codehealthFindingId/v1":"b000a09e15edb40f89f3b957ce5c1f916cdb2081fb8eeadb090b436203f3155d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:864-870 | app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:1060-1066 | app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:1196-1202 | app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:1225-1231 | app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:1298-1304 | app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:1347-1353 | app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:1404-1410 | app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:1448-1454 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:864\u0060 it does not close everything it opens, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:1297\u0060 calls \u0060remember\u0060, \u0060mutableStateOf\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:1447\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":"app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"adbefc2030dd6caf6dcfb53823c550ef18adb24f7c2875b93dfc7194143e6fcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7): app/src/main/java/com/example/llamadroid/harness/HarnessAppToolsSettings.kt:101-107 | app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:3864-3870 | app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:4673-4679 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6783-6789 | app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt:2124-2130 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatImageToolSettings.kt:976-982 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:4653-4659 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAppToolsSettings.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"767e2c0188cf28b579c7d1510adc0ae353ed4d86136e0b6f8f71f79fcbfd9b23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20137 lines \u00D7 5): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5298-5302 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5570-5576 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6409-6415 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6658-6664 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:7221-7225 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5298\u0060 it begins part-way through the construct above it, so those exact 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":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":5298}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c32a56483c3f3cd68d2461a330333c27ddd94fb8c77bc966f99847622d507ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): app/src/main/java/com/example/llamadroid/ui/components/ApprovalQueueDialog.kt:91-97 | app/src/main/java/com/example/llamadroid/ui/components/ApprovalQueueDialog.kt:259-265 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1323-1329 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1441-1447 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/components/ApprovalQueueDialog.kt:91\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":"app/src/main/java/com/example/llamadroid/ui/components/ApprovalQueueDialog.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"f71aaac5657802feb40b92cf2c4aa5c0dee30ad22e60918a6a1be923c1550748"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:786-792 | app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:866-872 | app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:1650-1656 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf00afdfe2f8ef97a356053879b3709def01145a2120459b1f6b4ec36567148"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:3855-3864 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:3934-3943 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:4004-4013 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:3855\u0060 it does not close everything it opens, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:3944\u0060 calls \u0060AdventureGateStatChip\u0060, \u0060stringResource\u0060, \u0060toString\u0060 and \u0060app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:3865\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":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":3855}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad7fb6aca1f667a44d59ddb19f51fa523dc19eb332f1a1a9a7903632b1124c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:143-153 | app/src/main/java/com/example/llamadroid/ui/ai/OnnxBackgroundRemovalScreen.kt:267-273 | app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt:429-439 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:143\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f038763e57cdfa75cb0d5b524e36567947badeedba32cc8a632a9f997ba783"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRootfsFileBrowser.kt:327-333 | app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRootfsFileBrowser.kt:399-405 | app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRootfsFileBrowser.kt:435-441 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRootfsFileBrowser.kt:327\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRootfsFileBrowser.kt"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe2c7731fe423043441e2df6c47f927410f74da0dda4ef02593ef22893ce4621"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:695-707 | app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt:448-460 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 280 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"0904be0e89695978633e45f16b70a46d0aaccd9060345f01ee2c3a98aa8181fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:746-752 | app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt:494-500 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 280 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"b462cb3daeadaf19be6d9d0f62da3cfcebe441a6db6b4563a8846ec867b00dbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt:719-725 | app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt:1114-1120 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt:718\u0060 calls \u0060trim\u0060, \u0060uppercase\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt:1113\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":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"002c8d133e6e006b5b4e478ff54b949f2ed7ac6a128c3540aa5f34704cddd20a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentRemoteChatWorkerService.kt:453-459 | app/src/main/java/com/example/llamadroid/service/AgentRemoteChatWorkerService.kt:671-677 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/java/com/example/llamadroid/service/AgentRemoteChatWorkerService.kt:451\u0060 calls \u0060randomUUID\u0060, \u0060toString\u0060, \u0060currentTimeMillis\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/AgentRemoteChatWorkerService.kt:670\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":"app/src/main/java/com/example/llamadroid/service/AgentRemoteChatWorkerService.kt"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8bb9841583473569fc4347f7b0b3bcad764ee8695edbb66eba85ff264ed2fc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:822-828 | app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:913-919 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:822\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":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f90b4e8f9f50854497fafa8616e89b8025a53e686dc9cd99af5858b0485349a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:888-894 | app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:1662-1668 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7512faea81b100233325d306b6892cfa25bebe371f110c6113fe391ff670f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/DownloadService.kt:844-851 | app/src/main/java/com/example/llamadroid/service/DownloadService.kt:1183-1190 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/DownloadService.kt:844\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DownloadService.kt"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef5cf3f0c527c1ca41fe924c97d926776159be749da92d2aaa9374c6539975b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/LlamaService.kt:336-367 | app/src/main/java/com/example/llamadroid/service/LlamaService.kt:513-544 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaService.kt"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe6c0309652a54c4013f29cb411713be1d585db7fe6195ab0ec2f42d29066c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/LlamaService.kt:1081-1087 | app/src/main/java/com/example/llamadroid/service/LlamaService.kt:1541-1547 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/LlamaService.kt:1081\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaService.kt"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b76925987d636f65d843adadf3060e1fbcecf3aff1c2f8be46a00bded333ef9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:826-832 | app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:1045-1051 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:826\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a24c46afa87f5a934d567425ea16a3945fa72c2a893d6edd4505a80a91d40ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt:735-741 | app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt:959-965 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt:735\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":"app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4f0c720fab091ff0fe6e69ae907947f704c71052fed0756d232eb9a6adccf8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20137 lines \u00D7 4): app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:1534-1537 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:1690-1693 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:1908-1914 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:1961-1967 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:1908\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note 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":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":1534}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24b383c9aa6b29385fd5cf88c9827aba6b72a46c669e5ab105eb7b82da71491"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:2245-2251 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:2267-2273 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":2245}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4b19bc61aee85ade2870598982ce7e2c3f03329db84830083549124ff49340"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt:342-348 | app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt:403-409 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt:411\u0060 calls \u0060AdventureGatePurchaseResult\u0060 and \u0060app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt:349\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":"app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"697e13cbace1e5dc079e5c4f0c10aa5bc3cc85fe3d988a790677077ada66dab9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/ArcadeMemoryGame.kt:369-375 | app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt:1255-1261 \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 \u0060app/src/main/java/com/example/llamadroid/tama/ui/ArcadeMemoryGame.kt:369\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/ArcadeMemoryGame.kt"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f9c406d91af896f2af46d8a81fd75a3981767955b801dec96416607a6e43d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:2191-2197 | app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:2316-2322 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:2191\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":2191}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc3a701b81867652f07bc8bdf3fa66946b8560b1542ce84077932addb5b4d95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessExtensionsPanels.kt:669-678 | app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessExtensionsPanels.kt:747-756 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessExtensionsPanels.kt:669\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessExtensionsPanels.kt"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a960c639bc4005c377191ee97982dbd08e7a267889f89b8e32af5099e6a3e1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessCatalog.kt:79-85 | app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessCatalog.kt:224-230 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessCatalog.kt:79\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessCatalog.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"536c354afaea98fc0a32ec66b7930667f1530d854a2b538eb0e73aa729810691"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt:1573-1579 | app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt:1782-1788 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt:1573\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt"},"region":{"startLine":1573}}}],"partialFingerprints":{"codehealthFindingId/v1":"137578971f71a856523ac050bc92b787c892a2375bc393fb0a4f9a4ad2d356f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessFormatting.kt:64-70 | app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessFormatting.kt:78-84 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessFormatting.kt:64\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessFormatting.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be3a935e26fe24d84ed2ed31738856c4add412b18d7fb2af7c850451102da08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessPluginActions.kt:124-131 | app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessPluginActions.kt:142-148 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessPluginActions.kt:124\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessPluginActions.kt"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"e833e75c58559f81b96a6dd55bccba61907cdfed7f63f4280cdceb64ecd56f82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessProjectReviewController.kt:229-237 | app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessProjectReviewController.kt:266-274 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessProjectReviewController.kt"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe5c93229f1239a3385a1e483883ea9dae43249e4427fe0b6cf5aef6e0482bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:177-183 | app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt:62-68 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a88bb85a76e067169a2596e98d4272bab19d854c2076b4b1814f0137535106"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt:437-443 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageMedia.kt:641-654 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt:437\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":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e04bc3407e5e642c81f0859ce001ca778af8a34089368305a6ed039dda9b25c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt:867-873 | app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt:936-942 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt:867\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33a4b6dca7e0a9e7b6facd5b73337fac352a631ad379f0b03b96adda6791847"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/QuadtrixTrainerScreen.kt:178-184 | app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:106-112 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/QuadtrixTrainerScreen.kt:178\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/QuadtrixTrainerScreen.kt"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"796f377a43561272982e0493fa1841a38355e444f96be4e06fee1e4f1eaedf77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20137 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt:1480-1486 | app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:1266-1269 | app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:1353-1359 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt:1480\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt"},"region":{"startLine":1480}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd0e23a9e5c03fa2e348a72113e2a8c05f6dc7f9b3e4c218c0c1b69ec8491dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:297-303 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:679-696 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:297\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1b8fb165199e61ab7fbcb7210201911b4da01391612e8bbdb008b86a534d9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4101-4107 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4142-4148 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4101\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":4101}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d52235b3f04d333c8f132faf0382b487c3c32c99d6a7762bb6bb1e0b51694c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/RemoteServerForm.kt:541-547 | app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/RemoteServerForm.kt:693-699 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/RemoteServerForm.kt:541\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/RemoteServerForm.kt"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d12a91666970652799dfc5ab68e8f93ee0db96eb826f13ba7fbb452158a830d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/components/ApprovalQueueDialog.kt:100-108 | app/src/main/java/com/example/llamadroid/ui/components/ApprovalQueueDialog.kt:268-274 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/components/ApprovalQueueDialog.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":"app/src/main/java/com/example/llamadroid/ui/components/ApprovalQueueDialog.kt"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1ecf58f5ee87cfa9e9e7ac9418cd36ded85431351cba5ad4d8848e8f82aa51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/dashboard/DashboardKiwixCard.kt:67-73 | app/src/main/java/com/example/llamadroid/ui/kiwix/KiwixViewerScreen.kt:55-60 \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 \u0060app/src/main/java/com/example/llamadroid/ui/dashboard/DashboardKiwixCard.kt:67\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/java/com/example/llamadroid/ui/dashboard/DashboardKiwixCard.kt:64\u0060 calls \u0060rememberCoroutineScope\u0060, \u0060zimDao\u0060, \u0060getAllZims\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/kiwix/KiwixViewerScreen.kt:52\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":"app/src/main/java/com/example/llamadroid/ui/dashboard/DashboardKiwixCard.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6f278bc4392d03405935d4d506f2ef4033184f74ecd6be93b267b7c3160c1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:1796-1803 | app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:1206-1212 \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 \u0060app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:1796\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt"},"region":{"startLine":1796}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa21409c656ce4d238bda2b7fbdd138933ae678aea915c1ccf32271c9b0e49f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryScreen.kt:861-867 | app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryScreen.kt:1378-1384 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryScreen.kt:861\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":"app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryScreen.kt"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"f12736bbaf9aaa2e41d0709c9ebec63a2f0a0551105bbde218646cea547620ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:1259-1266 | app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:1346-1353 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:1259\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt"},"region":{"startLine":1259}}}],"partialFingerprints":{"codehealthFindingId/v1":"670d6cadbc00bb74c9150a6572ca884066b5699edb34e06f3b0b0104de3cd864"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:452-458 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1067-1073 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:452\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":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"6418faf42cafa60e5de3652ae6c53a1912b37710174985793151a5ca7a31b01b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:2162-2168 | app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:2182-2188 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:2162\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":"app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt"},"region":{"startLine":2162}}}],"partialFingerprints":{"codehealthFindingId/v1":"c684b1c5c44ee8d6c4d981536f8f0488681521ed31314b242d74fea43986dee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:144-153 | app/src/main/java/com/example/llamadroid/ui/ai/OnnxBackgroundRemovalScreen.kt:268-273 | app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt:430-439 | app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:2820-2825 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e7f5e8728883b74a39a6f9b23707bb2f5cb31d569ed83931bacc110606e2f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): app/src/main/java/com/example/llamadroid/harness/HarnessProjectIntegrationDialog.kt:130-135 | app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:539-544 | app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:907-912 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessProjectIntegrationDialog.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f34ba959710a9ed626e0e427be4255a7dd22235ba2dd6f12f4d160ea3e6591"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:822-827 | app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:913-918 | app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:993-998 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:822\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c55ec86447f4356eb6bad0289f1f28fa459f58a1998b398614747c911959434"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): app/src/main/java/com/example/llamadroid/service/DistributedService.kt:1624-1629 | app/src/main/java/com/example/llamadroid/service/ModelShareService.kt:177-184 | app/src/main/java/com/example/llamadroid/service/ZimShareService.kt:157-163 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/service/ModelShareService.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/ZimShareService.kt\u0060 as WHOLE FILES: this scan already matched 8 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/DistributedService.kt:1624\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/service/DistributedService.kt"},"region":{"startLine":1624}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ffcc4e4306e5e4ee2d425bda22076e85bd026808076bd1ca3dac8b65eee58b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskScheduler.kt:41-47 | app/src/main/java/com/example/llamadroid/service/OrganizerAlarmScheduler.kt:123-129 | app/src/main/java/com/example/llamadroid/tama/notifications/TamaNotificationScheduler.kt:291-297 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskScheduler.kt:48\u0060 calls \u0060log\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/OrganizerAlarmScheduler.kt:130\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":"app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskScheduler.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b506b698c9d67a1d88fe5eb1b26d2852d10a650c99809606e081d6015b909d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 3): app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:2227-2232 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:2244-2248 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:2266-2270 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:2227\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":2227}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a232c3331f7a59bbdf68678d1d5fd033cdf57dc7896b03544002d8b818fc6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt:343-348 | app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt:404-409 | app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt:442-447 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt:411\u0060 calls \u0060AdventureGatePurchaseResult\u0060 and \u0060app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt:349\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":"app/src/main/java/com/example/llamadroid/tama/rpg/AdventureGateRepository.kt"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"7479a61adde7f01342b7cfef7a0a63ca8c52ecfe86a766130f5df0e1ffa2ce0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt:620-628 | app/src/main/java/com/example/llamadroid/ui/ai/VideoSumupScreen.kt:573-580 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:7231-7236 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt:620\u0060 it does not close everything it opens, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/ui/ai/VideoSumupScreen.kt:570\u0060 calls \u0060TextButton\u0060, \u0060navigate\u0060, \u0060Text\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:7228\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":"app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f47d1d6e9f705bc6a8254d54eba695b732262bff311994424661ef26fc5695f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:3900-3905 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:2733-2738 | app/src/main/java/com/example/llamadroid/ui/library/AllMediaGalleryScreen.kt:690-695 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:3900\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060item\u0060 to \u0060WorkflowOutputGalleryFile\u0060 in one and \u0060SdGeneratedMediaItem\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":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":3900}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f00a4d3204d192fe3ab856691f425760f5078f86e15f313f6c3298eb37f364b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt:1309-1317 | app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt:2276-2284 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"5299fe740f6d18fdc49d0456f52527be3b2ad4aba81fde5cd5ecb229cfee26b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 2): app/src/main/java/com/example/llamadroid/harness/HarnessProviderCatalog.kt:103-107 | app/src/main/java/com/example/llamadroid/harness/HarnessProviderCatalog.kt:204-209 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/harness/HarnessProviderCatalog.kt:103\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/harness/HarnessProviderCatalog.kt"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f1c35306d9909dff3f1f46d8a3a47ed213538f7e788e5455bb55b5d010d1bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/onnx/OnnxBackgroundRemovalSupport.kt:550-555 | app/src/main/java/com/example/llamadroid/onnx/OnnxBackgroundRemovalSupport.kt:561-566 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxBackgroundRemovalSupport.kt:550\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/onnx/OnnxBackgroundRemovalSupport.kt"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e9d7615574965734c68cd57f1df77b9dd38b00a9cb9bc414e75e2940d2d991"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:655-663 | app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt:408-416 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 280 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf6b3e0b9c4183ed74fb2c02400d42db5ab0fd41889791c9c756c77aca6d4c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentLocalProjectRunner.kt:90-95 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:2540-2545 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentLocalProjectRunner.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb576d2d31c741b0b3417d6d3f03b59d7f80c736f4f4652ea42e20fce29f29f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:1030-1035 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:3624-3628 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:1030\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"adaa62e60658b79de7900ad6ec497b0daa02037a642ea3f029c32b9b7fb60bbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:8476-8481 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:20426-20432 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":8476}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aad8f81a5b2650374817d6de498f3e7677aab1fbd6c79df4dd19e4e99465802"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:9742-9747 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:9930-9935 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:9742\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":9742}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8c4eeb8eb733489c5b8e8019e144534cc8c9e73f80eb5d86c29d4e20697bc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:969-974 | app/src/main/java/com/example/llamadroid/service/VideoGenerationConfig.kt:467-472 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/java/com/example/llamadroid/service/VideoGenerationConfig.kt:464\u0060 calls \u0060optString\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:967\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":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f68037176eb3564f795a1f204b884019edcc268ce715a957e2b504bb8631ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:3624-3629 | app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:3544-3549 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":3624}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d707367f72089c44c4cdee68ccf520ecb51e36797ce26c2d3e2c5eef5af7ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:3568-3574 | app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskRunner.kt:430-435 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:3568\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":3568}}}],"partialFingerprints":{"codehealthFindingId/v1":"fafe6c540021c40ff10b78ed4b4001d314f76caaf71fbb1ac6e7010fcc976f8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt:1670-1675 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:4378-4383 \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 \u0060app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt:1670\u0060 it begins part-way through the construct above it, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt:1676\u0060 calls \u0060isNotBlank\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:4384\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":"app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt"},"region":{"startLine":1670}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa759e7ce3e1fda6fb0dc19e77d546b1e3c4a5e55544e2da238d201da12a431"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt:1246-1251 | app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt:1374-1379 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt:1246\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt"},"region":{"startLine":1246}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fca2285d10cd9e68463dfdb89dbf069153b3721ac9db4e885b2413435d0d4cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:5660-5665 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:5729-5734 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:5660\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":5660}}}],"partialFingerprints":{"codehealthFindingId/v1":"d916be922c12c965a9f348d09b3bd9663a12172663373fef830dd4dac4c208c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/ProcessController.kt:625-633 | app/src/main/java/com/example/llamadroid/service/ProcessController.kt:659-667 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ProcessController.kt"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"565315b492cae470a83888150b491e5bfecdd836118b654b8db1d991c75f4f16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/RemoteMasterServer.kt:359-376 | app/src/main/java/com/example/llamadroid/service/RemoteMasterServer.kt:423-439 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/RemoteMasterServer.kt:359\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteMasterServer.kt"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"080298edd2b7a4442c5517847d79caa3d44e9eef70e0f870dd3ae56cb4d3662d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:464-469 | app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:561-566 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:464\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"dffb04805e19162cb915eb618b50820947a6a985daa09e4ad60b588a01479270"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/delegation/DelegationFileBridge.kt:150-155 | app/src/main/java/com/example/llamadroid/service/delegation/DelegationProjectFiles.kt:225-230 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegationFileBridge.kt"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece5fbba50f2a93001e09dc6c8ee2fdebaab1f62fc84ce4d7b539ecb66568c28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt:747-754 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:6387-6394 \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":"app/src/main/java/com/example/llamadroid/tama/ui/TamaGalleryScreen.kt"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e9ddb524c8f3adda41eac11ee5cc04de524f19e04ecb37e5f7bded21a535dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmScreen.kt:98-103 | app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:3901-3906 \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":"app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmScreen.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25f49c61cbc5a05dd4749b5c30634d2b7a2c9c560a83c8a3a084a80764d43ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:350-358 | app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:394-402 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:350\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"61bb6f0f2480a1bed3aa46f88ebcd704d3b328692d8e694fd2446035ce07f709"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:2393-2398 | app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt:537-542 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:2393\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":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":2393}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75c0b0eb96afe2cf54efdfa6a0ad1fd7989c353e18f69b3ce912dc6a118454c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/OnnxBackgroundRemovalScreen.kt:371-376 | app/src/main/java/com/example/llamadroid/ui/ai/VideoSumupScreen.kt:551-559 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/OnnxBackgroundRemovalScreen.kt:371\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxBackgroundRemovalScreen.kt"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"25fdb47f23ac0bd8f971160d86e0c685652711f87c26c498712ec178654e6284"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt:1307-1312 | app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkScreen.kt:426-433 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt:1307\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt"},"region":{"startLine":1307}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f1419c7fbc0eb9424c6956a441c906da81daed4ce792e80753e0fec68676e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:3936-3943 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4839-4846 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:3936\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":3936}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5a76a2d43be757ee3640d4da5181934f5cfc69473efb89520caae25c261ce3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4094-4099 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4811-4816 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4094\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":4094}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a523c0c8b7859d55d510b2780ac6679b01c8f5f16412de4d909312ef39967b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4543-4548 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5236-5241 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:4543\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":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":4543}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b12d7ecb22f8da27fb1645e6883ff2b345f0b20e55d5a153a67f78c1ccc2091"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6176-6182 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:7020-7026 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6176\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":6176}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d11dae9968cdb35498b55c00bdb21c6a567380749e5ffe4f8c795ea640a5ace"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6648-6653 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:7211-7216 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6648\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":6648}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4c4862a4a9df5980c1bc8935fef4c72a9de33d1def3e1c96dd5fe4105ea00e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryScreen.kt:1611-1619 | app/src/main/java/com/example/llamadroid/ui/models/ModelPromotionDialog.kt:167-172 \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 \u0060app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryScreen.kt:1611\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryScreen.kt"},"region":{"startLine":1611}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f42509304fd59987fdc69ca80bc350196b8f0581c4ebf643e6e5788dff050f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:1487-1492 | app/src/main/java/com/example/llamadroid/wear/WearCompanionBridgeManager.kt:793-798 \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 \u0060app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:1487\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt"},"region":{"startLine":1487}}}],"partialFingerprints":{"codehealthFindingId/v1":"687aae1d840e411265d2f4e1852beb41ab3ca36a8955b825b25af6292c8680ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:789-793 | app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:869-873 | app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:1653-1657 | app/src/main/java/com/example/llamadroid/service/SdGeneratedImageMetadata.kt:408-412 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"d045de00e2c00df73423bb5ad879f9386d92712c3ed315c46ccb008270cd93ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt:624-631 | app/src/main/java/com/example/llamadroid/ui/ai/VideoSumupScreen.kt:575-583 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5308-5312 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:7235-7239 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt:624\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:7231\u0060 calls \u0060Spacer\u0060, \u0060height\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5306\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":"app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"aabcaf749d9646ed272291133620cdb00d5c532c6c9891a7e19ec0ad0da2b265"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:2148-2153 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:2172-2177 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:2200-2205 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":2148}}}],"partialFingerprints":{"codehealthFindingId/v1":"5499b216ed79874868f8f8e062fe26e36dc8a14d342f328e12a665864718b8c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): app/src/main/java/com/example/llamadroid/ui/agent/AgentNewProjectDialog.kt:34-38 | app/src/main/java/com/example/llamadroid/ui/agent/AgentPlanEditorDialog.kt:42-46 | app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:1574-1579 | app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:1849-1854 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentNewProjectDialog.kt:34\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"app/src/main/java/com/example/llamadroid/ui/agent/AgentNewProjectDialog.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"366029e99b239e5b50583112c8bcfee5215f0feda1d49e00d72163c0c3245dc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:870-874 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:3955-3959 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:6992-6996 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:3955\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a7a50516b6f22efd884e9b469c45d49964bfb6e5350f269b4005f523d884b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:1218-1228 | app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:1261-1271 | app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1078-1088 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:1261\u0060 it begins part-way through the construct above it, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:1090\u0060 calls \u0060Text\u0060, \u0060stringResource\u0060, \u0060Spacer\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:1229\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":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed70819143e1f703e1c5ab1bd08ff2a4e6d521da1dffa1863c377ce223233fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/harness/HarnessAgentRoute.kt:944-949 | app/src/main/java/com/example/llamadroid/harness/HarnessAgentRoute.kt:969-974 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/harness/HarnessAgentRoute.kt:944\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAgentRoute.kt"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a69d8be3d32566bc9377fbc47f17e05a887fd30339845fd339afed81494f53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt:525-531 | app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt:546-552 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt:525\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferCodec.kt"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"f305c58dac5ddb44cce4beecc78e183f111237c9bad42e67596a8253eba8a4f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:2710-2715 | app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:2798-2803 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:2710\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":2710}}}],"partialFingerprints":{"codehealthFindingId/v1":"271b7ec96799f825c104f1c75d000b6f8d7433eead70a29b11f0e7f482856908"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:4409-4413 | app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:4445-4449 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:4409\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":4409}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca261cc6da2d2cee21af64e30c3ce2f1dd7d721ba8780dcb36511d1195be09a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:431-437 | app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt:283-289 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:431\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"d32b00d56518481aef6726ad1ce406dc43185a3ef9e93017ff546fea8ed088bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:259-264 | app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskService.kt:57-62 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b65d07503c5802f3129d7c338c3a2f5581b4e24a42666eca2cea59af4b523d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt:1509-1513 | app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt:1694-1698 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt"},"region":{"startLine":1509}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2175df40040a9309025751c6a11f86c2443df53ab21793031594ebd861aba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/OnnxBackgroundRemovalService.kt:395-401 | app/src/main/java/com/example/llamadroid/service/OnnxTtsGenerationService.kt:266-272 \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":"app/src/main/java/com/example/llamadroid/service/OnnxBackgroundRemovalService.kt"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"356a05d38fbadf1eecd76f02a91733f86a0746bc98ed56bac44c301fc7ad9f1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:2761-2765 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:4335-4339 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:2761\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":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":2761}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed58bff9e965a8fb6b402cae2ba4fd632c971fa7d92e024aff965f97160d9720"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt:657-661 | app/src/main/java/com/example/llamadroid/service/VideoRecognitionWhisperTranscriber.kt:211-215 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt:657\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d9cf780f4eb93306fb3007fa00c954ec6bd8ba946faa303c3e70f905695208"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/delegation/DelegationStatusFormatter.kt:24-28 | app/src/main/java/com/example/llamadroid/service/filestation/FileStationSettingsStore.kt:150-154 \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 \u0060app/src/main/java/com/example/llamadroid/service/delegation/DelegationStatusFormatter.kt:24\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegationStatusFormatter.kt"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2866814fa9c2a076360ca36ea492dd9f129de83f3ecb48529b9616365fca573"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/game/TamaArcadeSessions.kt:121-125 | app/src/main/java/com/example/llamadroid/tama/game/TamaArcadeSessions.kt:180-184 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaArcadeSessions.kt"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d84801ce2b30e6bcabffa0da31efca4e708fdaeaf33dda1e611c58bb70ada2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:3942-3949 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:4012-4019 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:3942\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":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":3942}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2d3bfffcef98522101bc1f0526f78f63c3e5053229f16b196816690d320315"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:2841-2846 | app/src/main/java/com/example/llamadroid/ui/agent/AgentRuntimeProfileControls.kt:1290-1295 \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 \u0060app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt:2841\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":2841}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e958da52c6fb2b8afef94814e7ba3b373bfc4b592031d6a7382ac5c403798e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessCustomProviderPanel.kt:348-352 | app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessProviderDiscoveryPanel.kt:46-54 \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 \u0060app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessCustomProviderPanel.kt:348\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessCustomProviderPanel.kt"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c715232280401a9b050e962b6b096f44c2a60810c44f8888d9727aff7e1f7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessProviderCreation.kt:278-284 | app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessProviderDiscovery.kt:45-49 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessProviderCreation.kt"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d0c757a8dddd29c2fea6bbe7b7969e62979cbef9ccd7c409205949e7ace3ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:206-210 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:216-220 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:206\u0060 it begins part-way through the construct above it, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:211\u0060 calls \u0060modelDao\u0060, \u0060getModelsByType\u0060, \u0060collectAsState\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:221\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":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2b462490a86fc96b84e29950061d47527b962d25917d5d45dd1fa7c98879a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 4): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:217-221 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:224-228 | app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:268-272 | app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:5918-5919 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:217\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:222\u0060 calls \u0060remember\u0060, \u0060isCompatibleSdADetailerDetector\u0060, \u0060File\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:273\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":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"9206d3495af5c5b66f62676a22c2d0b2af07db42e6ed5e1e26c0049f1bada345"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/InpaintMaskEditor.kt:326-334 | app/src/main/java/com/example/llamadroid/ui/ai/MangaPaintedMaskEditor.kt:506-510 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/InpaintMaskEditor.kt:326\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/InpaintMaskEditor.kt"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"a239b80ae28d95d17d2def0fd4d5c3823fe9606851e523d1409d14e9a6e73e4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt:1482-1487 | app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt:1509-1514 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt:1482\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt"},"region":{"startLine":1482}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e2ca554745d26783c48241d059eaed75308ac180388a70ad488f6ab381b20d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/QuadtrixWebUiScreen.kt:88-93 | app/src/main/java/com/example/llamadroid/ui/chat/ChatScreen.kt:113-118 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/QuadtrixWebUiScreen.kt:88\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/QuadtrixWebUiScreen.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd6bf185c5e089a4990a7f4b27eba2141bd96d7d116a89ff66eecad5f8140a6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:3458-3464 | app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:1199-1205 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:3458\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":3458}}}],"partialFingerprints":{"codehealthFindingId/v1":"1169ea98fb3906934ca8fb5e4f258f8270e37295624b63c231a7ccdcb9933f0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt:696-700 | app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt:1441-1445 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt:696\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":"app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"4799b5973062adddb38e56b6491c541c885896a569923ca45ed2e390a451ebd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:3753-3757 | app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:2596-2604 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:3753\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:2605\u0060 calls \u0060IconButton\u0060, \u0060Icon\u0060, \u0060stringResource\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt:3758\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":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":3753}}}],"partialFingerprints":{"codehealthFindingId/v1":"16963c44a2d4d0104483bd56be713987b0d62891ac38523671e69a2bc004df64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt:846-850 | app/src/main/java/com/example/llamadroid/ui/models/ModelClassificationOverrideUi.kt:63-73 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt:846\u0060 it does not close everything it opens, so those exact 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":"app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"748c5d8cc93c18af70b0297432d01734765f4c03a3dde91e429f892e337ce4a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:169-173 | app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:248-254 \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":"app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"53fa49c7950bfbc9697fdf3a1214209285ed450cb1613347ce04e78082cae1b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:1811-1815 | app/src/main/java/com/example/llamadroid/wear/WearCompanionBridgeManager.kt:728-732 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt"},"region":{"startLine":1811}}}],"partialFingerprints":{"codehealthFindingId/v1":"247340c9acd271b4002c1aafba0b9d6c262d974009050b4416692565faeb2d6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/audio/AudioStorage.kt:152-158 | app/src/main/java/com/example/llamadroid/audio/AudioWavSupport.kt:203-209 \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":"app/src/main/java/com/example/llamadroid/audio/AudioStorage.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dfd006105add850a01cdaa127b62cac5632257be5b54fa7c44e4141f6f2ccef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/db/Migrations.kt:4213-4225 | app/src/main/java/com/example/llamadroid/tama/db/TamaMigrations.kt:1090-1102 \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":"app/src/main/java/com/example/llamadroid/data/db/Migrations.kt"},"region":{"startLine":4213}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb5f35960bf8cc6168c15600e2433700d20d08a63fbd8bf8c669f583af1ebd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): app/src/main/java/com/example/llamadroid/data/db/ModelEntity.kt:66-71 | app/src/main/java/com/example/llamadroid/data/db/ModelEntity.kt:86-91 | app/src/main/java/com/example/llamadroid/sd/SdModelSupport.kt:169-174 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/ModelEntity.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1da4af8ff2c0834ad903eb1f7ea8d56826686fcad4249df17a69fb4072bdc5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): app/src/main/java/com/example/llamadroid/data/db/ModelEntity.kt:73-79 | app/src/main/java/com/example/llamadroid/data/db/ModelEntity.kt:93-99 | app/src/main/java/com/example/llamadroid/sd/SdModelSupport.kt:176-182 \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":"app/src/main/java/com/example/llamadroid/data/db/ModelEntity.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ecf985b287703174704eb9093e85fbffb48988792b2b2e9dd51b7b79507024"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt:1619-1623 | app/src/main/java/com/example/llamadroid/data/repository/LiteRtModelRepository.kt:1286-1290 \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":"app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc78ab845cda9b0acef64524f19aa5b5e53eb9dd4387ded901b397871c4e9ed8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/proot/AgentProotEnvironment.kt:327-334 | app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeEnvironment.kt:406-413 \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":"app/src/main/java/com/example/llamadroid/data/proot/AgentProotEnvironment.kt"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de27dc9fe7a2a383436085be18a4977c86c9d50f75b596b2ed67fa5e7276f53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/harness/HarnessRecoveryFileServer.kt:495-499 | app/src/main/java/com/example/llamadroid/service/AiServerSupport.kt:233-237 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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":"app/src/main/java/com/example/llamadroid/harness/HarnessRecoveryFileServer.kt"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b069a19731fd0aadcfa18e94a130c0772988c75973d9d6957a3924ba659cff8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): app/src/main/java/com/example/llamadroid/harness/HarnessRemoteProjectRunner.kt:526-538 | app/src/main/java/com/example/llamadroid/service/AgentLocalProjectRunner.kt:476-488 | app/src/main/java/com/example/llamadroid/service/AgentProotRunCoordinator.kt:332-344 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessRemoteProjectRunner.kt"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ad212951163879420150cd47d35bf0728cd4ec908a07728f67f03582be4c7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:645-652 | app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt:398-405 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 280 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:645\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc92c9c140d2030a7c511f29d1811cbebf94795db1604be56701ceb8ac05e978"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:675-680 | app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt:428-433 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 280 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a95add50dd26f2a5f21c95ce335ab655b0f0a8b4c3a1a1238638d57f247e96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:686-692 | app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt:439-445 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 280 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:686\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfbf97c73110ce35f5b9426485e4a1f2a75070d1a84e1ee52bcc0a4adbacad25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt:709-713 | app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt:462-466 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxTxt2ImgPipeline.kt\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 280 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"app/src/main/java/com/example/llamadroid/onnx/OnnxImg2ImgPipeline.kt"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"800b43ec35b312279e4ad9abaec2b23017c5412a3441667b7c3595262b0dbe16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): app/src/main/java/com/example/llamadroid/sd/SdModelSupport.kt:36-42 | app/src/main/java/com/example/llamadroid/sd/SdVideoRuntime.kt:21-27 | app/src/main/java/com/example/llamadroid/sd/SdVideoRuntime.kt:44-50 \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":"app/src/main/java/com/example/llamadroid/sd/SdModelSupport.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dac3e585feb4919a24e959ae9cf9d8265c51d087089d312d914a01d3288d3fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt:3726-3730 | app/src/main/java/com/example/llamadroid/service/AgentPromptBudget.kt:610-614 \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":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":3726}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e4da70802bb476a9829a249e1770f9af87e7836a1c0f1f5108b1e68f32f25b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/DeepResearchService.kt:440-447 | app/src/main/java/com/example/llamadroid/service/KnowledgeBaseIndexingService.kt:224-231 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/service/DeepResearchService.kt:450\u0060 calls \u0060coerceAtLeast\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/KnowledgeBaseIndexingService.kt:234\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":"app/src/main/java/com/example/llamadroid/service/DeepResearchService.kt"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5be0cc82d007a780ca281218017476a8ed1435d9ecc04c5233a5b788966a73b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/LiteRtGpuDiagnostics.kt:596-601 | app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt:2045-2050 \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":"app/src/main/java/com/example/llamadroid/service/LiteRtGpuDiagnostics.kt"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd42f69dd6d13e51edfe20f7f1a0c94db1f15a537a882f90c9977fa1654754f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:730-737 | app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt:528-535 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"67cab2ce902c4194757459010785fcb4484ea3c6f2172a369a84c190f0dc4bd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt:3641-3646 | app/src/main/java/com/example/llamadroid/service/LlamaScheduledTaskRunner.kt:357-362 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":3641}}}],"partialFingerprints":{"codehealthFindingId/v1":"61dd8b1415535442288bd2a3ef26fa964bd68cbf0294ead83156922831142719"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt:528-532 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:1966-1970 \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":"app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2ed661bed13f45b0ce3f65791620cfd6dd787c246fe27b50a8249a2e63fb71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/ModelShareService.kt:87-94 | app/src/main/java/com/example/llamadroid/service/ZimShareService.kt:79-86 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/service/ModelShareService.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/ZimShareService.kt\u0060 as WHOLE FILES: this scan already matched 8 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. If that is what happened, the fix is to keep one copy and have the other 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":"app/src/main/java/com/example/llamadroid/service/ModelShareService.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"4852e8afba1e7b8709bd3f9b76d80e61858f49fbd0ca71f974bc71c2b98ab5b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/NativeChatOnnxImageGenerator.kt:148-154 | app/src/main/java/com/example/llamadroid/service/NativeChatUnifiedImageGenerator.kt:178-184 \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":"app/src/main/java/com/example/llamadroid/service/NativeChatOnnxImageGenerator.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"1469f3ce58513c99dcdf02f97923db6582e4d36a20737a391d7565fc18d2bc8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:1343-1350 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1102-1109 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":1343}}}],"partialFingerprints":{"codehealthFindingId/v1":"0291445d85995d7161cce5b169cea1c29f5a54b4e79992cd9be1f89789bba569"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:1352-1359 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1111-1118 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaee8fc3d1e7aec178cd02d16f011d3fa0a847ae2c30a64b56e611fd2f257db1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:1361-1368 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1120-1127 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d23b4e2de121a67e5c9ea4d54b6962e53531453a6fc1650158ffd990fe0d20a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:1641-1650 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1253-1262 \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":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":1641}}}],"partialFingerprints":{"codehealthFindingId/v1":"91376f715327da3c95a9ebdadce9db4cdffd596bedc261063e2132b1d701c7d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:1871-1881 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1336-1346 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":1871}}}],"partialFingerprints":{"codehealthFindingId/v1":"85fa5471f54736ec4386c90ea20df4e4a47c5d7476a8145cf0959a44eb43d37c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/filestation/volume/LocalFileVolume.kt:170-175 | app/src/main/java/com/example/llamadroid/service/filestation/volume/SafVolume.kt:266-271 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/filestation/volume/LocalFileVolume.kt"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"7772c256e5f9872550010f62d0d5971a3a9cfc780257543cac35bfca2625e6f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/data/FarmWeather.kt:33-38 | app/src/main/java/com/example/llamadroid/tama/ui/farm/FarmAmbientModel.kt:229-234 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/data/FarmWeather.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a86759c8a1be59928685cd3ea3bb0c3f9d7081a93bd947f0ee6d0f328dacf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/data/TamaPet.kt:148-155 | app/src/main/java/com/example/llamadroid/tama/data/TamaStudy.kt:43-50 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/data/TamaPet.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"94559af8a2fbbfaaa50ad78a7b11f80f6da715c834804a6561814e5a1ee54af8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:3749-3756 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:3758-3765 | app/src/main/java/com/example/llamadroid/tama/game/TamaStudySessionSupport.kt:311-318 \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":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":3749}}}],"partialFingerprints":{"codehealthFindingId/v1":"113a7bc7537f94fbd8bb49a3d3cd77033c807bde3ca3d3039daa6b973cd84a6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/ArcadeMemoryGame.kt:438-449 | app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt:1060-1071 \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 \u0060app/src/main/java/com/example/llamadroid/tama/ui/ArcadeMemoryGame.kt:438\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/ArcadeMemoryGame.kt"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ebf6ebee08ab78f11831021539a91cf432049912fa8559dd01f2610d7387b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/TamaMapView.kt:481-489 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:5516-5524 \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 \u0060app/src/main/java/com/example/llamadroid/tama/ui/TamaMapView.kt:481\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaMapView.kt"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e0cf58056701d884fd6f6f69fbdbd11ce713d99ea2031bf97f1eb62b00db25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeInstallations.kt:839-846 | app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeTab.kt:532-539 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessRuntimeInstallations.kt"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"e858654bfa32d5fa55440d08bcf7afe3ad019fe57aff9ccb64be084299a600a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:2449-2459 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:2936-2946 \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":"app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt"},"region":{"startLine":2449}}}],"partialFingerprints":{"codehealthFindingId/v1":"aefcff1a0c3d288b9f62969fd1d16953b58847afd26fc550d3c7e1b9d3d22a07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:1214-1227 | app/src/main/java/com/example/llamadroid/ui/settings/ImageGenSettingsScreen.kt:626-642 \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 \u0060app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:1214\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt"},"region":{"startLine":1214}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c691c0a94dfca1d89d8f36095aea0c84b34b4073cfabe89f841e3b94ee66715"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): app/src/main/java/com/example/llamadroid/audio/AudioGenerationService.kt:587-592 | app/src/main/java/com/example/llamadroid/service/MangaTranslationForegroundService.kt:110-115 | app/src/main/java/com/example/llamadroid/service/MediaTranslationForegroundService.kt:112-117 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/service/MangaTranslationForegroundService.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/MediaTranslationForegroundService.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/AudioGenerationService.kt"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a1ba260bdbeb77821d4396fa074d561bb9da17a84e0e12800827b530d00655"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): app/src/main/java/com/example/llamadroid/harness/HarnessLanAccess.kt:186-191 | app/src/main/java/com/example/llamadroid/harness/HarnessRecoveryFileServer.kt:159-164 | app/src/main/java/com/example/llamadroid/service/HarnessRecoveryTerminalSessionManager.kt:124-129 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. 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":"app/src/main/java/com/example/llamadroid/harness/HarnessLanAccess.kt"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5ffda3098240d59eb78fd20282380cf15533d6084aaccda659341e84132992"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): app/src/main/java/com/example/llamadroid/onnx/OnnxBackgroundRemovalSupport.kt:154-158 | app/src/main/java/com/example/llamadroid/onnx/OnnxModelSupport.kt:515-521 | app/src/main/java/com/example/llamadroid/onnx/OnnxTtsSupport.kt:137-141 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. 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":"app/src/main/java/com/example/llamadroid/onnx/OnnxBackgroundRemovalSupport.kt"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"add345556ab814721d1bd603fb3a255674cd3121ce3a5d23f7b75e2ac220939e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt:783-787 | app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt:559-563 | app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:2243-2247 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1584-1588 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/LlamaCallService.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiveTranslatorService.kt"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"784afcc91726b680869bbd850b04aa96d2dab2f50c441db011a6667e6abb5a2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/MangaTranslationForegroundService.kt:21-35 | app/src/main/java/com/example/llamadroid/service/MediaTranslationForegroundService.kt:24-38 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/service/MangaTranslationForegroundService.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/MediaTranslationForegroundService.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MangaTranslationForegroundService.kt"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da501dcac8241f463503ad2e5e64d193399f14f097d6ea3c6855882439b7b42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:2260-2264 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1595-1599 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1611-1615 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:1611\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":2260}}}],"partialFingerprints":{"codehealthFindingId/v1":"720ba208a48ae217080c085113185eacd69e7cc5347a5c7a9ed26a16293fefd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaChatViewModel.kt:248-254 | app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaServerViewModel.kt:286-292 | app/src/main/java/com/example/llamadroid/ui/ai/ollama/OllamaViewModel.kt:230-236 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaChatViewModel.kt"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"978e8027409a85c5b83888cbfbe6833b3247cf9e4fe00618b034ad6d4140f199"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/widget/HomeWidgets.kt:384-388 | app/src/main/java/com/example/llamadroid/widget/NoteDisplayWidget.kt:152-156 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/widget/HomeWidgets.kt"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbacb03fadfe4dc3feccfffac49bf0e42c72c1b5832f9cfeaf4a2a7cba872647"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:7059-7078 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:7135-7154 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:7059\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":7059}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7d45c571770ebf0c8221b45a8e3c2792f27ac5abcb41287d60a48decceb1a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/chat/NativeChatVideoSupport.kt:294-311 | app/src/main/java/com/example/llamadroid/service/chat/NativeChatVideoSupport.kt:362-378 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/chat/NativeChatVideoSupport.kt:294\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/chat/NativeChatVideoSupport.kt"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab5ff6ce0482ff78fcceceb951e8ab060d1431a29cd60f552b404e205a016b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:163-179 | app/src/main/java/com/example/llamadroid/service/ModelShareService.kt:65-81 | app/src/main/java/com/example/llamadroid/service/ZimShareService.kt:65-73 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/service/ModelShareService.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/ZimShareService.kt\u0060 as WHOLE FILES: this scan already matched 8 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:163\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"3343f3f793cb23a508cef0909579399c32022f25fc8d9e122b952ab51a360a93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/RemoteSummaryOrchestrator.kt:138-153 | app/src/main/java/com/example/llamadroid/service/RemoteSummaryOrchestrator.kt:292-305 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/RemoteSummaryOrchestrator.kt:138\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":"app/src/main/java/com/example/llamadroid/service/RemoteSummaryOrchestrator.kt"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"af268f53ca06d4268fc8d00ad3477ceb0b8ce6e4d3bfb89e1967a911fdd5cdb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:7171-7186 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:7295-7310 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:7171\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":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":7171}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a56e39a432c845b739411bdfd974646a5294e9294250c7e2b86084203b2ea76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/ModelShareService.kt:302-317 | app/src/main/java/com/example/llamadroid/service/ZimShareService.kt:285-299 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/service/ModelShareService.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/ZimShareService.kt\u0060 as WHOLE FILES: this scan already matched 8 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/ModelShareService.kt:302\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"app/src/main/java/com/example/llamadroid/service/ModelShareService.kt"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0f18ee5cd1500e165713e028933ad6d8a704f6523aef9ac56d36142029d684"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:2099-2130 | app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:2237-2268 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:2099\u0060 it begins part-way through the construct above it, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:2133\u0060 calls \u0060appendLine\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:2271\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":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":2099}}}],"partialFingerprints":{"codehealthFindingId/v1":"d826d5b1c4deb75d59be8371833edbf5c784b27b202af90a62bb674a6279bdb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/LlamaApp.kt:316-330 | app/src/main/java/com/example/llamadroid/ui/LlamaApp.kt:342-356 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/LlamaApp.kt:316\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":"app/src/main/java/com/example/llamadroid/ui/LlamaApp.kt"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb9b59091eb74db62cb4b456e4842093cf8ff25f54492b7cc0f074607f4140a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:2881-2895 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:3036-3050 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":2881}}}],"partialFingerprints":{"codehealthFindingId/v1":"f442cca6dcc889ca9be7b22fb71d38fb854d4c97b03c580390ce5c008ad32050"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt:872-886 | app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt:925-937 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt:872\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfaa2d41c21bf77569fc31a269a73193c09d6f88a2f79d986694dcd94d2d6d3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentToolSchemaPolicy.kt:149-163 | app/src/main/java/com/example/llamadroid/service/AgentToolSchemaPolicy.kt:175-184 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentToolSchemaPolicy.kt:149\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentToolSchemaPolicy.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da27f158c4627cae196ef967a5be4d1b7730d9e863df96fc3e825e4a54f735b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/example/llamadroid/util/ProcessUtils.kt:30-44 | app/src/main/java/com/example/llamadroid/util/ProcessUtils.kt:80-94 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/util/ProcessUtils.kt:30\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/ProcessUtils.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f386be02bab5ea2a80f76955a3d43368139f657e6a27e79ede9eaa38ac257d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): app/src/main/java/com/example/llamadroid/service/AgentService.kt:10487-10500 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:10591-10604 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:10623-10636 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:10487\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":10487}}}],"partialFingerprints":{"codehealthFindingId/v1":"68030b04bbcc78408fe9e3184f63e739e9d528a9b72fa774305af086f3d4527f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/harness/HarnessRemoteProjectRunner.kt:439-448 | app/src/main/java/com/example/llamadroid/service/AgentProotRunCoordinator.kt:300-313 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/harness/HarnessRemoteProjectRunner.kt:439\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessRemoteProjectRunner.kt"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2f29d2e366b08170a3deee554fbafe6f4a6025ef7a8cc241790665630c225e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 9): app/src/main/java/com/example/llamadroid/service/AgentService.kt:11472-11483 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:11513-11525 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:11586-11597 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:11758-11769 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:11804-11815 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:11838-11849 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:12822-12833 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:12852-12863 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:13424-13436 \u2014 all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:11472\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":11472}}}],"partialFingerprints":{"codehealthFindingId/v1":"919dbec6b3c2f4906a00fb498b3298eb2fcb253d8572c8150fdda6b380df33b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateArena.kt:173-182 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:738-750 \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 \u0060app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateArena.kt:173\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateArena.kt"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18b86e235e575e07eaa44fe906c38c0761b078a1df8dbd08f78b18989d5cf62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateArena.kt:175-183 | app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:740-752 | app/src/main/java/com/example/llamadroid/tama/ui/ArcadeMemoryGame.kt:318-330 | app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt:1032-1044 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateArena.kt:175\u0060 it begins part-way through the construct above it, so those exact 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":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateArena.kt"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"658776c09f8e4a5c90c2f2e16434f5de61631e1e6bdd537f84e79da72ebcec28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:959-971 | app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:1179-1191 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:959\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":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db347431b04c057633550a0fc44a78739d0c674271e551c94f54b9559811bee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/StoreScreen.kt:407-419 | app/src/main/java/com/example/llamadroid/tama/ui/StoreScreen.kt:426-438 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/tama/ui/StoreScreen.kt:407\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/StoreScreen.kt"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e2b3da7b85cc5c7a032879ec385ece402e8b993fddce9ae3151249e0e05751"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AdventureForegroundService.kt:254-265 | app/src/main/java/com/example/llamadroid/service/AdventureForegroundService.kt:320-331 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AdventureForegroundService.kt:254\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":"app/src/main/java/com/example/llamadroid/service/AdventureForegroundService.kt"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"a21d6eb6bec8b5bbc11426d19b19daa535397628ec70471a49dc1275ecd06200"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:18320-18331 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:18356-18367 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:18320\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":18320}}}],"partialFingerprints":{"codehealthFindingId/v1":"302e0c99bedb3dc173e2081dc7da1e5f3e5fe249a854ecda07b37b7553d62cab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt:876-887 | app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt:929-938 | app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt:964-973 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt:876\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bcdd56b69dc6012efc19bb7d6f2e96a129470a329d922867b7f4e3056787457"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt:828-838 | app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt:876-887 | app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt:929-938 | app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt:964-973 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt:828\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c701294bcd61359261dcd03425f7100d8666a574d153bbefaeab5f229db6bdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/ModelShareService.kt:242-253 | app/src/main/java/com/example/llamadroid/service/ZimShareService.kt:218-229 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/service/ModelShareService.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/ZimShareService.kt\u0060 as WHOLE FILES: this scan already matched 8 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/ModelShareService.kt:242\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":"app/src/main/java/com/example/llamadroid/service/ModelShareService.kt"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4c57d4f0e631b254c2919c709ae15ae397932eb47a011321564750015e45054"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/VideoInterpolationService.kt:591-597 | app/src/main/java/com/example/llamadroid/service/VideoUpscalerService.kt:500-510 \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 \u0060app/src/main/java/com/example/llamadroid/service/VideoInterpolationService.kt:591\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoInterpolationService.kt"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e3af315754a4dde37cbbe5f44dd3dd7f4588d02ee9ed0783d334014be05c512"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:585-595 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:2952-2962 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:585\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:583\u0060 calls \u0060close\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:2950\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":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc1a1d02c4e91f6cc2939539f80f46bb721a69c5d96442107c943690b6c6f50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt:2581-2590 | app/src/main/java/com/example/llamadroid/service/VideoSumupService.kt:474-484 \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 \u0060app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt:2581\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt"},"region":{"startLine":2581}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bef553e78f331e6b3fdf9c9ea7929ddb3389063cd3c52aedfd93e26828cd83c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:609-618 | app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:291-300 \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 \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:609\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":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d5f4a910e63dd34d5da5e9beeb16cf6334c729b1ea22a871184e2b1b8aea2a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:608-617 | app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:290-299 | app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt:498-507 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:608\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5ed7c16fbece3ef1f6594156092cb4bdb133394f74380d92c104611c022cdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/TermuxFileManagerScreen.kt:673-679 | app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:1118-1127 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/TermuxFileManagerScreen.kt:673\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/TermuxFileManagerScreen.kt"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb968507aaa44238d6b2f48bbb2cc21726f148140e18501c7d4fe04649348175"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:20561-20569 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:20703-20712 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:20561\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":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":20561}}}],"partialFingerprints":{"codehealthFindingId/v1":"59416ba74c4bf83070cf6466643392cd2c0f66a7681708c5033271c82012c5ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:444-452 | app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:1151-1159 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt:444\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c64fa21b3b97cf770784c8e764f91c2428c06666a9cb600752c2c1e26150cd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/settings/SystemPromptsSettingsScreen.kt:91-99 | app/src/main/java/com/example/llamadroid/ui/settings/SystemPromptsSettingsScreen.kt:135-143 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/settings/SystemPromptsSettingsScreen.kt:91\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":"app/src/main/java/com/example/llamadroid/ui/settings/SystemPromptsSettingsScreen.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d8490e6bc303dc77f9e3eeed9ce045b68b1df5aa0bd926072864047b3de1dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/NativeVideoRecognitionRuntime.kt:362-370 | app/src/main/java/com/example/llamadroid/service/NativeVideoRecognitionRuntime.kt:420-428 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/NativeVideoRecognitionRuntime.kt:362\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeVideoRecognitionRuntime.kt"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c84bbba51959bb42a0a5f4633422e8b79c21fe3b2f1e567c2ec2344e43e4f96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:479-487 | app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:576-584 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:479\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"a55097d5b7cc961afd79e91d1e77097a8a130cffbc7097fff62fb3131476d0d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:679-687 | app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:828-836 | app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:873-880 | app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:1047-1055 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:679\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":"app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"f592abd924b409422cd2464d51082b00b384c7a46c27abd0ed7914c45231c6e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:630-638 | app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:1011-1019 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt:630\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6c35b8b133298056d667de965741d675fb9b3b92b745e1908e30d046b0c9f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:2046-2054 | app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:2176-2184 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:2046\u0060 it begins part-way through the construct above it, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:2045\u0060 calls \u0060header\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:2175\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":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":2046}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb1e8cf684d190fd96eee34978b5f900fb1b07b5ff59893791bf6420f8c58a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:1176-1184 | app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:1242-1250 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:1176\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb985b6a8ec753e21ce6a86bbe80df804e228aa2179174b52084efbda18e47f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:1195-1202 | app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:1268-1275 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"526ece8dfd84e819e511960d5d0f05cb5e42e0eea801902e4d162e24cd36acd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/ModelShareService.kt:292-299 | app/src/main/java/com/example/llamadroid/service/ZimShareService.kt:275-282 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/service/ModelShareService.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/ZimShareService.kt\u0060 as WHOLE FILES: this scan already matched 8 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. If that is what happened, the fix is to keep one copy and have the other 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":"app/src/main/java/com/example/llamadroid/service/ModelShareService.kt"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"828cc5ceb699597b0562a662a4265aff830dde1ae288017c0e8706503e3f4835"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:987-994 | app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:1043-1050 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:987\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"d212f61e72e3310e3872efb7de2de44b888ad03d8c3679aefc0a33b493e42c94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:593-600 | app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:2827-2834 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:593\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":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f07028f1f38bcaf501d802667cf0ada33446f12451c62d2d0779fbd653ae01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): app/src/main/java/com/example/llamadroid/service/SdRuntimeSupport.kt:133-140 | app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:967-974 | app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:1187-1194 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/SdRuntimeSupport.kt:133\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdRuntimeSupport.kt"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"99810e38362ae107a0518c3d488db7afd0647b8dbad2a0ea3e4eb81d54d32a35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/easy/EasyChatModelPicker.kt:71-78 | app/src/main/java/com/example/llamadroid/ui/easy/EasySavedServerSheet.kt:94-101 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/easy/EasyChatModelPicker.kt:71\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/easy/EasyChatModelPicker.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a43d18afa6d7e4df89d457ac67eadf1b26d2a2de839fbd35e55b1725e51a74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:20585-20592 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:20716-20723 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:20585\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":20585}}}],"partialFingerprints":{"codehealthFindingId/v1":"802a328dbd9c48d8d1c0d069cf009c900a3fa10701ec9b7bda110cf6c290fffe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:645-652 | app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt:677-684 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bdcc633ee71dbca1a9a562723d90cc997e419b80187741a04743a52f4753e1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:1149-1156 | app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:1187-1194 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:1149\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b50b9f5a6dce280ac9d5020daf88e094705077f57e728b0eca428dd04bc796"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:163-170 | app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:225-232 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:163\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:234\u0060 calls \u0060Column\u0060, \u0060weight\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:172\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":"app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ecd8a3e79980af74030c548865970471c10bb39a641fa3c11b06907897a4a9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt:1420-1427 | app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageMedia.kt:336-343 \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":"app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt"},"region":{"startLine":1420}}}],"partialFingerprints":{"codehealthFindingId/v1":"64de975f6bf7e3855b9b7d670602df30ade297113cc2b5402a55a2a3fda755e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferDomains.kt:445-449 | app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferDomains.kt:532-538 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferDomains.kt:445\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":"app/src/main/java/com/example/llamadroid/harness/transfer/HarnessTransferDomains.kt"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd2165a21715258bc7c80c877259f258509628186a4d21dfbf7af437348bc1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/KnowledgeBaseIndexingService.kt:136-142 | app/src/main/java/com/example/llamadroid/service/KnowledgeBaseIndexingService.kt:150-156 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/KnowledgeBaseIndexingService.kt:136\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/KnowledgeBaseIndexingService.kt"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"542ca4dc4ba11c47a1a96fc7782d23afa7e1abfc6ace081916fd35a632a940cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:166-172 | app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:427-433 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt:166\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":"app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d029c8729719a0b6c2d1d409d15a841edbb9d236fb1728c9654596536ab071"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:465-471 | app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:562-568 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:204-210 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:465\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"378a6786eb3c6a6370971ba0db21d4ee69c4804b887b54e066faa0976c5a8641"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): app/src/main/java/com/example/llamadroid/ui/agent/AgentSkillManager.kt:78-82 | app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt:169-173 | app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:248-254 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentSkillManager.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"58df34de7d619ba0b887a225fa3e1b215a3c453fa54e9b466c2efcd172325a8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:18631-18637 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:18648-18654 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:18631\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":18631}}}],"partialFingerprints":{"codehealthFindingId/v1":"078b77aa2580b1db8d67b31d83de3e8e80706430423feb582ab58449dd27c3dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/example/llamadroid/audio/AudioProcessSupport.kt:160-167 | app/src/main/java/com/example/llamadroid/audio/AudioProcessSupport.kt:188-195 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/audio/AudioProcessSupport.kt:160\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/AudioProcessSupport.kt"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac349c97b3371ed80fbb117c0426ff85930574664c271178ba874435417da0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): app/src/main/java/com/example/llamadroid/service/OnnxBackgroundRemovalService.kt:397-401 | app/src/main/java/com/example/llamadroid/service/OnnxImageGenerationService.kt:576-582 | app/src/main/java/com/example/llamadroid/service/OnnxTtsGenerationService.kt:268-272 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/OnnxBackgroundRemovalService.kt:397\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/OnnxBackgroundRemovalService.kt"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"c615b0140f93d5cce068f71fa3dc063c1d6a2f06777855513a802d2e71c63b2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/data/runtime/AgentRuntimeEndpointModelDiscovery.kt:43-49 | app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt:3006-3011 \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 \u0060app/src/main/java/com/example/llamadroid/data/runtime/AgentRuntimeEndpointModelDiscovery.kt:43\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/runtime/AgentRuntimeEndpointModelDiscovery.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"e21a99fb90e909acd8b321debb54199276dc38d948ac863d9e94c8827e519b58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:92-98 | app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:133-139 | app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:279-285 | app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:315-321 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:92\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"c819acd0ec4fe89e0fd49c2222853eb32162b990e2024636ad3a396b54480d6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 5): app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:83-94 | app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:125-135 | app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:178-189 | app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:270-281 | app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:306-317 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.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. 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":"app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"a340da15af81dfe96da47a8d257184041e993d5d20773a38158792154d5d00a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:690-695 | app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:696-701 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:690\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb0d2bb94b61038600a9395d62760f68389b38cedee2f03283f9be527f919f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:749-755 | app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:825-831 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt:749\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca39f38f539ecb2f302fa7cf180c019fdf3b46b9d1f1049fac784097e196aeff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:20543-20548 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:20687-20692 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:20549\u0060 calls \u0060followRedirects\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/AgentService.kt:20693\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":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":20543}}}],"partialFingerprints":{"codehealthFindingId/v1":"4566934dbb53189490f8d0c6762b2883f698e5daa340b885b7bf9a56ca8f1837"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/audio/music/StableAudio3Models.kt:314-318 | app/src/main/java/com/example/llamadroid/audio/music/StableAudio3Models.kt:324-329 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/audio/music/StableAudio3Models.kt:324\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/music/StableAudio3Models.kt"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c07029888ee7cb50a405a4be0481e3754136bcc57ce25d8e0178186466963e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/AgentService.kt:12765-12770 | app/src/main/java/com/example/llamadroid/service/AgentService.kt:12790-12795 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":12765}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae3c482b09299f6a84683ea3459c16661cd4a8adbfdd27cfab71394ab6bb3ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/kiwix/ZimManagerScreen.kt:370-374 | app/src/main/java/com/example/llamadroid/ui/kiwix/ZimManagerScreen.kt:387-391 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/kiwix/ZimManagerScreen.kt:370\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/kiwix/ZimManagerScreen.kt"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f48b9904b9819e9d955b959eb372892e27702a241f82a14427cf216e3e65aae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 14): app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1584-1588 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1615-1619 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1648-1652 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1679-1683 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1709-1713 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1742-1746 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1776-1780 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1806-1810 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1864-1868 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1895-1899 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1925-1929 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1958-1962 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1993-1997 | app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:2025-2029 \u2014 all 14 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1584\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1612\u0060 calls \u0060Spacer\u0060, \u0060height\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt:1581\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":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":1584}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab56d954bf537e13fa602864045c0f1e2853c957ea268f5c45f8a80bcd9b3af8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/SubtitleBurnScreen.kt:326-330 | app/src/main/java/com/example/llamadroid/ui/ai/SubtitleBurnScreen.kt:360-364 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/ai/SubtitleBurnScreen.kt:326\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":"app/src/main/java/com/example/llamadroid/ui/ai/SubtitleBurnScreen.kt"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd40fe2150c6f516020127ff17f54442741e5e868f53ee1d9439e13eb9fc1253"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:2534-2538 | app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt:2552-2556 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/wear/PhoneWearGateway.kt"},"region":{"startLine":2534}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e971ca38bf9d563901589c7b95cfc953a1d6f90bcc7e6ab77a9b540fbaf24b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/onnx/OnnxBackgroundRemovalSupport.kt:618-624 | app/src/main/java/com/example/llamadroid/onnx/OnnxTtsSupport.kt:857-863 \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":"app/src/main/java/com/example/llamadroid/onnx/OnnxBackgroundRemovalSupport.kt"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f3e117c7b38c2fdaa659578f04dee59ae58d6d438e0bcbf57f6372f7d3c8928"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/KnowledgeBaseIndexingService.kt:113-117 | app/src/main/java/com/example/llamadroid/service/KnowledgeBaseIndexingService.kt:124-128 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/KnowledgeBaseIndexingService.kt:113\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/KnowledgeBaseIndexingService.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb8fa8bfaa8e784ef3b15fba4852b3806c82f845ae87aec03e5abb468d8b140"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/example/llamadroid/onnx/OnnxBackgroundRemovalSupport.kt:515-521 | app/src/main/java/com/example/llamadroid/onnx/OnnxBackgroundRemovalSupport.kt:522-528 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"app/src/main/java/com/example/llamadroid/onnx/OnnxBackgroundRemovalSupport.kt"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56f0df710421778d0d1d688861b3b1ed96af39f3a207d13f3a2325c62f879e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/onnx/OnnxBackgroundRemovalSupport.kt:687-691 | app/src/main/java/com/example/llamadroid/onnx/OnnxBackgroundRemovalSupport.kt:692-696 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/onnx/OnnxBackgroundRemovalSupport.kt:687\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/onnx/OnnxBackgroundRemovalSupport.kt"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"7adbd803e976d9e3a9b2ae03335adac516ef09892f7abf5efb8316d6d3e96c12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/onnx/OnnxTtsSupport.kt:588-593 | app/src/main/java/com/example/llamadroid/ui/ai/LiveTranslatorScreen.kt:121-126 \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":"app/src/main/java/com/example/llamadroid/onnx/OnnxTtsSupport.kt"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f29334d0c1d706aab04207a5f2604f384eaa5809ea6a117e158b7b5b98cf1bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt:3362-3366 | app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt:2900-2904 \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":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":3362}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8e9a29314c44eb885bfea1f00f5ae1eba866517602095a56f538a26660ae78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/PDFService.kt:2703-2708 | app/src/main/java/com/example/llamadroid/service/PDFService.kt:4609-4614 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/PDFService.kt:2703\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":2703}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d76b7c0e913e0178132bdfc3e9ac3359397cd1164985e7dcdbfe9944595a4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt:1851-1855 | app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt:474-478 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":1851}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57c6e022b9efb58c8d0d7196e313010579888737925b6317247b72588f94cdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:1098-1103 | app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:1127-1132 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:1104\u0060 calls \u0060getString\u0060 and \u0060app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt:1133\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":"app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"518b3c569e24de53d3e1cee043f74bdbde4243d6d877c587355818ebe819b64a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/service/vision/VisionDescriptionService.kt:70-75 | app/src/main/java/com/example/llamadroid/service/vision/VisionDescriptionService.kt:160-165 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/service/vision/VisionDescriptionService.kt:70\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/vision/VisionDescriptionService.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"35815cf85b67c1646066bca3a93651accf704f75160e0d060726aecc0545aa90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:2426-2430 | app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt:2455-2459 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":2426}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b1d6d23e097542a9e0268b04317e14c68dce348daef8234952cd4b2a15de5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:4268-4273 | app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt:4698-4703 \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 \u0060app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt:4268\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":4268}}}],"partialFingerprints":{"codehealthFindingId/v1":"6135b2585b447f1291efaa0308c48397f9713a8207aac90b5d97dc3acaf3d32f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt:1367-1371 | app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt:412-416 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"19d29ebc3cfda95cf3d868e1921f5cfb2d31df9c74564640ba4e122012252ae4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundlePicker.kt:118-122 | app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt:276-280 \u2014 before extracting anything, compare \u0060app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundlePicker.kt\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundlePicker.kt"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"434e4874684ef5512f5f771f22ba367c5a88409d914ad6d6b6a679971a1d946c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:4815-4819 | app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:4969-4973 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:4815\u0060 it begins part-way through the construct above it, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:4824\u0060 calls \u0060isNotEmpty\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt:4977\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":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":4815}}}],"partialFingerprints":{"codehealthFindingId/v1":"e55c3dcc86dd76d96db986c1e0c9c9b933a9e6cd3fb0602472450c8d6881bf58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:2816-2820 | app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt:2850-2854 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":2816}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee49900f0bce43ed76ab209f27c5275b5260b03efa6c83fd88ccc7ef0fca28d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/filestation/FileStationScreen.kt:363-367 | app/src/main/java/com/example/llamadroid/ui/filestation/FileStationScreen.kt:402-406 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/filestation/FileStationScreen.kt:363\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/filestation/FileStationScreen.kt"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d14a0fe9cf7fff755ed1195bad5c232d4e8fca61152873f6ba8edfde40f008d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/BundleItemBuilder.kt:569-577 | app/src/main/java/com/example/llamadroid/ui/models/ModelLibraryScreen.kt:1947-1955 \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":"app/src/main/java/com/example/llamadroid/ui/models/BundleItemBuilder.kt"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ce3e7bd398bcd3aa0c2cf619c284412c650bd8ae5c062c052c06148c47a119"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:1088-1092 | app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:1181-1185 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:1093\u0060 calls \u0060stringResource\u0060 and \u0060app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt:1186\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":"app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7d4b871696d5bea2c3726e054e58fe1ae63eed825fb1fbbb6e42996e270aeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:971-975 | app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:1029-1033 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt:971\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"e80a7c5e8148eb427c75ff5e281c3459f190062321e5b4d7a97f93875ac18bad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt:1335-1339 | app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt:1359-1363 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt:1335\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aecd1a8bccd1931b08577eebb4206ae6847a523729a02f9444c082f10bb923b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:390-395 | app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:471-476 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:390\u0060 it does not close everything it opens, so those exact 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, \u0060app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:396\u0060 calls \u0060pidOwnsAnySocketInode\u0060, \u0060readCommandLine\u0060, \u0060File\u0060 and \u0060app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt:477\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":"app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28468f2a5771d4d2d14d99a16b66c223bd4e50a1ff16c54e96223222f9b6993"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:1960-1965 | wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt:2110-2115 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":1960}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2f6038669700d1221d260e5b0bad118c4cc662cbf4b602cc9361a8b5c6d1d1"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: :wear-protocol: :wear-protocol: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"eb94138dadcb7d2fff43ee2d543502076d2becdae77e8865c09ea4378e75417d"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: :app: :app: abstractness 0.03, instability 0.06, distance 0.91 \u2014 an application entry point, so it is concrete by design \u2014 the distance is expected; what is worth checking is that other projects depend on it at all, since a host should be a leaf of the graph."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"36668a5851348752699535bd5315fdbd0180d71bba78ea142a2c21cef7f40624"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AgentService (LCOM4 6): AgentService\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"6406364d50e0880d97f2588336d2da7372e9686964009423d19fb0f98ab02f1f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BaseRemoteSummaryClient (LCOM4 5): BaseRemoteSummaryClient\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa34c7197a9353c5b0ad63735ecea85de0031ed6c83695665f6aae4939a1020d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LiteRtLmReflectionBridge (LCOM4 4): LiteRtLmReflectionBridge\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"007eb206014dc5efbf616507173394a557de7e8214df6171bfb58729462c8489"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TamaGameEngine (LCOM4 4): TamaGameEngine\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc9a3a989371a70986be0d4e97c253a6e871fb5abd29d97b1c9b884449fd906"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NativeHarnessParityController (LCOM4 4): NativeHarnessParityController\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessParityController.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30321640873cdda79c0894421b4d54d19c426baf30c7ffd76e74979eb919cdf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt: app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 475 in ImageGenScreenKt.ImageGenScreen at line 140. 8 of those changes were fix/bug commits, and the other 12 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ImageGenScreen.kt"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2cb6c319f4224a20f17396a0608ec46938dfd8616ccf362a7654d9ef86ea33b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/AgentService.kt: app/src/main/java/com/example/llamadroid/service/AgentService.kt changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 323 in AgentService.executeToolCall at line 11014. 8 of those changes were fix/bug commits, and the other 12 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/AgentService.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":11014}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e2dbcdc9bdb2e2d4c62c99423a493eb682a5675538130e6a7026d41874469f6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/LlamaService.kt: app/src/main/java/com/example/llamadroid/service/LlamaService.kt changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 257 in LlamaService.startServer at line 585. 4 of those changes were fix/bug commits, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/LlamaService.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaService.kt"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d6d4e5c4e4912e3e8bbf7bb10f8b66a48aa4845c9b51e8db32d36351cbc21d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt: app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 239 in MasterModeScreenKt.MasterModeScreen at line 121. 3 of those changes were fix/bug commits, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1373e4cb218c78970c4b3ce4efb2f19bb4f342fe66e7987150b8181a693341f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt: app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 112 in WorkflowsScreenKt.WorkflowsScreen at line 98. 6 of those changes were fix/bug commits, and the other 10 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"32dac0b93220743fe4764ccc2e9952a5f1236f3d37405dd68173a16c4956f030"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt: app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 91 in SDModelsScreenKt.InstalledSDModelsTab at line 700. 7 of those changes were fix/bug commits, and the other 11 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b1fb4a118fdb64d2becd761ca369252ece5b953c9ddb8e624206e53f4b0e6f1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt: app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 120 in SdDistributedScreensKt.SdDistributedMasterScreen at line 616. 6 of those changes were fix/bug commits, and the other 7 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2bfa2a3923b1f1fbb8ab568536d422493179dd14c2601cd06ae23972b90283"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt: app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 104 in VideoGenScreenKt.VideoGenScreen at line 195. 5 of those changes were fix/bug commits, and the other 7 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1075498ab2355c8b768051e4c0345d8e570072caaf2c8258a9eafb3307274b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt: app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 137 in TamaScreenKt.TamaScreen at line 149. 4 of those changes were fix/bug commits, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe7765aa90d97ff785430ae1241ba6fc720e6caf9e982e355ee7073369d6985"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt: app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 122 in AgentWorkspaceScreenKt.AgentWorkspaceScreen at line 130. 1 of those changes was a fix/bug commit, and the other 8 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentWorkspaceScreen.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9314401a73a847256091a01c799327a9842ff5983d634564688a17880f7bfcf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/LlamaApp.kt: app/src/main/java/com/example/llamadroid/ui/LlamaApp.kt changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in LlamaAppKt.LlamaApp at line 192. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/LlamaApp.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/LlamaApp.kt"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"18513c2c0704f867748933d054b3a954ee779a867b2f811ef87a43a61e329637"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt: app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 88 in LLMSettingsScreenKt.LlmSettingsContent at line 92. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/LLMSettingsScreen.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a755df5e176f9e98e94c7ed25bc763cca51c48150221ec836e019407fc3387"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt: app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 76 in AgentDialogsKt.AgentSettingsDialog at line 848. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentDialogs.kt"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"e807e980af38c6570504f16c6ee618bf8a3941fcfd7043f371730a1c279d25f2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/SdCliSupport.kt: app/src/main/java/com/example/llamadroid/service/SdCliSupport.kt changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 74 in SdCliSupportKt.buildSdCommandArgs at line 193. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/SdCliSupport.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdCliSupport.kt"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"15256fc3875b9f486bf2e5c71b47a5c790daf8e6b4c27a153b51725c9c9d9751"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/DownloadService.kt: app/src/main/java/com/example/llamadroid/service/DownloadService.kt changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 76 in DownloadService.startDownloadInternal at line 565. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/DownloadService.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DownloadService.kt"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"80dc21cb5d435437dffa66c1ac6cda90693b68628339e684799936f4202df1ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt: app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in ModelManagerScreenKt.InstalledTab at line 223. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelManagerScreen.kt"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc1b4b6ca62fad4cac5e46a2d443ff4cacb01aab7ff6536cab0c337b84ef076"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt: app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in LlamaClientService.streamNativeToolResponse at line 1908. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":1908}}}],"partialFingerprints":{"codehealthFindingId/v1":"9524bd66a48a5e4058068f255d42dedc769564d088ac0eb2d60cae88aa5b90ae"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt: app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in ModelRepository.getModelDir at line 261. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd8c7ab9b0f3f6b376a269e8928f693beee9724fdc815fb89baeffde2b6697c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt: app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 69 in AudioTranscriptionScreenKt.AudioTranscriptionScreen at line 69. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"099a6743564e4fc6fe005f5af77e084d883ebe5817eb881bc5836b3fb5c13ae5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/LlamaChatScreen.kt: app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/LlamaChatScreen.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 155 in LlamaChatScreenKt.LlamaChatScreen at line 99. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/LlamaChatScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/LlamaChatScreen.kt"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"5026dcc6971877291a7797a9bc68aa4d4209736e31643ee0aee6d0a411b55019"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt: app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 76 in PDFToolboxScreenKt.PDFToolboxScreen at line 67. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bfa1dd7781ae0dc857c4efd8c9beea39aae4d6495bc849fb7a30c2859a772cc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/LlamaServerChatService.kt: app/src/main/java/com/example/llamadroid/service/LlamaServerChatService.kt changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 66 in LlamaServerChatService.performChatWithToolsStreaming at line 479. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/LlamaServerChatService.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerChatService.kt"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da1667248d4a31c4949b12f56932270b4d5f752b9e952e5953b763f57f4ea4e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt: app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 96 in NativeChatToolRuntime.executeToolCall at line 1507. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":1507}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8964f5f684ac5e302d704f7610e39dceb6a81be4bb4d605f12dfe9d037f88ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/harness/HarnessAgentRoute.kt: app/src/main/java/com/example/llamadroid/harness/HarnessAgentRoute.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 113 in HarnessAgentRouteKt.HarnessCapturedAgentRoute at line 148. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/harness/HarnessAgentRoute.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAgentRoute.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9bf8b68f07350a85e86ef00e4f5e615d7e0ecf3ae29806768804d5ccdce95c8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt: app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 93 in HarnessScreenKt.NativeHarnessScreen at line 99. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessScreen.kt"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bc579e7acf99b9b353944f1c6e9c2bb6783d7348c8b842559fbfb059dd6d37e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt: app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 73 in ArcadeScreenKt.ArcadeScreen at line 159. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"499349362befffe0fc00d0ab8a5ae04bfa69652acda55b1c5199cdcf8f2f3bc3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/agent/AgentChatList.kt: app/src/main/java/com/example/llamadroid/ui/agent/AgentChatList.kt changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 62 in AgentChatListKt.ChatMessageBubble at line 863. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/agent/AgentChatList.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentChatList.kt"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"343b1bb8647c7fa0ff6a43e88fc85fca7c1422378483bd99f5882d7ba7f72c48"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt: app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in GeneralSettingsScreenKt.GeneralSettingsScreen at line 73. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"02c34d94f4cc12874caf7baeee23f66063b749faa37f4ed750058b26077a080e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt: app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 150 in NativeHarnessController.dispatchInternal at line 545. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessController.kt"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e679c85a1c0c929ff84a0c07e49841768eb939cfcc8b97d5b7ad6e885a64c17"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/VideoSumupScreen.kt: app/src/main/java/com/example/llamadroid/ui/ai/VideoSumupScreen.kt changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in VideoSumupScreenKt.VideoSumupScreen at line 72. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/VideoSumupScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoSumupScreen.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"882a65b3120528ebb0e50faa34952a1f113b3d71110ddda6fb6a0229d3cdba9b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt: app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 86 in OnnxImageGenScreenKt.OnnxImageGenScreen at line 149. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c789a08a57f2e9882caffebf59f57005ed945aca5525c3da9a36c76e0035a56"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/ProcessController.kt: app/src/main/java/com/example/llamadroid/service/ProcessController.kt changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in ProcessController.start at line 965. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/ProcessController.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ProcessController.kt"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"550dd173a5ba2a282baae55173c0fc500acee1eb43f72fc144eedcb618c20a91"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt: app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in NotesManagerScreenKt.NotesManagerScreen at line 104. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/notes/NotesManagerScreen.kt"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"454419131847e9212e041ec65e2166d785f1f454c6c4f76f54f2103c2befc58f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt: app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 79 in AdventureGateScreenKt.AdventureGateBattleView at line 2657. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureGateScreen.kt"},"region":{"startLine":2657}}}],"partialFingerprints":{"codehealthFindingId/v1":"151a6964efda1dbda2d939e1abd2e444f83a807e255c20a6c68494f42da30aa3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaChatListScreen.kt: app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaChatListScreen.kt changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in LlamaChatListScreenKt.LlamaChatListContent at line 91. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaChatListScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaChatListScreen.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7f73348790ab4c7f308a26828865fc8ec6b3b799e96c9e85859bc46d97c1ab"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/sd/SdArtifactInspector.kt: app/src/main/java/com/example/llamadroid/sd/SdArtifactInspector.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 75 in SdArtifactInspector.classifyEvidence at line 608. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/sd/SdArtifactInspector.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdArtifactInspector.kt"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0fb3bd8265cd98da0139d9ab53453b9b11a3d60f001f3da80ed5507e01adf7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/sd/SdModelSupport.kt: app/src/main/java/com/example/llamadroid/sd/SdModelSupport.kt changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in SdModelSupportKt.inferSdFamily at line 523. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/sd/SdModelSupport.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdModelSupport.kt"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"46fbf403421c279c8e3676708b8595b13375cd910a2d37f010bbe40e77d651ab"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt: app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in StableDiffusionService.runGenerationWithBinary at line 797. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/StableDiffusionService.kt"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9146737ec52698885d03671af3b3da038750281de2881fb3bd14d866e88dd18"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt: app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in UnifiedNotificationManager.showTaskNotification at line 677. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f92b147870be5ea77d183d0d9258d90e0c9dc12b2442d49dc6049edaa732ee"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/AgentRuntimeSupport.kt: app/src/main/java/com/example/llamadroid/service/AgentRuntimeSupport.kt changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in AgentRuntimeSupport.resolveFinishTaskPayload at line 1954. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/AgentRuntimeSupport.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentRuntimeSupport.kt"},"region":{"startLine":1954}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee8cd921e55efed3978326bbd8b4a5fc73d8daa1c240e0fd6f5b18c8a70d04b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt: app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in SettingsRepository.migrateDirectAgentSettingsPreferences at line 245. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d26974af437a0c4be4c465a19cc2055e93cd5fc766504f2bde44557d16a194"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt: app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in LiteRtModelsScreenKt.LiteRtModelsScreen at line 160. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/LiteRtModelsScreen.kt"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa89a25aac45a0ab42bca77b6413fc659d09bc2c09910fdb1428035b64a9dc5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/harness/HarnessBridgeOperations.kt: app/src/main/java/com/example/llamadroid/harness/HarnessBridgeOperations.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 56 in HarnessBridgeOperations.invoke at line 104. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/harness/HarnessBridgeOperations.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessBridgeOperations.kt"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab34f6620e6a806cf21b5c5124de851c4e04c850a2c657cebad3a82c6c7aecb7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt: app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in VideoGenerationService.runGeneration at line 359. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d49c5740f91bd13e86243e47aff933087f6342e8a68ba92692e1089af042d40"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt: app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in OnnxModelsScreenKt.OnnxModelsScreen at line 154. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/OnnxModelsScreen.kt"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ea9d4b38f498d1020777c13cce1efe7894da63311f9e55d2fef3b8d132f37e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/VideoUpscalerScreen.kt: app/src/main/java/com/example/llamadroid/ui/ai/VideoUpscalerScreen.kt changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in VideoUpscalerScreenKt.VideoUpscalerScreen at line 46. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/VideoUpscalerScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoUpscalerScreen.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"68abf62f40f4ffe23ba30a1332dcfccdfed60f1f1d72904aada9c67315fac3c8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt: app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in AgentProjectControlPlane.permittedNextActions at line 3209. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":3209}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1db159a2d1888bbe91d0630aa59ba745f0c11bda22840acfb6a909f26683ce1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/VideoInterpolationScreen.kt: app/src/main/java/com/example/llamadroid/ui/ai/VideoInterpolationScreen.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in VideoInterpolationScreenKt.VideoInterpolationScreen at line 119. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/VideoInterpolationScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoInterpolationScreen.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"c529508124d4417b51c5c933ba3e057e60e07a27b31404cb33b8dca4be9e7849"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt: app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in TamaChatScreenKt.TamaChatScreen at line 90. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0148cd80904a48f9c0b1f359c4141abdc6c31487388243b0fdab47b8dcafbb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt: app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in AgentControlsKt.ConnectionStatusBar at line 637. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/AgentControls.kt"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"28bf05ea08a52069b3560ef7ff98e110e007c14041988d39f5c49ffcacdcdb21"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt: app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in LegacyUpscaleScreenKt.LegacyUpscaleScreen at line 113. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/LegacyUpscaleScreen.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c290c7ef73926dd4f58b5882cf3dd51369f5d49aef0e3121f6ed18f87869578"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/tama/game/TamaCanonicalActions.kt: app/src/main/java/com/example/llamadroid/tama/game/TamaCanonicalActions.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 72 in TamaCanonicalActions.request at line 28. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/tama/game/TamaCanonicalActions.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaCanonicalActions.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e6c217cc7404c3e3a79a6f369205b540a48321335cce14f5ab99fba5bfc821"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/VideoCommandBuilder.kt: app/src/main/java/com/example/llamadroid/service/VideoCommandBuilder.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 70 in VideoCommandBuilderKt.buildVideoCommandArgs at line 29. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/VideoCommandBuilder.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoCommandBuilder.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b47502e3073b7724c84f4c2aa498433982498b2e4e132fe5cb9bd4a420e7e3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/pdf/PDFSummaryScreen.kt: app/src/main/java/com/example/llamadroid/ui/pdf/PDFSummaryScreen.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in PDFSummaryScreenKt.PDFSummaryScreen at line 74. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/pdf/PDFSummaryScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFSummaryScreen.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"412ea971e936ec0ab64dfa1eaba59409d1aabfdf8db42894fd0e95e0e4007bf7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt: app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 70 in TermuxScreenKt.TermuxScreen at line 64. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"8933ca097319dfdc13bcf301f7d585fb26608a475072536e80547434599cc514"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/PDFService.kt: app/src/main/java/com/example/llamadroid/service/PDFService.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in PDFService.recognizeBitmapWithLlamaOcr at line 3461. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/PDFService.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":3461}}}],"partialFingerprints":{"codehealthFindingId/v1":"5acd7c73ef459bcb2da577d57fc7bc85c77fcf2e3ebc83020b7359bc24be7774"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/kiwix/ZimManagerScreen.kt: app/src/main/java/com/example/llamadroid/ui/kiwix/ZimManagerScreen.kt changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in ZimManagerScreenKt.InstalledZimsTab at line 182. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/kiwix/ZimManagerScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/kiwix/ZimManagerScreen.kt"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf4cd45ebd027374b87ade11ba42453c7f3f4e5c6c00f5371e0ab6d90a762e8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessComposer.kt: app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessComposer.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in HarnessComposerKt.HarnessComposer at line 264. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessComposer.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessComposer.kt"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27c5f0b5697aa7c5024572a69b8006b9595ba2f15b5ba4d15398f3e0bf432d6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/util/Downloader.kt: app/src/main/java/com/example/llamadroid/util/Downloader.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 61 in Downloader.download at line 38. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/util/Downloader.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/Downloader.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"624516a40ad6a0aee6520ab06b0388e2627ae11f6235fcf3503c0c4d388c84ea"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/WhisperService.kt: app/src/main/java/com/example/llamadroid/service/WhisperService.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in WhisperService.transcribe at line 139. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/WhisperService.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/WhisperService.kt"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e5928c6ece6075b901c9368ad9f35e400c07f1e99a6c10ad2dd1cf944e5394"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt: app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in CuratedModelBundleSectionKt.CuratedModelBundleCard at line 517. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/CuratedModelBundleSection.kt"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"185cd7bde978f1ed47ef44dd527c1a7611da837e509b20f92a5c71745293d0bc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/navigation/ExternalRouteResolver.kt: app/src/main/java/com/example/llamadroid/ui/navigation/ExternalRouteResolver.kt changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in ExternalRouteResolver.resolve at line 133. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/navigation/ExternalRouteResolver.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/navigation/ExternalRouteResolver.kt"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"333a1a97324373cab180c2e082af732ab26b97839f59691f5f2153339c4a9eaf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/OnnxBackgroundRemovalScreen.kt: app/src/main/java/com/example/llamadroid/ui/ai/OnnxBackgroundRemovalScreen.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in OnnxBackgroundRemovalScreenKt.OnnxBackgroundRemovalScreen at line 127. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/OnnxBackgroundRemovalScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxBackgroundRemovalScreen.kt"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"250178af1ce355c0ba357e39a49271e1a7c950f64efd0b6bb5177f3a0d7d29d8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/navigation/SoftStudioAppScaffold.kt: app/src/main/java/com/example/llamadroid/ui/navigation/SoftStudioAppScaffold.kt changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in SoftStudioAppScaffoldKt.SoftStudioAppScaffold at line 76. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/navigation/SoftStudioAppScaffold.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/navigation/SoftStudioAppScaffold.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"09068bb4012712a9cb4bc4d03088f451cec3f738fb97a6086a83a1ae773ecd4c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/TermuxFileManagerScreen.kt: app/src/main/java/com/example/llamadroid/ui/ai/TermuxFileManagerScreen.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in TermuxFileManagerScreenKt.TermuxFileManagerScreen at line 98. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/TermuxFileManagerScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/TermuxFileManagerScreen.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea398d206fdabdde4d6040af44980322f3f7cf5a16ce2d070cfe6fdf44f7153"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/LlamaServerLaunchProfile.kt: app/src/main/java/com/example/llamadroid/service/LlamaServerLaunchProfile.kt changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in LlamaServerLaunchProfile.migrateJson at line 390. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/LlamaServerLaunchProfile.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerLaunchProfile.kt"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e34013dc51437b142c8791a7bf8321d23e4d9913cbd78a413e8e2a1e6770b8f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/AIHubScreen.kt: app/src/main/java/com/example/llamadroid/ui/ai/AIHubScreen.kt changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in AIHubScreenKt.ToolsTab at line 135. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/AIHubScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/AIHubScreen.kt"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"8974094d7bc86fde7c6c7f99e96ffa395f0a280e832d7bf5e88f8c7cf258a756"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/chat/ChatScreen.kt: app/src/main/java/com/example/llamadroid/ui/chat/ChatScreen.kt changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ChatScreenKt.ChatScreen at line 74. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/chat/ChatScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/chat/ChatScreen.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"e444b8c8852a86280ac1efda3dfef1b9a5d66c94d656e3e6fe3a0486058ef653"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt: app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in KnowledgeBaseScreenKt.KnowledgeBaseScreen at line 122. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/knowledge/KnowledgeBaseScreen.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d96d38bea5064f586c2cc08d96f2b173b89ace37e885d135d1e1cc87e8cc8fc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt: app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in MangaTranslationSupport.preflight at line 756. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MangaTranslationSupport.kt"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"827a7558ccf3ca30679ede9abaf471b8d2a0641998f3f58739970c29fe18a8a6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt: app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in LlamaSchedulerScreenKt.LlamaScheduledTaskEditorDialog at line 652. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/LlamaSchedulerScreen.kt"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"519d24d35b723d82848684ce88e915cbfd6446626ab996b486a44899ddd23e0d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/FastsdGalleryScreen.kt: app/src/main/java/com/example/llamadroid/ui/ai/FastsdGalleryScreen.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in FastsdGalleryScreenKt.FastsdGalleryScreen at line 74. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/FastsdGalleryScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/FastsdGalleryScreen.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"0246c090615303b160c2cc9b2121a2ccc1e67bb2fcf50cb3fcfb8921e86cefaa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageItem.kt: app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageItem.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in ChatMessageItemKt.LlamaMessageItem at line 110. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageItem.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageItem.kt"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"17dcfef8e49580f747643f894bc56b441b9fb45def6cfcadf301d4fb28763797"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt: app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in BinaryRepository.findTieredBinary at line 785. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ce2504862e9702eaf578d2769b336c292d04aac3f004f549da2f8f93f37f5e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt: app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in TamaGameEngine.restoreTransferBundle at line 3523. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":3523}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a33f93d6c758102025d8af38f2175dc39ff946f72c9fe950e54423fdf0ffbb6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/distributed/WorkerModeScreen.kt: app/src/main/java/com/example/llamadroid/ui/distributed/WorkerModeScreen.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in WorkerModeScreenKt.WorkerModeScreen at line 75. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/distributed/WorkerModeScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/WorkerModeScreen.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e77f83b870c998471a93d799beca7311299c990ecacd465daeb8f2c2283e68"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/logs/LogsScreen.kt: app/src/main/java/com/example/llamadroid/ui/logs/LogsScreen.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in LogsScreenKt.LogsScreen at line 53. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/logs/LogsScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/logs/LogsScreen.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"beb8f4fda668ffe1cb70b92706d51952afa066356a54a73107e6f0c1d8a79e1e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/LlamaServerSessionService.kt: app/src/main/java/com/example/llamadroid/service/LlamaServerSessionService.kt changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in LlamaServerSessionService.onStartCommand at line 46. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/LlamaServerSessionService.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerSessionService.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0b84fc711c712010035427bb38be1d5fd4b32a00476cb32ef66c36142fb318"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt: wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in MainActivityKt.localizedTamaLocationLabel at line 3165. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/java/com/example/llamadroid/wear/MainActivity.kt"},"region":{"startLine":3165}}}],"partialFingerprints":{"codehealthFindingId/v1":"942b62b982777c12a13611f5bfdab66c7e839fb40939b46bf754df49933c74cd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/SubtitleBurnScreen.kt: app/src/main/java/com/example/llamadroid/ui/ai/SubtitleBurnScreen.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in SubtitleBurnScreenKt.SubtitleBurnScreen at line 71. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/SubtitleBurnScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SubtitleBurnScreen.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e605fb525fb4b361e48b65da430cd0d0d5807aaf686a8b2621cf576f45bf17"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/AgentForegroundService.kt: app/src/main/java/com/example/llamadroid/service/AgentForegroundService.kt changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in AgentForegroundService.onStartCommand at line 461. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/AgentForegroundService.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentForegroundService.kt"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b4207a7582bbc02d49de7c8e9cda92f617312483bedce269b94d5297be1277"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/audio/AudioGenerationService.kt: app/src/main/java/com/example/llamadroid/audio/AudioGenerationService.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in AudioGenerationService.localizeError at line 537. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/audio/AudioGenerationService.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/AudioGenerationService.kt"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"1939530385af25d4b6eed47523576bfabb72d9c321ff30dafc485e07c614297f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/OllamaService.kt: app/src/main/java/com/example/llamadroid/service/OllamaService.kt changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in OllamaService.performChatWithToolsStreaming at line 535. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/OllamaService.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/OllamaService.kt"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"9435bda218cd79f3700fe4083bed9a6f80dad9a99f6cef919ea3c71d8010fc8d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/LiveTranslatorScreen.kt: app/src/main/java/com/example/llamadroid/ui/ai/LiveTranslatorScreen.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in LiveTranslatorScreenKt.LiveTranslatorScreen at line 130. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/LiveTranslatorScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/LiveTranslatorScreen.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41905100c72cc7cac594417510b546eb00df52980afa1af06d1f3c72320629f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/tama/ui/AdventureScreen.kt: app/src/main/java/com/example/llamadroid/tama/ui/AdventureScreen.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in AdventureScreenKt.AdventureScreen at line 95. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/tama/ui/AdventureScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/AdventureScreen.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e374647d2f91866c85bcfc81b9ad74bf7735dd396e9349071aa8e41577c3385"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/tama/ui/FarmLivestockScreen.kt: app/src/main/java/com/example/llamadroid/tama/ui/FarmLivestockScreen.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in FarmLivestockScreenKt.FarmLivestockScreen at line 132. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/tama/ui/FarmLivestockScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/FarmLivestockScreen.kt"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e92931d7fc4347afaaad611f3e345eb5461af148bf1ec1d1370db5ec2aef859"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/harness/HarnessLocalModels.kt: app/src/main/java/com/example/llamadroid/harness/HarnessLocalModels.kt changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in HarnessLocalModels.streamLlamaServer at line 723. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/harness/HarnessLocalModels.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessLocalModels.kt"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"b93322c7c73fd4b991f3244017b1e8dc876c1954bd89ce471529f984b9c9d367"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/ServerProfileEditorScreen.kt: app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/ServerProfileEditorScreen.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in ServerProfileEditorScreenKt.ServerProfileEditorScreen at line 93. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/ServerProfileEditorScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/servers/ServerProfileEditorScreen.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8cb605490d468bb2f16f0f4e19fe22b3d534030eb6546f5c6310c484b0f37f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/tama/ui/StoreScreen.kt: app/src/main/java/com/example/llamadroid/tama/ui/StoreScreen.kt changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in StoreScreenKt.StoreItemRow at line 551. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/tama/ui/StoreScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/StoreScreen.kt"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f517c8f09eebb6f6ff392628ff536e3107b9fc13b94a1117b1bc4bf1169027f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessSettingsReader.kt: app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessSettingsReader.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in NativeHarnessSettingsReader.readModelCatalog at line 188. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessSettingsReader.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessSettingsReader.kt"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"266b4eaa5a5d49f5654f5b33486a48b926c93fe361335ddae0296f455eb73ee6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/LlamaServerSessionRuntime.kt: app/src/main/java/com/example/llamadroid/service/LlamaServerSessionRuntime.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in LlamaServerSessionRuntime.launchProcess at line 403. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/LlamaServerSessionRuntime.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerSessionRuntime.kt"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b2d2360159257c70a6c3d401d2c924ef4ba65c8442f44bf8d1b78cc1d1e9cf6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/OnnxTtsScreen.kt: app/src/main/java/com/example/llamadroid/ui/ai/OnnxTtsScreen.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in OnnxTtsScreenKt.OnnxTtsScreen at line 88. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/OnnxTtsScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxTtsScreen.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"75aa4c84036d316c1d37e21d4deb19ca05b8e076ca3c7253f975dea0545ca0dc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/ollama/OllamaManagerScreen.kt: app/src/main/java/com/example/llamadroid/ui/ai/ollama/OllamaManagerScreen.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in OllamaManagerScreenKt.OllamaManagerScreen at line 62. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/ollama/OllamaManagerScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/ollama/OllamaManagerScreen.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"410ded34a2688ae31406131978062c10fdd39ce8e271f03186ecf2ec59f01f89"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/components/RemoteSummaryBackendEditor.kt: app/src/main/java/com/example/llamadroid/ui/components/RemoteSummaryBackendEditor.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in RemoteSummaryBackendEditorKt.RemoteSummaryBackendEditor at line 75. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/components/RemoteSummaryBackendEditor.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/RemoteSummaryBackendEditor.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec555489a5e592242667363eb1b9cc51e9805be288b117bb1d7199568f8ab1f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/components/AppChrome.kt: app/src/main/java/com/example/llamadroid/ui/components/AppChrome.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in AppChromeKt.AppHubRow at line 478. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/components/AppChrome.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/AppChrome.kt"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1018feaa9d4e35d1407a10d9f50765bc052d83243d19d5c466d926faf3f1a00"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/components/DownloadTaskSection.kt: app/src/main/java/com/example/llamadroid/ui/components/DownloadTaskSection.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in DownloadTaskSectionKt.DownloadTaskCard at line 237. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/components/DownloadTaskSection.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/DownloadTaskSection.kt"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24db36013680cba17416869bc0a8a3d995fa3d7d1f55b656586a1d7067a791b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/audio/music/MusicWorkspace.kt: app/src/main/java/com/example/llamadroid/ui/audio/music/MusicWorkspace.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in MusicWorkspaceKt.MusicWorkspace at line 28. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/audio/music/MusicWorkspace.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/music/MusicWorkspace.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f427f71a6cdaba69b85159b6356569da197d0f809dbfe827e2dabaabedcc49"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessModelEditor.kt: app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessModelEditor.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in HarnessModelEditorKt.HarnessEditableModelRow at line 278. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessModelEditor.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessModelEditor.kt"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0bf40b7308f6f02611e57db3f5043a6527ee2ea276704a6fa04622fe3d1926"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkScreen.kt: app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkScreen.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in BenchmarkScreenKt.BenchmarkScreen at line 42. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/BenchmarkScreen.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5845a2e623e12c298bf425b9fd4fc877eb9aefaf21b8b34e4af05e840cf4d3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt: app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in ModelSourceRepository.startBundleDownloadQueue at line 1351. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelSourceRepository.kt"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"b228a6786d690c76aefaca06d08d481b311805cd06faf67992ad5c959c5ec8db"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/models/ModelShareScreen.kt: app/src/main/java/com/example/llamadroid/ui/models/ModelShareScreen.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ModelShareScreenKt.ModelShareScreen at line 53. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/models/ModelShareScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelShareScreen.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5e52220a031f2d7e60798ca1c1a027d4aaae18598bc098ae355d7c98d88872"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactFinalizer.kt: app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactFinalizer.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in ModelArtifactFinalizer.finalizePrepared at line 228. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactFinalizer.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactFinalizer.kt"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b359460179f99a400a1d920c4498b1439bc672e6487c03e7ffe771c78b5ad8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/llama/EasyLlamaChatUi.kt: app/src/main/java/com/example/llamadroid/ui/ai/llama/EasyLlamaChatUi.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in EasyLlamaChatUiKt.EasyLlamaChatEntryCard at line 221. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/llama/EasyLlamaChatUi.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/EasyLlamaChatUi.kt"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ae43f3a82f3edf595bcf950bb237fd352f57ce5784556f63b042aaef41c970"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatTopBar.kt: app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatTopBar.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in ChatTopBarKt.ChatTopBar at line 64. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatTopBar.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatTopBar.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"545218c9772d9f1676b1490f4a574042e39d59ada1f06382ecd5e91aeac1c2cc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/tama/game/ClassicFarmPlots.kt: app/src/main/java/com/example/llamadroid/tama/game/ClassicFarmPlots.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in ClassicFarmPlots.apply at line 70. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/tama/game/ClassicFarmPlots.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/ClassicFarmPlots.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"165a5a83094a8d867354ae99d524f0db822d63fc844656f157d85bbb473409dd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/harness/HarnessAppToolsSettings.kt: app/src/main/java/com/example/llamadroid/harness/HarnessAppToolsSettings.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in HarnessAppToolsSettingsKt.HarnessAppToolsSettingsDialog at line 54. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/harness/HarnessAppToolsSettings.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAppToolsSettings.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a25630b3f0d838fdbee172ebf05d3795f1c354483e85d8419c7b8a6feedd46d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/InpaintMaskEditor.kt: app/src/main/java/com/example/llamadroid/ui/ai/InpaintMaskEditor.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in InpaintMaskEditorKt.InpaintMaskEditorContent at line 148. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/InpaintMaskEditor.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/InpaintMaskEditor.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"8122c7c1b7dbe346707c8840971f37676b08548de908a0dafd6a97dccb3905ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt: app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in DatasetProjectScreenKt.DatasetProjectScreen at line 109. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/dataset/DatasetProjectScreen.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec77b4b454d26a9c05cafb8ec7bdba2861228ea5cc7c109e6b15298abcbefba"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/SdProgressSupport.kt: app/src/main/java/com/example/llamadroid/service/SdProgressSupport.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in SdProgressTracker.recognizePhase at line 222. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/SdProgressSupport.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdProgressSupport.kt"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6708539c9b7574667fd3f1059d46576abc13163df7b29e90426abd89a255124"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/kiwix/KiwixViewerScreen.kt: app/src/main/java/com/example/llamadroid/ui/kiwix/KiwixViewerScreen.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in KiwixViewerScreenKt.KiwixViewerScreen at line 48. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/kiwix/KiwixViewerScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/kiwix/KiwixViewerScreen.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2962cffeada10e5c5b1e0df7061d1721f045f66dccab124afd8084c1ebf5013"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/sd/SdPipelineResolver.kt: app/src/main/java/com/example/llamadroid/sd/SdPipelineResolver.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in SdPipelineResolver.resolve at line 118. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/sd/SdPipelineResolver.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdPipelineResolver.kt"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7e77e4e1e6d948d4d625e2830e1e867e870eb9a8ab8d18974ed937a4fe73ee"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/VideoSumupService.kt: app/src/main/java/com/example/llamadroid/service/VideoSumupService.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in VideoSumupService.transcribe at line 436. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/VideoSumupService.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoSumupService.kt"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4bccb3350e1bd0df6974b72c2c596d49dda1163eecc3290c02636e8109d0597"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/delegation/DelegationStatusFormatter.kt: app/src/main/java/com/example/llamadroid/service/delegation/DelegationStatusFormatter.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in DelegationStatusFormatter.statusText at line 38. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/delegation/DelegationStatusFormatter.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegationStatusFormatter.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9e688d96c9b902bf25b6dea45020e32ce7d248e74ce80f43dd31f107d902d4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/audio/music/StableAudio3WorkerClient.kt: app/src/main/java/com/example/llamadroid/audio/music/StableAudio3WorkerClient.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in StableAudio3WorkerClient.run at line 21. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/audio/music/StableAudio3WorkerClient.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/music/StableAudio3WorkerClient.kt"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3ea36142378bec6b358c8c53d542a057d761294a5ba0b9441984ac890b2b38"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatComposer.kt: app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatComposer.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ChatComposerKt.ChatComposer at line 144. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatComposer.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatComposer.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"47aeaa19c973490bf971c679f48f207f94c310813d05f0630c2768813d3eedf0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageList.kt: app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageList.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ChatMessageListKt.ChatMessageList at line 37. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageList.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatMessageList.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d25e3d819eb21463af2b962702673727e1825793235b625d9abb341e4f2fc8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/util/GGUFParser.kt: app/src/main/java/com/example/llamadroid/util/GGUFParser.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in GGUFParser.readModelInfo at line 39. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/util/GGUFParser.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/GGUFParser.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c27886905e49c9a06742fe8238236edcbab14f4cd571497b6a74140b41b61f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/ui/library/AllMediaGalleryScreen.kt: app/src/main/java/com/example/llamadroid/ui/library/AllMediaGalleryScreen.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in AllMediaGalleryScreenKt.AllMediaGalleryScreen at line 106. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/library/AllMediaGalleryScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/library/AllMediaGalleryScreen.kt"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54172e3846d75ecd44410d12a087766655db8d05a40e0ff22ce0866c2f949a5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/service/LiteRtTextGenerationClient.kt: app/src/main/java/com/example/llamadroid/service/LiteRtTextGenerationClient.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in LiteRtTextGenerationClient.streamSafely at line 153. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/LiteRtTextGenerationClient.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtTextGenerationClient.kt"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"642c64d4dc97f16fd0328ba438b1062fa45f1153214282511b8a5baf8e90e85e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactRecognizer.kt: app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactRecognizer.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in ModelArtifactRecognizer.validateAudio at line 519. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactRecognizer.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelArtifactRecognizer.kt"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"19db27153495a458b71844022958973be16a19131e12ed39d7339c906cbe1fad"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/java/com/example/llamadroid/data/model/DownloadTaskSupport.kt: app/src/main/java/com/example/llamadroid/data/model/DownloadTaskSupport.kt changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is DownloadTaskArtifacts.discoverStalePartFiles at line 139), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CFixed audio generation error and minor bugs in the download queue\u201D; \u201CImproved deepseek harness implementation, fully integrated with image generation through ADT and web search, synced projects created from the webUI and the app. Fixed a minor issue in image generation not being able to remove a selected image\u201D; \u201CFix for Qwen Image \u002B Minor deepseek ai agent fixes\u201D; \u201CFixed audio gen bugs and model type override by users\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/data/model/DownloadTaskSupport.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/DownloadTaskSupport.kt"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ac38cf4b27efc520ed4c652cfe13ee5f38d35625fb3a6bff98041a2619c151"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessCatalog.kt: app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessCatalog.kt changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is NativeHarnessCatalogKt.parseHarnessLocalModelCatalog at line 172), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CFix for multiple runtimes not showing ADT models correctly\u201D; \u201CEasy chat mode \u002B fixes for AI agent \u002B improved pet simulation\u201D; \u201CImproved deepseek harness implementation, fully integrated with image generation through ADT and web search, synced projects created from the webUI and the app. Fixed a minor issue in image generation not being able to remove a selected image\u201D; \u201CFix for Qwen Image \u002B Minor deepseek ai agent fixes\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessCatalog.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessCatalog.kt"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31a5d8526876003e7c88cf253e400d64daf98c8d0a92b985b5461ef0df84802"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/java/com/example/llamadroid/service/NativeChatKvCacheCoordinator.kt: app/src/main/java/com/example/llamadroid/service/NativeChatKvCacheCoordinator.kt changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is NativeChatKvCacheCoordinator.withUtilitySlot at line 177), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CAdded shimeji mode to the pet, changed farm style. fixed FGS error, fixed lingbot, wan errors when decoding video\u201D; \u201CFixed some chat llama native errors when handling the deepseek harness. Removed the pet simulated world. Fixed an issue with lingbot video generation. Updated binaries and in-app guide\u201D; \u201CFinal redesign. Fixed some issues in chat llama native delegating work to the harness and passing files from the main chat\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/service/NativeChatKvCacheCoordinator.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatKvCacheCoordinator.kt"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f34ea0cc2be96fcaac9d63741086a64d3f9f84714860f62166e921ec280f69"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/java/com/example/llamadroid/tama/db/TamaDatabase.kt: app/src/main/java/com/example/llamadroid/tama/db/TamaDatabase.kt changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 1 (its worst body is TamaDatabase.getInstance at line 58), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CAdded shimeji mode to the pet, changed farm style. fixed FGS error, fixed lingbot, wan errors when decoding video\u201D; \u201CFixed some chat llama native errors when handling the deepseek harness. Removed the pet simulated world. Fixed an issue with lingbot video generation. Updated binaries and in-app guide\u201D; \u201CFixed audio generation error and minor bugs in the download queue\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/tama/db/TamaDatabase.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/db/TamaDatabase.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"2203553c52e87bd9b7b22ab169a99dd9e1f1a9be89f1ee66833523b600bb867f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/java/com/example/llamadroid/ui/settings/ChatKvCacheStorageCard.kt: app/src/main/java/com/example/llamadroid/ui/settings/ChatKvCacheStorageCard.kt changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is ChatKvCacheStorageCardKt.namespaceLabelRes at line 162), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CAdded shimeji mode to the pet, changed farm style. fixed FGS error, fixed lingbot, wan errors when decoding video\u201D; \u201CFixed some chat llama native errors when handling the deepseek harness. Removed the pet simulated world. Fixed an issue with lingbot video generation. Updated binaries and in-app guide\u201D; \u201CFinal redesign. Fixed some issues in chat llama native delegating work to the harness and passing files from the main chat\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/settings/ChatKvCacheStorageCard.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/ChatKvCacheStorageCard.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"691d644382cb3702d1ec5b295cde5352dac43be21e8d5c74a0fab7aa6898284b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessUiModel.kt: app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessUiModel.kt changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 2 (its worst body is HarnessUiModelKt.boundedHarnessMessage at line 957), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CEasy chat mode \u002B fixes for AI agent \u002B improved pet simulation\u201D; \u201CImproved deepseek harness implementation, fully integrated with image generation through ADT and web search, synced projects created from the webUI and the app. Fixed a minor issue in image generation not being able to remove a selected image\u201D; \u201CFix for Qwen Image \u002B Minor deepseek ai agent fixes\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-02..2026-10-31, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-02 00:13:19 \u002B01:00\u0027 --until=\u00272026-10-31 00:13:19 \u002B01:00\u0027 --full-history --no-merges -- app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessUiModel.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/HarnessUiModel.kt"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"869f28cf4e8e604e349aefc19bfd345a68cf03dfa62ce1b3ebf6cc0691b4ec42"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // only collapses the runtime TODO projection; an explicitly legacy \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":1808}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd5640f2abb423094c8cf78662f0562b6c6e1ec83f79675ed9548714670f727"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060wear/build.gradle.kts\u0060 makes this repository a deployable product (line 2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/build.gradle.kts"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"281c74192b03110ebff3772ad8261b57a5c763fd41d3abd3cd7a8b90bbfe4b09"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060importSDModel\u0060 spells \u0060SD\u0060 where 292 names in the project spell it \u0060Sd\u0060: 292 of 296 names in project app spell the token \u0060Sd\u0060 (292 of 296; unit: names in project app containing \u0060Sd\u0060). Peers: SettingsRepository.setSdTxt2imgThreads (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:1765); SettingsRepository.setSdImg2imgThreads (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:1774); SettingsRepository.setSdUpscaleThreads (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:1783); SettingsRepository.setSdMaxCpuRamEnabled (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:2927); SettingsRepository.setSdMaxCpuRamGiB (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:2934). Rename to \u0060importSdModel\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/LocalModelImports.kt"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"541a4f5de9bbd3333a1675d38c2ee8fc43c9d178dfb37a68f73071bfd8ed88b8"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060getLLMModels\u0060 spells \u0060LLM\u0060 where 57 names in the project spell it \u0060Llm\u0060: 57 of 59 names in project app spell the token \u0060Llm\u0060 (57 of 59; unit: names in project app containing \u0060Llm\u0060). Peers: LlamaApplication.runRemovedLlmTrainingCleanupOnce (app/src/main/java/com/example/llamadroid/LlamaApplication.kt:239); LlamaApplication.cancelRemovedLlmTrainingWork (app/src/main/java/com/example/llamadroid/LlamaApplication.kt:258); LlamaApplication.removedLlmTrainingWorkIdsFromWorkDb (app/src/main/java/com/example/llamadroid/LlamaApplication.kt:266); LlamaApplication.deleteRemovedLlmTrainingRuntimeFiles (app/src/main/java/com/example/llamadroid/LlamaApplication.kt:293); SettingsRepository._selectedLlmLoras (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:775). Rename to \u0060getLlmModels\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d3d2fd9762c6f9e4fc9624b09756a0fb48b67909d342c4791cfe0727dcc41e"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060callLLM\u0060 spells \u0060LLM\u0060 where 57 names in the project spell it \u0060Llm\u0060: 57 of 59 names in project app spell the token \u0060Llm\u0060 (57 of 59; unit: names in project app containing \u0060Llm\u0060). Peers: LlamaApplication.runRemovedLlmTrainingCleanupOnce (app/src/main/java/com/example/llamadroid/LlamaApplication.kt:239); LlamaApplication.cancelRemovedLlmTrainingWork (app/src/main/java/com/example/llamadroid/LlamaApplication.kt:258); LlamaApplication.removedLlmTrainingWorkIdsFromWorkDb (app/src/main/java/com/example/llamadroid/LlamaApplication.kt:266); LlamaApplication.deleteRemovedLlmTrainingRuntimeFiles (app/src/main/java/com/example/llamadroid/LlamaApplication.kt:293); SettingsRepository._selectedLlmLoras (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:775). Rename to \u0060callLlm\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DatasetProcessor.kt"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"56460bc747c0e1645e579108b6aa2c67e3e33e964d9af337ae4d74dc3a7a35a3"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060performOCR\u0060 spells \u0060OCR\u0060 where 188 names in the project spell it \u0060Ocr\u0060: 188 of 189 names in project app spell the token \u0060Ocr\u0060 (188 of 189; unit: names in project app containing \u0060Ocr\u0060). Peers: PdfTranslationOptionsSnapshot.bubbleGuidedOcrEnabled (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:91); PdfTranslationOptionsSnapshot.llamaOcr (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:92); com.example.llamadroid.data.PdfOcrProvider (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:101); com.example.llamadroid.data.LlamaOcrPromptPreset (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:106); com.example.llamadroid.data.LlamaOcrSettingsSnapshot (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:163). Rename to \u0060performOcr\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":7599}}}],"partialFingerprints":{"codehealthFindingId/v1":"1537b71442624de77f5eac8dd10bcb8aeab1a5582096773c81f52a79c6d88d52"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060startSDServer\u0060 spells \u0060SD\u0060 where 292 names in the project spell it \u0060Sd\u0060: 292 of 296 names in project app spell the token \u0060Sd\u0060 (292 of 296; unit: names in project app containing \u0060Sd\u0060). Peers: SettingsRepository.setSdTxt2imgThreads (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:1765); SettingsRepository.setSdImg2imgThreads (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:1774); SettingsRepository.setSdUpscaleThreads (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:1783); SettingsRepository.setSdMaxCpuRamEnabled (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:2927); SettingsRepository.setSdMaxCpuRamGiB (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:2934). Rename to \u0060startSdServer\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SDEnvironmentService.kt"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"3082eafe64a93631661e0919883b667ea2020ff1549f9aff8004c2e9e17347e0"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060stopSDServer\u0060 spells \u0060SD\u0060 where 292 names in the project spell it \u0060Sd\u0060: 292 of 296 names in project app spell the token \u0060Sd\u0060 (292 of 296; unit: names in project app containing \u0060Sd\u0060). Peers: SettingsRepository.setSdTxt2imgThreads (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:1765); SettingsRepository.setSdImg2imgThreads (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:1774); SettingsRepository.setSdUpscaleThreads (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:1783); SettingsRepository.setSdMaxCpuRamEnabled (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:2927); SettingsRepository.setSdMaxCpuRamGiB (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:2934). Rename to \u0060stopSdServer\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SDEnvironmentService.kt"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"32fddc33281f2032f7ec8f4622902dc05e67613026490adb7fef412147a86e0d"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060InstalledSDModelsTab\u0060 spells \u0060SD\u0060 where 292 names in the project spell it \u0060Sd\u0060: 292 of 296 names in project app spell the token \u0060Sd\u0060 (292 of 296; unit: names in project app containing \u0060Sd\u0060). Peers: SettingsRepository.setSdTxt2imgThreads (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:1765); SettingsRepository.setSdImg2imgThreads (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:1774); SettingsRepository.setSdUpscaleThreads (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:1783); SettingsRepository.setSdMaxCpuRamEnabled (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:2927); SettingsRepository.setSdMaxCpuRamGiB (app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt:2934). Rename to \u0060InstalledSdModelsTab\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SDModelsScreen.kt"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"1263615352e6eac0c3e775b0e96050d35eb286e29609c1f53767d69b88883885"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060app\u0060 (511158 LoC, 7517 module-visible types across 95 directories) overshoots its size bounds. 1 of 4 build unit(s) (Gradle) overshoot their size bounds, lowering Project Cohesion to 5.0/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/build.gradle.kts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c9ca2f4e1cbcc84bf010a889b5e2cd34ca985c674f80891b0f288e779770d1"}},{"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":"703b990f6d9a60db46de372b4bc3713bc769740b61be7dfed2b23b523664ac12"},"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":"04cc6ef8b2713c5ae671a21c5adfc62ed3d32eec231bd27236ea49e066082d50"},"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":"c8381cdd9539330ccdf5f2819fb2f0ec8e0d20d645b1467a3e5e48700a37b69b"},"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":"bc26593caf509b487cb3dff9d1a587737a02c72fc5e13e59c1a151f7d6412ad4"},"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":"baa151beff35ac46ee2536907cc918a207da07c42b004fec4c9aab8d58a6df6d"},"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":"ebac61d292e4757946ff83f15293e2fa751db1ae0044345ec1ca160a7804b230"},"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":"ddc49ef52c93f5d89390c80bf8f0444bb97743496eeea781d1b7fcf904a3ea48"},"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":"b7e67286c3ac9bf8ce0e14b33e97832e7e17f704c68a703429f6a346d2c6115f"},"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":"565cb0a25235d1502010c8d34a025c6ae5aeb826c7d5e305b97bb45399050c67"},"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":"fdd80ff4efa055538dc59aafc5e380459b7d05030fbc7ee936f19fa678b3e896"},"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":"f79e7949478a3d14b77b93a133b034c4616256b1e5c70e22b852731b7317348d"},"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":"38191a996888f8f51b6c54588adfb3af91838a00724a75ef430060a5c4ece6d8"},"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":"10077c0a89404646c4cf34352a5fd65d0162f3fed4c042a353f2951e585d01aa"},"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":"1a7a1b11ef1de28b8d7d77f192252a4b2c0f072849caa985739760958f620675"},"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":"c0b234540f22933e12b01b93058c5ca99d497cf272cb044bcc6d0e0883823019"},"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":"c7106ad4864c9239e0baf48f471380817c4e918d3f8707464022cc1a2b58d8b4"},"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":"1fb4170c086910a92a5a4f0d741efe3b509cde7ba8976c9bffcb8ec4acc13d9e"},"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":"1c56c2d82ddaea6f0a551f06ed897fa1dff02ce25c95c987cefffc8302821e82"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"e3bab489c24032cd7e10e8db515570b7045ae9062fcd7fa549e85d038f2cbb29"},"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":"32e03613fd41cb98a64918fe57541f299619b898c2f2c515f8f875a69841a816"},"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":"59b15eb1e77798125cd02ed6ef2d8361b34d2b12c8b90e6664c304bebbc15158"},"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":"037c17d4ec7c5c1da289d9a6a42203abc865b508121f9306669c3a7ca8af8f3c"},"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":"5bf97d22c350f10c20349ac0406eabd17a8e84ee7bb81685970e177917e73a65"},"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":"232129b9cbf09f4faf23108882fafddc1f5f41951b3869ac224ab5b308fa6fa6"},"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":"408b5448309e1c82cc8e5a84a538f79a3ab66c8c7412df64a4f6bd611c31af07"},"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":"bec0e583f0f4257bf0901e57576cf30840216be380273ec4a0282b69d0016e2a"},"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":"5e3019cebe9b1973ccf77172df4ef02884a57c35014ff280e735660473d2f7ed"},"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":"af369127178e55cb0ccd29112b90d6e8215f2f6c87fe4a62da849ec0d2c95bbd"},"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":"671a8147fb25254bf07e163991d3b21d750955df08cda6888a158ee878522028"},"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":"6058f98205ff5cd95074306fb2c50ebee07290ff1f786cf037b0748856d6de51"},"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":"0a18462b6d7ab3c9d9af40f64293e1755a5d8c7b0f01cf3917021c59fb8b6fe6"},"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":"0a2cd5eb5c425be12075b7f35b47f061bd9428dc4f539f079484e5a30f144898"},"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":"967221cb22166f13591531427ab994092e0861564f7b7a1a70e4fc2825ab6e5f"},"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":"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":"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":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"privacy-policy.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ef91fdae3a1cc78a88874680d970f4badc99c877088db38000cb9d1781b57d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.main\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/file_station_webui/css/app.css"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fef98c956a4432062a00ae51e89bdad8c21cb575a15c552d30d6e4494059ce1"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.upload-progress div\u0060 moves (\u0060transition: width 160ms ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/ai_servers_webui/styles.css"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79709899b2e80c43528f60c7e3cca9751c66ad4d7823ef738003255371d4511"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.progress-track div\u0060 moves (\u0060transition: width 220ms ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/ai_servers_webui/styles.css"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e9c4db6b4c6b62ef9068300f80a76e96bfde7d98c8c066a5850d5db082f626"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.hub-server-card\u0060 moves (\u0060transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/ai_servers_webui/styles.css"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0259521d76783b559d2fa8809fd2508b7f614bbc003bdaad55add0eae25222e"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: AudioDao (23 abstract methods): \u0060AudioDao\u0060 declares 23 abstract methods: \u0060observeVoiceProfiles\u0060, \u0060getVoiceProfiles\u0060, \u0060getVoiceProfile\u0060, \u0060insertVoiceProfile\u0060, \u0060updateVoiceProfile\u0060, \u0060deleteVoiceProfile\u0060, \u0060observeJobs\u0060, \u0060observeUiJobs\u0060, \u0060observeJob\u0060, \u0060observeHistory\u0060, \u0060getJob\u0060, \u0060getClaimedJobs\u0060, \u0060getNextQueuedJob\u0060, \u0060claimQueuedJob\u0060, \u0060insertJob\u0060, \u0060updateJob\u0060, \u0060deleteJob\u0060, \u0060markRecoverableJobsInterrupted\u0060, \u0060requeueJob\u0060, \u0060markCancelling\u0060, \u0060cancelQueuedJob\u0060, \u0060getActiveJob\u0060, \u0060getJobsForVoice\u0060. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/AudioEntities.kt"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"d649ca689ee4cd8c58314ac5d5d0602e0e0ccaae62bead87c8869acdf8dcb782"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: AudioLibraryDao (27 abstract methods): \u0060AudioLibraryDao\u0060 declares 27 abstract methods: \u0060observeItemsPage\u0060, \u0060observeItemCount\u0060, \u0060matchingItemIds\u0060, \u0060getItem\u0060, \u0060getItems\u0060, \u0060getItemsInFolders\u0060, \u0060observeAllItems\u0060, \u0060getItemsByOriginKeys\u0060, \u0060insertItems\u0060, \u0060insertItem\u0060, \u0060updateItem\u0060, \u0060moveItems\u0060, \u0060renameItem\u0060, \u0060deleteItem\u0060, \u0060observeFolders\u0060, \u0060getFolders\u0060, \u0060getFolder\u0060, \u0060observeChildFolders\u0060, \u0060findFolderByName\u0060, \u0060insertFolder\u0060, \u0060updateFolder\u0060, \u0060deleteFolder\u0060, \u0060countChildFolders\u0060, \u0060countItemsInFolder\u0060, \u0060getPreferences\u0060, \u0060observePreferences\u0060, \u0060upsertPreferences\u0060. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/library/AudioLibraryEntities.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7c5249a2a85138068bd0850ad589ff9e017932f1e583187f17952fc13af006"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: LlamaChatDao (23 abstract methods): \u0060LlamaChatDao\u0060 declares 23 abstract methods: \u0060getAllChats\u0060, \u0060getEasyChats\u0060, \u0060getPinnedAiHubChats\u0060, \u0060getChatById\u0060, \u0060observeChatById\u0060, \u0060getExpiredEphemeralChats\u0060, \u0060insertChat\u0060, \u0060deleteChat\u0060, \u0060bindChatServer\u0060, \u0060bindChatServerIfUnbound\u0060, \u0060clearChatServerBinding\u0060, \u0060setPersistKvCache\u0060, \u0060getChatsBoundToServer\u0060, \u0060observeBoundChatCounts\u0060, \u0060updateTitle\u0060, \u0060updateContextSize\u0060, \u0060updateLastModified\u0060, \u0060updateSystemPrompt\u0060, \u0060updateApiParams\u0060, \u0060updateFolder\u0060, \u0060clearFolder\u0060, \u0060updateAiHubPin\u0060, \u0060deleteEphemeralChatById\u0060. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/dao/LlamaDaos.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1589d4d758ce656fe923615b8b65f8478074af2b23aaab8531bc794f170dc97"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: LlamaScheduledTaskDao (23 abstract methods): \u0060LlamaScheduledTaskDao\u0060 declares 23 abstract methods: \u0060getAllTasks\u0060, \u0060getTaskById\u0060, \u0060getDueTasks\u0060, \u0060getEnabledFutureTasks\u0060, \u0060insertTask\u0060, \u0060updateTask\u0060, \u0060deleteTaskById\u0060, \u0060setTaskEnabled\u0060, \u0060updateTaskRunState\u0060, \u0060getRecentLogs\u0060, \u0060getLogsForTask\u0060, \u0060getLogById\u0060, \u0060deleteLogById\u0060, \u0060deleteLogsByIds\u0060, \u0060deleteAllLogs\u0060, \u0060findLogByTaskScheduleAndStatus\u0060, \u0060getLogsByStatus\u0060, \u0060insertLog\u0060, \u0060updateLog\u0060, \u0060markLogRunning\u0060, \u0060markLogSuccess\u0060, \u0060markLogFailure\u0060, \u0060markLogSkipped\u0060. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/dao/LlamaDaos.kt"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"23992fee4548c21140809107a4aaab3092a6903470f632ef47683ae00366fdc3"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: LlamaServerCardDao (16 abstract methods): \u0060LlamaServerCardDao\u0060 declares 16 abstract methods: \u0060observeCards\u0060, \u0060getCard\u0060, \u0060countOtherCardsUsingPreset\u0060, \u0060getEasyCard\u0060, \u0060getWearStartCard\u0060, \u0060observeWearStartCard\u0060, \u0060clearWearStartFlags\u0060, \u0060markWearStartCard\u0060, \u0060insertCard\u0060, \u0060updateCardRow\u0060, \u0060deleteCard\u0060, \u0060deleteCardById\u0060, \u0060updateName\u0060, \u0060updateSavedCommand\u0060, \u0060updatePortRow\u0060, \u0060updateLinkedPort\u0060. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/dao/LlamaServerCardDao.kt"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b301ca25c9229e6e6c1bbf2d6f2e175c36a6efb536b66119b6a9dc82d7bd168"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: NativeChatDelegateTaskDao (25 abstract methods): \u0060NativeChatDelegateTaskDao\u0060 declares 25 abstract methods: \u0060getIdsForChat\u0060, \u0060getById\u0060, \u0060observeById\u0060, \u0060getLatestForChat\u0060, \u0060observeLatestForChat\u0060, \u0060observeForChat\u0060, \u0060getInStates\u0060, \u0060getForChatInStates\u0060, \u0060getWithScheduledChecks\u0060, \u0060getWithPendingWakes\u0060, \u0060getByHarnessSession\u0060, \u0060getLatestWithWorkspace\u0060, \u0060insert\u0060, \u0060update\u0060, \u0060setState\u0060, \u0060setStateWithError\u0060, \u0060updateCounters\u0060, \u0060setOptions\u0060, \u0060setProgressNote\u0060, \u0060setDigest\u0060, \u0060setScheduledCheck\u0060, \u0060setPendingWake\u0060, \u0060claimPendingWake\u0060, \u0060countInStates\u0060, \u0060countForChatInStates\u0060. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/dao/NativeChatDelegationDaos.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b7cadc7ac5e5807ba114b306da8e414d3f4e71ef4c5e62cb92ef5aafbea5b80"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: NativeChatDelegateMessageDao (16 abstract methods): \u0060NativeChatDelegateMessageDao\u0060 declares 16 abstract methods: \u0060getForTask\u0060, \u0060observeForTask\u0060, \u0060getActiveForTask\u0060, \u0060observeForTaskWithRoles\u0060, \u0060maxSeq\u0060, \u0060insert\u0060, \u0060getUndeliveredMainToSub\u0060, \u0060getUndeliveredSubToMain\u0060, \u0060getStatusSubMessage\u0060, \u0060taskIdsWithUndeliveredSubToMain\u0060, \u0060markDelivered\u0060, \u0060markSubToMainDelivered\u0060, \u0060seqOf\u0060, \u0060latestMainToSubContent\u0060, \u0060markCompactedThrough\u0060, \u0060retireOlderSummaries\u0060. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/dao/NativeChatDelegationDaos.kt"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91c3d43b3e6dc8fc8d8868b6c992ac0642e5dbdd9ea52aa5be39be0d2f91a9a"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: AgentChatDao (65 abstract methods): \u0060AgentChatDao\u0060 declares 65 abstract methods: \u0060getAllConversations\u0060, \u0060getProjectFolders\u0060, \u0060getConversation\u0060, \u0060observeConversation\u0060, \u0060insertConversationDirect\u0060, \u0060updateConversationDirect\u0060, \u0060deleteConversation\u0060, \u0060deleteConversationById\u0060, \u0060updateConversationTitle\u0060, \u0060updateConversationProjectMetadata\u0060, \u0060moveConversationToFolder\u0060, \u0060updateConversationSortOrder\u0060, \u0060updatePlanningMode\u0060, \u0060updateExecutionProfileDirect\u0060, \u0060normalizeAllExecutionProfiles\u0060, \u0060getConversationsNeedingDirectReanchor\u0060, \u0060updateResumeState\u0060, \u0060updateResumeStateIfIdle\u0060, \u0060touchConversation\u0060, \u0060updatePreviewUrlOverride\u0060, \u0060updateConversationState\u0060, \u0060updateKnowledgeBaseIds\u0060, \u0060updateRuntimeSettings\u0060, \u0060insertProjectFolder\u0060, \u0060updateProjectFolder\u0060, \u0060deleteProjectFolderById\u0060, \u0060getProjectFolder\u0060, \u0060renameProjectFolder\u0060, \u0060moveProjectFolder\u0060, \u0060updateProjectFolderSortOrder\u0060, \u0060updateProjectFolderCollapsed\u0060, \u0060getMessagesForConversation\u0060, \u0060getMessagesForConversationSync\u0060, \u0060getRecentMessagesForConversation\u0060, \u0060getRecentMessagesForConversationSync\u0060, \u0060getOlderMessagesForConversation\u0060, \u0060getNewerMessagesForConversation\u0060, \u0060getMessageByOriginalId\u0060, \u0060getToolMessage\u0060, \u0060cancelPendingToolApprovals\u0060, and 25 more. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentChatDao.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd32e79387b6d9768a689d18456fd01940875b663f1033420cc4f1766a413afa"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: AgentWorkflowDao (146 abstract methods): \u0060AgentWorkflowDao\u0060 declares 146 abstract methods: \u0060getConversationForDirectReanchor\u0060, \u0060archiveStaleSpecialistInvocations\u0060, \u0060closeStaleTurnContexts\u0060, \u0060cancelStalePendingInputs\u0060, \u0060cancelStaleContinuations\u0060, \u0060cancelStalePendingQuestions\u0060, \u0060cancelStalePendingPlans\u0060, \u0060cancelStaleMessageApprovals\u0060, \u0060cancelStaleSleepWakes\u0060, \u0060releaseStaleTodoAssignments\u0060, \u0060updateProjectStateForDirectReanchor\u0060, \u0060completeDirectReanchor\u0060, \u0060upsertSleepWake\u0060, \u0060getSleepWake\u0060, \u0060getSleepWakeForConversation\u0060, \u0060getPendingSleepWakes\u0060, \u0060claimSleepWake\u0060, \u0060completeSleepWake\u0060, \u0060cancelSleepWakeForConversation\u0060, \u0060upsertMessagePart\u0060, \u0060upsertMessageParts\u0060, \u0060observeMessageParts\u0060, \u0060observeMessagePartsForInvocation\u0060, \u0060getMessageParts\u0060, \u0060deleteMessageParts\u0060, \u0060deleteMessagePartsAtOrAfter\u0060, \u0060deleteMessagePartsForConversation\u0060, \u0060upsertTurnContext\u0060, \u0060getTurnContext\u0060, \u0060getLatestTurnContext\u0060, \u0060getLatestOpenTurnContext\u0060, \u0060finishTurnContext\u0060, \u0060upsertSkill\u0060, \u0060observeSkills\u0060, \u0060getEnabledSkills\u0060, \u0060getSkill\u0060, \u0060deleteSkill\u0060, \u0060upsertSkillAssignment\u0060, \u0060resolveSkillAssignment\u0060, \u0060observeSkillAssignments\u0060, and 106 more. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentWorkflowDao.kt"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"30cfa62637229af214819213486f8fc4c0e54875aefbb8a868104a6389469d0c"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: AiServerDao (55 abstract methods): \u0060AiServerDao\u0060 declares 55 abstract methods: \u0060observeConfigs\u0060, \u0060getConfigs\u0060, \u0060getConfig\u0060, \u0060upsertConfig\u0060, \u0060upsertConfigs\u0060, \u0060setServerEnabled\u0060, \u0060observeUsers\u0060, \u0060getUsers\u0060, \u0060getUserByUsername\u0060, \u0060getUserById\u0060, \u0060upsertUser\u0060, \u0060deleteUser\u0060, \u0060observePermissions\u0060, \u0060getPermissionsForUser\u0060, \u0060getPermission\u0060, \u0060upsertPermission\u0060, \u0060upsertPermissions\u0060, \u0060upsertSession\u0060, \u0060getSession\u0060, \u0060deleteSession\u0060, \u0060deleteExpiredSessions\u0060, \u0060upsertArtifact\u0060, \u0060observeArtifactsForServer\u0060, \u0060observeArtifactsByType\u0060, \u0060observeServerArtifactPathsByType\u0060, \u0060getArtifactsForServer\u0060, \u0060getArtifactById\u0060, \u0060deleteArtifactByPath\u0060, \u0060deleteArtifactById\u0060, \u0060getWebProviders\u0060, \u0060getWebProvidersForOwner\u0060, \u0060getWebProvider\u0060, \u0060getWebProviderForOwner\u0060, \u0060upsertWebProvider\u0060, \u0060deleteWebProvider\u0060, \u0060getWebChats\u0060, \u0060getWebChatsForOwner\u0060, \u0060getWebChat\u0060, \u0060getWebChatForOwner\u0060, \u0060upsertWebChat\u0060, and 15 more. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AiServerEntities.kt"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a33b3039e28c4626782f5bdff0cb7fa857e054a633c011b8ab712ff0f633d54"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: AppDatabase (55 abstract methods): \u0060AppDatabase\u0060 declares 55 abstract methods: \u0060modelLibraryDao\u0060, \u0060modelDao\u0060, \u0060chatDao\u0060, \u0060systemPromptDao\u0060, \u0060noteDao\u0060, \u0060zimDao\u0060, \u0060savedWorkerDao\u0060, \u0060savedCommandDao\u0060, \u0060llamaServerCardDao\u0060, \u0060workflowTemplateDao\u0060, \u0060benchmarkDao\u0060, \u0060datasetDao\u0060, \u0060agentChatDao\u0060, \u0060agentProotEnvironmentDao\u0060, \u0060agentProotRunDao\u0060, \u0060harnessDao\u0060, \u0060harnessTransferDao\u0060, \u0060harnessInstallationDao\u0060, \u0060agentWorkflowDao\u0060, \u0060customToolDao\u0060, \u0060customAgentDao\u0060, \u0060agentRuntimeProfileDao\u0060, \u0060agentRuntimeEndpointConfigDao\u0060, \u0060ollamaServerDao\u0060, \u0060aiRuntimeJobDao\u0060, \u0060llamaServerDao\u0060, \u0060llamaChatFolderDao\u0060, \u0060llamaChatPromptProfileDao\u0060, \u0060llamaChatDao\u0060, \u0060llamaMessageDao\u0060, \u0060nativeChatDelegateTaskDao\u0060, \u0060nativeChatDelegateMessageDao\u0060, \u0060nativeChatDelegateEventDao\u0060, \u0060llamaMessageAttachmentDao\u0060, \u0060nativeChatCompactionDao\u0060, \u0060llamaMessageImageDescriptionDao\u0060, \u0060llamaScheduledTaskDao\u0060, \u0060llamaSpeculativeRunDao\u0060, \u0060organizerDao\u0060, \u0060quadtrixProfileDao\u0060, and 15 more. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AppDatabase.kt"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1271d9cbf2ec187373af8edf864e0d047445ec5281de023d9d3f051e3999c7"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: DatasetDao (49 abstract methods): \u0060DatasetDao\u0060 declares 49 abstract methods: \u0060getAllProjects\u0060, \u0060getProjectFlow\u0060, \u0060getProject\u0060, \u0060insertProject\u0060, \u0060updateProject\u0060, \u0060deleteProject\u0060, \u0060getSourcesForProject\u0060, \u0060getSourcesForProjectSync\u0060, \u0060getSource\u0060, \u0060getSourceByProjectAndUri\u0060, \u0060insertSource\u0060, \u0060updateSource\u0060, \u0060deleteSource\u0060, \u0060getSourceCount\u0060, \u0060getChunksForProject\u0060, \u0060getChunksForProjectSync\u0060, \u0060getChunksForSource\u0060, \u0060getChunk\u0060, \u0060getChunksByStatus\u0060, \u0060insertChunk\u0060, \u0060insertChunks\u0060, \u0060updateChunk\u0060, \u0060deleteChunk\u0060, \u0060deleteChunksByIds\u0060, \u0060deleteChunksForSource\u0060, \u0060getChunkCount\u0060, \u0060getChunkCountForSource\u0060, \u0060getQAForProject\u0060, \u0060getQAForProjectSync\u0060, \u0060getQAForChunk\u0060, \u0060getQA\u0060, \u0060getQAByMinScore\u0060, \u0060getUnratedQA\u0060, \u0060getQAByStatus\u0060, \u0060insertQA\u0060, \u0060insertQAs\u0060, \u0060updateQA\u0060, \u0060deleteQA\u0060, \u0060deleteQAForChunk\u0060, \u0060getQACount\u0060, and 9 more. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/DatasetDao.kt"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4ec1dacb266bb25799b4b3bfc1b67489a26cb199cf65717684568b890883d7"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: GenerationQueueDao (19 abstract methods): \u0060GenerationQueueDao\u0060 declares 19 abstract methods: \u0060observeQueue\u0060, \u0060historyPagingSource\u0060, \u0060observePendingCount\u0060, \u0060pendingCount\u0060, \u0060observeRunSummary\u0060, \u0060runSummary\u0060, \u0060observeControl\u0060, \u0060getControl\u0060, \u0060getItem\u0060, \u0060nextPending\u0060, \u0060pendingOrder\u0060, \u0060updatePendingOrder\u0060, \u0060assignRunToPending\u0060, \u0060runningItems\u0060, \u0060maxSortOrder\u0060, \u0060putItem\u0060, \u0060updateItem\u0060, \u0060deletePending\u0060, \u0060putControl\u0060. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/GenerationQueueEntities.kt"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d424d206bdd0463b87092047d819dcf8ac4a0a3881e11edcd9d825e95602d9f"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: HarnessDao (20 abstract methods): \u0060HarnessDao\u0060 declares 20 abstract methods: \u0060runtime\u0060, \u0060observeRuntime\u0060, \u0060observeRuntimes\u0060, \u0060activeRuntimes\u0060, \u0060deleteRuntime\u0060, \u0060saveRuntime\u0060, \u0060observeWorkspaces\u0060, \u0060workspaces\u0060, \u0060workspace\u0060, \u0060workspaceForRoot\u0060, \u0060saveWorkspaceForRuntime\u0060, \u0060deleteUnreferencedWorkspace\u0060, \u0060session\u0060, \u0060sessionForConversation\u0060, \u0060observeSessions\u0060, \u0060saveSessionForRuntime\u0060, \u0060observeLegacyConversations\u0060, \u0060conversations\u0060, \u0060legacyMessagePreviews\u0060, \u0060legacyMessageChunk\u0060. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/HarnessDao.kt"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"717b0575b43c3fa65969d9bfda550382ec654ddd6890682eeffa82d8dc4b4810"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: HarnessInstallationDao (17 abstract methods): \u0060HarnessInstallationDao\u0060 declares 17 abstract methods: \u0060observeAll\u0060, \u0060getAll\u0060, \u0060getById\u0060, \u0060observeById\u0060, \u0060insert\u0060, \u0060update\u0060, \u0060markReady\u0060, \u0060updateSize\u0060, \u0060deleteById\u0060, \u0060deleteConversationsForRuntime\u0060, \u0060deleteRuntimeJobsForRuntime\u0060, \u0060deleteSessionsForRuntime\u0060, \u0060deleteWorkspacesForRuntime\u0060, \u0060deleteTransferReceiptsForRuntime\u0060, \u0060countExternalRuntimeReferences\u0060, \u0060deleteRuntimeProcessRow\u0060, \u0060deleteEnvironmentIfUnreferenced\u0060. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/HarnessInstallationDao.kt"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6145518521db2cbee7be96131d5ce23057a1390ab606baa758a50097ee2ed876"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: KnowledgeBaseDao (44 abstract methods): \u0060KnowledgeBaseDao\u0060 declares 44 abstract methods: \u0060observeKnowledgeBases\u0060, \u0060getKnowledgeBasesOnce\u0060, \u0060getKnowledgeBase\u0060, \u0060getKnowledgeBaseByName\u0060, \u0060getKnowledgeBasesByIds\u0060, \u0060insertKnowledgeBase\u0060, \u0060updateKnowledgeBase\u0060, \u0060deleteKnowledgeBaseById\u0060, \u0060observeSources\u0060, \u0060getSourcesOnce\u0060, \u0060getAllSourcesOnce\u0060, \u0060getSource\u0060, \u0060getSourcesByIds\u0060, \u0060getSourceByRef\u0060, \u0060insertSource\u0060, \u0060updateSource\u0060, \u0060deleteSource\u0060, \u0060deleteSourceById\u0060, \u0060setSourceEnabled\u0060, \u0060updateSourceProgress\u0060, \u0060markIndexedSourcesStaleForConfig\u0060, \u0060deleteChunksForSource\u0060, \u0060insertChunks\u0060, \u0060updateChunkEmbedding\u0060, \u0060getSearchableChunks\u0060, \u0060getChunk\u0060, \u0060getChunksForSource\u0060, \u0060getChunksForSourcePaged\u0060, \u0060getChunksMissingEmbedding\u0060, \u0060getNeighborChunks\u0060, \u0060observeKnowledgeBaseCount\u0060, \u0060getKnowledgeBaseCount\u0060, \u0060observeSourceCount\u0060, \u0060observeSourceCountExcluding\u0060, \u0060observeChunkCount\u0060, \u0060observeChunkCountExcluding\u0060, \u0060observeErrorSourceCount\u0060, \u0060observeErrorSourceCountExcluding\u0060, \u0060observePendingSourceCount\u0060, \u0060observePendingSourceCountExcluding\u0060, and 4 more. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/KnowledgeBaseDao.kt"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfcbb83d7b8b848c62f875373026254750a2f4c610c43842025c79bd5cbd1bb3"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: ModelLibraryDao (35 abstract methods): \u0060ModelLibraryDao\u0060 declares 35 abstract methods: \u0060observeSources\u0060, \u0060observeSourcesByFamily\u0060, \u0060getSourceById\u0060, \u0060getByNormalizedKey\u0060, \u0060upsert\u0060, \u0060invalidateSourceInstallationEvidence\u0060, \u0060invalidateSourceBundleEvidence\u0060, \u0060invalidateSourcePendingPayloads\u0060, \u0060upsertSources\u0060, \u0060deleteSourceById\u0060, \u0060observeProvenance\u0060, \u0060observeProvenanceBySource\u0060, \u0060getProvenanceBySource\u0060, \u0060updateProvenanceReference\u0060, \u0060getByModelKey\u0060, \u0060deleteProvenanceById\u0060, \u0060deleteByModelKey\u0060, \u0060observeBundles\u0060, \u0060observeBundlesByFamily\u0060, \u0060getBundleById\u0060, \u0060deleteBundleById\u0060, \u0060getForBundle\u0060, \u0060observeForBundle\u0060, \u0060getBundleItemById\u0060, \u0060upsertBundleItems\u0060, \u0060deleteBundleItemById\u0060, \u0060deleteForBundle\u0060, \u0060getWithItems\u0060, \u0060observePendingArtifacts\u0060, \u0060observeByStatuses\u0060, \u0060getPendingArtifactById\u0060, \u0060getPendingArtifactsForBundle\u0060, \u0060getByDownloadTaskId\u0060, \u0060upsertPendingArtifacts\u0060, \u0060deletePendingArtifactById\u0060. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/ModelLibraryEntities.kt"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"cace3abfc8b6b461034ea3969b58756cf66c815e5e752a16d2c07620f848b68d"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: OrganizerDao (22 abstract methods): \u0060OrganizerDao\u0060 declares 22 abstract methods: \u0060getAllEvents\u0060, \u0060getAllEventsOnce\u0060, \u0060getEventsInRange\u0060, \u0060getEventsInRangeOnce\u0060, \u0060getEventById\u0060, \u0060insertEvent\u0060, \u0060updateEvent\u0060, \u0060deleteEvent\u0060, \u0060deleteEventById\u0060, \u0060getAllAlarms\u0060, \u0060getAllAlarmsOnce\u0060, \u0060getAlarmsForEventOnce\u0060, \u0060getAlarmById\u0060, \u0060getEnabledFutureAlarms\u0060, \u0060insertAlarm\u0060, \u0060updateAlarm\u0060, \u0060deleteAlarm\u0060, \u0060deleteAlarmById\u0060, \u0060markAlarmDelivered\u0060, \u0060getLlmSettings\u0060, \u0060getLlmSettingsOnce\u0060, \u0060upsertLlmSettings\u0060. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/OrganizerDao.kt"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"834b8a82628f6d7a1865405053d73ac9bb41fd940287b0d3f0ad081733e40abb"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: SdDistributedDao (21 abstract methods): \u0060SdDistributedDao\u0060 declares 21 abstract methods: \u0060observeWorkers\u0060, \u0060observeEnabledWorkers\u0060, \u0060observeWorkersOrdered\u0060, \u0060getEnabledWorkersOnce\u0060, \u0060getMaxWorkerSortOrder\u0060, \u0060upsertWorker\u0060, \u0060updateWorker\u0060, \u0060deleteWorker\u0060, \u0060setWorkerEnabled\u0060, \u0060setWorkerSortOrder\u0060, \u0060observeMasterSettings\u0060, \u0060getMasterSettings\u0060, \u0060upsertMasterSettings\u0060, \u0060observeTemplates\u0060, \u0060upsertTemplate\u0060, \u0060deleteTemplate\u0060, \u0060observePlacements\u0060, \u0060upsertPlacement\u0060, \u0060deletePlacement\u0060, \u0060observeRecentRuns\u0060, \u0060insertRun\u0060. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/SdDistributedEntities.kt"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f4877a3c604a3c702529551ee0c9d3e4d3877a9dd6c6b549f3b991887d877e"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: HarnessTransferDao (20 abstract methods): \u0060HarnessTransferDao\u0060 declares 20 abstract methods: \u0060workspaces\u0060, \u0060sessions\u0060, \u0060conversations\u0060, \u0060messagesForConversations\u0060, \u0060messagePartsForConversations\u0060, \u0060allWorkspaceIds\u0060, \u0060allConversationIds\u0060, \u0060sessionIds\u0060, \u0060messageOriginalIds\u0060, \u0060messagePartIds\u0060, \u0060receipt\u0060, \u0060harnessWorkspaceIds\u0060, \u0060activeJobCount\u0060, \u0060activeRunCount\u0060, \u0060insertWorkspaces\u0060, \u0060insertConversations\u0060, \u0060insertSessions\u0060, \u0060insertMessages\u0060, \u0060insertMessageParts\u0060, \u0060insertReceipt\u0060. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessTransferMetadata.kt"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"521ffe86e71f720a59f7c46bf918d4065a63c96d2940bc8a5409d4edfac37e63"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: FarmDao (16 abstract methods): \u0060FarmDao\u0060 declares 16 abstract methods: \u0060observeTiles\u0060, \u0060getTiles\u0060, \u0060saveTile\u0060, \u0060saveTiles\u0060, \u0060observeUpgrades\u0060, \u0060getUpgrades\u0060, \u0060getUpgrade\u0060, \u0060saveUpgrade\u0060, \u0060saveUpgrades\u0060, \u0060observeLivestock\u0060, \u0060getLivestock\u0060, \u0060getLivestockByType\u0060, \u0060saveLivestock\u0060, \u0060clearTilesForPet\u0060, \u0060clearUpgradesForPet\u0060, \u0060clearLivestockForPet\u0060. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/db/FarmDao.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"74bfec3143c12af1d1207c85ff6c2165b64116470ceb0cbeae3a482c401326be"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: TamaDao (132 abstract methods): \u0060TamaDao\u0060 declares 132 abstract methods: \u0060getPet\u0060, \u0060observePet\u0060, \u0060getActivePet\u0060, \u0060observeActivePet\u0060, \u0060getAllPetIds\u0060, \u0060savePet\u0060, \u0060deletePet\u0060, \u0060updateStats\u0060, \u0060updateMoney\u0060, \u0060updateLocation\u0060, \u0060updateActivityStatus\u0060, \u0060saveEvent\u0060, \u0060saveEvents\u0060, \u0060getRecentEvents\u0060, \u0060observeRecentEvents\u0060, \u0060getAllEvents\u0060, \u0060getEventsSince\u0060, \u0060deleteEventsForPet\u0060, \u0060saveQuest\u0060, \u0060saveQuests\u0060, \u0060getQuestsForPet\u0060, \u0060getQuestsByStatus\u0060, \u0060deleteStaleAvailableQuests\u0060, \u0060deleteQuestsForPet\u0060, \u0060saveQuestChecklistItem\u0060, \u0060saveQuestChecklistItems\u0060, \u0060observeQuestChecklist\u0060, \u0060getQuestChecklist\u0060, \u0060getQuestChecklistItem\u0060, \u0060deleteQuestChecklistItem\u0060, \u0060deleteCheckedQuestChecklistItems\u0060, \u0060deleteQuestChecklistForPet\u0060, \u0060saveDeepDreamRun\u0060, \u0060saveDeepDreamRuns\u0060, \u0060getDeepDreamRun\u0060, \u0060getDeepDreamRunBySignature\u0060, \u0060getDeepDreamRunByAlbumId\u0060, \u0060getDeepDreamRunsForPet\u0060, \u0060getDeepDreamRunsForPetByStatuses\u0060, \u0060getDeepDreamRunsByStatuses\u0060, and 92 more. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/db/TamaDao.kt"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d00c54bd9032ffba075a2db3427e687e1989ebf1a0280a4c94efbf6a96d1c0"}},{"ruleId":"DM10","level":"warning","message":{"text":"One operation mutates 3 aggregates: LlamaServerSessionRuntime.remove: \u0060LlamaServerSessionRuntime.remove\u0060 saves \u0060LlamaServerSessionOwnerStore\u0060, \u0060LlamaServerSessionLogStore\u0060, \u0060LlamaServerSessionStateStore\u0060 in a single operation. Each is its own consistency boundary, so committing them together makes the second\u0027s invariants depend on the first\u0027s transaction, holds a lock across both for the whole operation, and means the pair can no longer be separated \u2014 into different services, or different databases. Mutate one aggregate here and let the others follow from a domain event."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerSessionRuntime.kt"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"0108f618cf478e8f5b57800e7f31ff695a6564a690cd89749e5736c4c14763d5"}},{"ruleId":"DM10","level":"warning","message":{"text":"One operation mutates 2 aggregates: OnnxTtsGenerationService.startGeneration: \u0060OnnxTtsGenerationService.startGeneration\u0060 saves \u0060Idle\u0060, \u0060Error\u0060 in a single operation. Each is its own consistency boundary, so committing them together makes the second\u0027s invariants depend on the first\u0027s transaction, holds a lock across both for the whole operation, and means the pair can no longer be separated \u2014 into different services, or different databases. Mutate one aggregate here and let the others follow from a domain event."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/OnnxTtsGenerationService.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee4007a6ad602a36ca12e374adbea7bd11178b9db5011154bb6be5eb0c3158a"}},{"ruleId":"DM10","level":"warning","message":{"text":"One operation mutates 2 aggregates: PetTransferCoordinator.reclaimAnyway: \u0060PetTransferCoordinator.reclaimAnyway\u0060 saves \u0060TransferState\u0060, \u0060Nothing\u0060 in a single operation. Each is its own consistency boundary, so committing them together makes the second\u0027s invariants depend on the first\u0027s transaction, holds a lock across both for the whole operation, and means the pair can no longer be separated \u2014 into different services, or different databases. Mutate one aggregate here and let the others follow from a domain event."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferCoordinator.kt"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2bb888151f1c9a201dc3c86aae6f9b8bc961da2a1eb5f3f0495e7392e4ed56"}},{"ruleId":"DM10","level":"warning","message":{"text":"One operation mutates 2 aggregates: PetTransferCoordinator.abandon: \u0060PetTransferCoordinator.abandon\u0060 saves \u0060TransferState\u0060, \u0060Nothing\u0060 in a single operation. Each is its own consistency boundary, so committing them together makes the second\u0027s invariants depend on the first\u0027s transaction, holds a lock across both for the whole operation, and means the pair can no longer be separated \u2014 into different services, or different databases. Mutate one aggregate here and let the others follow from a domain event."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferCoordinator.kt"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca82be8812e0a00b493b2cbce4ae2e3beea022bea581b65d021cba1eb7226474"}},{"ruleId":"DM10","level":"warning","message":{"text":"One operation mutates 2 aggregates: PetTransferReceiveCommit.recoverInterrupted: \u0060PetTransferReceiveCommit.recoverInterrupted\u0060 saves \u0060Nothing\u0060, \u0060TransferState\u0060 in a single operation. Each is its own consistency boundary, so committing them together makes the second\u0027s invariants depend on the first\u0027s transaction, holds a lock across both for the whole operation, and means the pair can no longer be separated \u2014 into different services, or different databases. Mutate one aggregate here and let the others follow from a domain event."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferReceiveCommit.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"690ddbd32766a62ea08cddf839f1d23e70033c4a5fa0013caf94d5c60d181370"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AudioVoiceProfileEntity: \u0060AudioVoiceProfileEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060name\u0060, \u0060language\u0060, \u0060originalPath\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AudioVoiceProfileEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/AudioEntities.kt"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea1761c220de5175d9bfa8b706b6220c2cb634d3eb5e92d5986fd9128f12514"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AudioGenerationJobEntity: \u0060AudioGenerationJobEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060adapterId\u0060, \u0060family\u0060, \u0060modelId\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AudioGenerationJobEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/AudioEntities.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd85b6c80d56b290d74f7e9113f94eb06ca0172f5f7eec23c8b808b99d90f81"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AudioLibraryFolderEntity: \u0060AudioLibraryFolderEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060name\u0060, \u0060parentId\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AudioLibraryFolderEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/library/AudioLibraryEntities.kt"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec144e5ba36d200e37a4bcc725614d23b6a044fde6658ab5b0ce2d70d3485573"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AudioLibraryItemEntity: \u0060AudioLibraryItemEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060originKey\u0060, \u0060title\u0060, \u0060audioPath\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AudioLibraryItemEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/library/AudioLibraryEntities.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"3315af4087de0e56e8850abd1fa31161ce340915fe445bd52a693b7515b9c5e4"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AudioLibraryPreferencesEntity: \u0060AudioLibraryPreferencesEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060query\u0060, \u0060sort\u0060, \u0060folderId\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AudioLibraryPreferencesEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/library/AudioLibraryEntities.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f534e84135ffa72e7973bb4f85867c696e0dcc46f6d5946fa30ecc28717c74"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentConversationEntity: \u0060AgentConversationEntity\u0060\u0027s public constructor takes \u0060title\u0060, \u0060projectFolder\u0060, \u0060resumeState\u0060, \u0060lastStopReason\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentConversationEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentChatEntities.kt"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7ed35e8909b08c66075126cb8834ab1c92f7daaf41d44cb6fb6881c0a67e007"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentProjectFolderEntity: \u0060AgentProjectFolderEntity\u0060\u0027s public constructor takes \u0060name\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentProjectFolderEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentChatEntities.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"f270f5de1ba2a681e7c531be7595bf45469503e583140d55b538e76a2c93229c"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentMessageEntity: \u0060AgentMessageEntity\u0060\u0027s public constructor takes \u0060originalId\u0060, \u0060role\u0060, \u0060content\u0060, \u0060imagePath\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentMessageEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentChatEntities.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"7942b4c5d5d09f15e060d8dcfd28ed3b901e83deb56f991d8c4c3bd3234ca676"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentProjectRunEntity: \u0060AgentProjectRunEntity\u0060\u0027s public constructor takes \u0060projectFolder\u0060, \u0060backend\u0060, \u0060prootEnvironmentId\u0060, \u0060runtime\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentProjectRunEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentChatEntities.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e8e583c3d6222eded019aa9c3ae65c0a4ffc045daa4618057bea1cff4eb283c"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentProotEnvironmentEntity: \u0060AgentProotEnvironmentEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060displayName\u0060, \u0060storageKey\u0060, \u0060imageId\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentProotEnvironmentEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentChatEntities.kt"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a6539afbb021f0ab29a6c09398b271245a62038d13c605538a5989ba53cc7b6"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentProotRunEntity: \u0060AgentProotRunEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060environmentId\u0060, \u0060projectFolder\u0060, \u0060commandDigest\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentProotRunEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentChatEntities.kt"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"781c25a493e5bbf718b4d0c671f4f65897673dd2ea6b916802d7e9ccccde31ab"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentProjectEventEntity: \u0060AgentProjectEventEntity\u0060\u0027s public constructor takes \u0060projectFolder\u0060, \u0060category\u0060, \u0060eventType\u0060, \u0060phase\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentProjectEventEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentChatEntities.kt"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5577f6208b5ea34e18f3820a1343ac051c4223bb087fd64482ed0f34d9a7d5d"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentRuntimeEndpointConfigEntity: \u0060AgentRuntimeEndpointConfigEntity\u0060\u0027s public constructor takes \u0060name\u0060, \u0060backend\u0060, \u0060baseUrl\u0060, \u0060defaultModel\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentRuntimeEndpointConfigEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentRuntimeEndpointConfigEntity.kt"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae3339ef73660503318f4116a7cdbe8cf95753870577a98c506a3fa446540f32"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentRuntimeProfileEntity: \u0060AgentRuntimeProfileEntity\u0060\u0027s public constructor takes \u0060agentKey\u0060, \u0060backend\u0060, \u0060model\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentRuntimeProfileEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentRuntimeProfileEntity.kt"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc8b02ab0918a099475f4062342b3139c824b338c1bf4992d49f5878ed711fb"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentMessagePartEntity: \u0060AgentMessagePartEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060messageOriginalId\u0060, \u0060type\u0060, \u0060status\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentMessagePartEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentWorkflowEntities.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea334ac773b8f14b8254b2bc6131a5bb4ffb5caf9f330114f685768ccd61f576"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentTurnContextEntity: \u0060AgentTurnContextEntity\u0060\u0027s public constructor takes \u0060rootTurnId\u0060, \u0060agentKey\u0060, \u0060status\u0060, \u0060backend\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentTurnContextEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentWorkflowEntities.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"961a452a1054055a1a77a6feaec8deb16887db13ea30c5a8e13c715485e83d85"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentSkillEntity: \u0060AgentSkillEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060name\u0060, \u0060description\u0060, \u0060version\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentSkillEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentWorkflowEntities.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"32934e575c9dea9ed2729f3df1460248ec69fec56ec9142792740ae233659ca4"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentSkillAssignmentEntity: \u0060AgentSkillAssignmentEntity\u0060\u0027s public constructor takes \u0060skillId\u0060, \u0060agentKey\u0060, \u0060permission\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentSkillAssignmentEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentWorkflowEntities.kt"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc058ec2a377baaa22f2914c74f2715b797b163ea0efcaddef8882ea4a94f4aa"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentPendingQuestionEntity: \u0060AgentPendingQuestionEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060rootTurnId\u0060, \u0060agentSessionId\u0060, \u0060toolCallId\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentPendingQuestionEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentWorkflowEntities.kt"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8148299830beb160e6d3ac12a57f794d61fda8554a9d543632d9b9b5c4c8c5"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentPendingPlanEntity: \u0060AgentPendingPlanEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060rootTurnId\u0060, \u0060agentSessionId\u0060, \u0060planMessageId\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentPendingPlanEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentWorkflowEntities.kt"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c4842289c0a58317ca484cf16307ae0f30402dda6ff90baacf98f02f7e5f50"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentTodoEntity: \u0060AgentTodoEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060text\u0060, \u0060status\u0060, \u0060priority\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentTodoEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentWorkflowEntities.kt"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5848e04d0f2024fc597822e6d832edd360a8ec251f7d185a20c5be556dcc57"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentCompactionEntity: \u0060AgentCompactionEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060rootTurnId\u0060, \u0060summaryText\u0060, \u0060focus\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentCompactionEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentWorkflowEntities.kt"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"257771bdff3693295281d822bd8767915a2b98a685c04c34754126c8a807e2cb"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentProjectStateEntity: \u0060AgentProjectStateEntity\u0060\u0027s public constructor takes \u0060mode\u0060, \u0060currentGoal\u0060, \u0060activePlanVersionId\u0060, \u0060currentPhaseId\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentProjectStateEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentWorkflowEntities.kt"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef03a786ca5748fdab7a79f7e0d751c5aa27618a923e2107e6109524c73f5ebd"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentPlanVersionEntity: \u0060AgentPlanVersionEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060sourcePendingPlanId\u0060, \u0060summary\u0060, \u0060planMarkdown\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentPlanVersionEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentWorkflowEntities.kt"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf175cbc532268175ce6004adcdbc04b129cb4cf1468c9bfb1d97957d01ecb9"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentWorkReportEntity: \u0060AgentWorkReportEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060invocationId\u0060, \u0060todoId\u0060, \u0060agentRole\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentWorkReportEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentWorkflowEntities.kt"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a793c4eaae567c948edd30d40c57e8af05f37c9b8f923baf647fce333e516c8"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentInvocationEntity: \u0060AgentInvocationEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060rootTurnId\u0060, \u0060parentToolCallId\u0060, \u0060agentClass\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentInvocationEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentWorkflowEntities.kt"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cfafbe09e075ea49bea79d0c3ad5bce4fdcc726b88056cf6c8a42fe8b19bd13"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentPendingInputEntity: \u0060AgentPendingInputEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060targetInvocationId\u0060, \u0060batchId\u0060, \u0060kind\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentPendingInputEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentWorkflowEntities.kt"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61d51935023abe278a01363a0f26eee3c8371270ddcdb3120edf76abeec536f"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentProjectContractEntity: \u0060AgentProjectContractEntity\u0060\u0027s public constructor takes \u0060initialGoal\u0060, \u0060initialGoalSource\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentProjectContractEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentWorkflowEntities.kt"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"10fd25748a715a57770faad2c3870516dd5a3bc0a7bffeedf3185f6ce1fc8653"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentDecisionEntity: \u0060AgentDecisionEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060rootTurnId\u0060, \u0060questionId\u0060, \u0060decisionKey\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentDecisionEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentWorkflowEntities.kt"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"70295b2496ee604828c7d9ee81b3875b08b30cce63c8ca63e6502a2021d728eb"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentContinuationOutboxEntity: \u0060AgentContinuationOutboxEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060rootTurnId\u0060, \u0060kind\u0060, \u0060dedupeKey\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentContinuationOutboxEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentWorkflowEntities.kt"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec80d2c4de6d07c98b124673afba08a35784e1d61c6628aef29e6c81a863992"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AgentSleepWakeEntity: \u0060AgentSleepWakeEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060rootTurnId\u0060, \u0060reason\u0060, \u0060status\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AgentSleepWakeEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AgentWorkflowEntities.kt"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b410209735a4afe23191bc324d46b7d1f565d2d2203afa41101656431841939"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AiRuntimeJobEntity: \u0060AiRuntimeJobEntity\u0060\u0027s public constructor takes \u0060jobId\u0060, \u0060jobKey\u0060, \u0060type\u0060, \u0060status\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AiRuntimeJobEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AiRuntimeJobEntity.kt"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0093a8efa45e19c5417239eb9f825280f8d1cf4e31269f4c073e0ad3220091b"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AiServerConfigEntity: \u0060AiServerConfigEntity\u0060\u0027s public constructor takes \u0060serverType\u0060, \u0060displayName\u0060, \u0060accessMode\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AiServerConfigEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AiServerEntities.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec743c056265dc4072839b94988981283088053cd80b32462dff7415de72485"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AiServerUserEntity: \u0060AiServerUserEntity\u0060\u0027s public constructor takes \u0060username\u0060, \u0060displayName\u0060, \u0060passwordHash\u0060, \u0060passwordSalt\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AiServerUserEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AiServerEntities.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e4eced44dcf058c6a774c4d070d98556bbf6c3644497971227ed97373d82d7"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AiServerPermissionEntity: \u0060AiServerPermissionEntity\u0060\u0027s public constructor takes \u0060serverType\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AiServerPermissionEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AiServerEntities.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8ea77cbf893b96c29cfc9d9fc67e507576e5055dcd987201d52baa6fb892c9"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AiServerSessionEntity: \u0060AiServerSessionEntity\u0060\u0027s public constructor takes \u0060tokenHash\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AiServerSessionEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AiServerEntities.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"940067d6d513f25479ff4f5b36097fbc26bf334cb864dde22f4ab8d83da1b283"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AiServerArtifactEntity: \u0060AiServerArtifactEntity\u0060\u0027s public constructor takes \u0060serverType\u0060, \u0060origin\u0060, \u0060jobId\u0060, \u0060artifactType\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AiServerArtifactEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AiServerEntities.kt"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"46480ba06e051d2dcb1b940c7bc8c8317fe11a45c60fef29a850928f673e8f9e"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AiServerWebProviderEntity: \u0060AiServerWebProviderEntity\u0060\u0027s public constructor takes \u0060name\u0060, \u0060engine\u0060, \u0060baseUrl\u0060, \u0060modelName\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AiServerWebProviderEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AiServerEntities.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"4363521434ebd5c6823d24eaa8defcd9e5cdbfcc0d7ae79c62cd55c1322f4f35"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AiServerWebChatEntity: \u0060AiServerWebChatEntity\u0060\u0027s public constructor takes \u0060title\u0060, \u0060systemPrompt\u0060, \u0060apiParamsJson\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AiServerWebChatEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AiServerEntities.kt"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"535b8951c0c6fbe4156dfe621f5f71f8a705f0d3ef454a6f905d449f5664c216"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AiServerWebMessageEntity: \u0060AiServerWebMessageEntity\u0060\u0027s public constructor takes \u0060role\u0060, \u0060content\u0060, \u0060imagePath\u0060, \u0060audioPath\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AiServerWebMessageEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AiServerEntities.kt"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4db60b6649f78f057a7b8abe8663791303c43450d80053c32ee18dd31de0e2"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AiServerWebMessageAttachmentEntity: \u0060AiServerWebMessageAttachmentEntity\u0060\u0027s public constructor takes \u0060attachmentType\u0060, \u0060path\u0060, \u0060mimeType\u0060, \u0060name\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AiServerWebMessageAttachmentEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AiServerEntities.kt"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a8b6786375ebe7c15ab25de780d0f617099877efb68f2ef28310ddd26b0929"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: AiServerWebToolEventEntity: \u0060AiServerWebToolEventEntity\u0060\u0027s public constructor takes \u0060toolName\u0060, \u0060phase\u0060, \u0060status\u0060, \u0060argumentsJson\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060AiServerWebToolEventEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/AiServerEntities.kt"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a93345cef1ce305983dad9f869bef7101aca45b52d81e99c40d3a08775b4ff"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: BenchmarkResult: \u0060BenchmarkResult\u0060\u0027s public constructor takes \u0060modelPath\u0060, \u0060modelName\u0060, \u0060runName\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060BenchmarkResult\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/BenchmarkResult.kt"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e39c119871db0edc33e142102aaf4af70122b720873dfb186f4ecc5314d8f6"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: ChatMessageEntity: \u0060ChatMessageEntity\u0060\u0027s public constructor takes \u0060role\u0060, \u0060content\u0060, \u0060imagePath\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060ChatMessageEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/ChatMessageEntity.kt"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f97cfd12152365ce9ecf0a51475ec23a13ed209a0e4b003c7646ecd8366fa74"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: CustomAgentEntity: \u0060CustomAgentEntity\u0060\u0027s public constructor takes \u0060name\u0060, \u0060displayName\u0060, \u0060emoji\u0060, \u0060systemPrompt\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060CustomAgentEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/CustomAgentEntity.kt"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c6ccbd94543a0ca289915f7476b3206a6a699ca7ef0ec81bd476ef1daa2044"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: CustomToolEntity: \u0060CustomToolEntity\u0060\u0027s public constructor takes \u0060name\u0060, \u0060description\u0060, \u0060parametersJson\u0060, \u0060requiredParamsJson\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060CustomToolEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/CustomToolEntity.kt"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a1687cfcb7b8956a147845c20861f8575db8c5d27273db6bc95e7985b71932"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: DownloadTaskEntity: \u0060DownloadTaskEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060url\u0060, \u0060destPath\u0060, \u0060filename\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060DownloadTaskEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/DownloadTaskEntity.kt"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"879d99ca730e1fb92e4a367f4c07689c9e683c6244a9f55625ca379fe9656a0a"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: GenerationQueueItemEntity: \u0060GenerationQueueItemEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060kind\u0060, \u0060mode\u0060, \u0060promptPreview\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060GenerationQueueItemEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/GenerationQueueEntities.kt"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5691e3e5dc9ec88517405d3ea9bda04d3e6aa438d5bb3d774689428fe4919cc"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: GenerationQueueControlEntity: \u0060GenerationQueueControlEntity\u0060\u0027s public constructor takes \u0060state\u0060, \u0060runId\u0060, \u0060activeItemId\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060GenerationQueueControlEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/GenerationQueueEntities.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfbd64a9b6c21e931b5d1d594e40f531da2390851c9c0392a9cdced191cb5b88"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: HarnessRuntimeEntity: \u0060HarnessRuntimeEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060environmentId\u0060, \u0060state\u0060, \u0060generation\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060HarnessRuntimeEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/HarnessEntities.kt"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00e53b1cafe43f38718fa2a027c9b2bf9f3fce6ff47356a6272879b33026155"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: HarnessWorkspaceEntity: \u0060HarnessWorkspaceEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060backend\u0060, \u0060projectFolder\u0060, \u0060connectionKey\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060HarnessWorkspaceEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/HarnessEntities.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a98d139672545431b1f216095864f57b65e80576862a6b94700a38e02f361e"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: HarnessSessionEntity: \u0060HarnessSessionEntity\u0060\u0027s public constructor takes \u0060harnessSessionId\u0060, \u0060workspaceId\u0060, \u0060runtimeId\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060HarnessSessionEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/HarnessEntities.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"359b9b27025561f271b366b75b2519ce90a2bef6d2cfbdda3d0bea5d23769e85"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: HarnessTransferImportReceiptEntity: \u0060HarnessTransferImportReceiptEntity\u0060\u0027s public constructor takes \u0060operationId\u0060, \u0060sourceRuntimeId\u0060, \u0060targetRuntimeId\u0060, \u0060mappingJson\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060HarnessTransferImportReceiptEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/HarnessTransferReceiptEntity.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca51699609dfe6b6e0883164d880bce5c8c29557513d7ebb240c5d7b1c80bbc"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: KnowledgeBaseEntity: \u0060KnowledgeBaseEntity\u0060\u0027s public constructor takes \u0060name\u0060, \u0060description\u0060, \u0060contentSummary\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060KnowledgeBaseEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/KnowledgeBaseEntities.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba3609d9ea9efd04d1a798c13b1f051c710645ddc3c7c7d330609fd6b8da49e"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: KnowledgeSourceEntity: \u0060KnowledgeSourceEntity\u0060\u0027s public constructor takes \u0060type\u0060, \u0060sourceRef\u0060, \u0060title\u0060, \u0060contentHash\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060KnowledgeSourceEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/KnowledgeBaseEntities.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"11143328610eba432a57b188275d58a9023aba1b6c4607536dfa0449ba737809"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: KnowledgeChunkEntity: \u0060KnowledgeChunkEntity\u0060\u0027s public constructor takes \u0060text\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060KnowledgeChunkEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/KnowledgeBaseEntities.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa2666a8d161fd6be6437ef539d902f4e58b938eda919020462ab654ebaf87e"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: LiveTranslatorTemplateEntity: \u0060LiveTranslatorTemplateEntity\u0060\u0027s public constructor takes \u0060name\u0060, \u0060speaker1Language\u0060, \u0060speaker2Language\u0060, \u0060whisperModelPath\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060LiveTranslatorTemplateEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/LiveTranslatorEntities.kt"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9383332d3776d77be1309e67766e7c704f3c75115d4d26c3cc13177b2151e6"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: LiveTranslatorSessionEntity: \u0060LiveTranslatorSessionEntity\u0060\u0027s public constructor takes \u0060title\u0060, \u0060templateSnapshotJson\u0060, \u0060speaker1Language\u0060, \u0060speaker2Language\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060LiveTranslatorSessionEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/LiveTranslatorEntities.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"499a52eb03aa772a9025898b166be5a294afaa47ca2d1cc3104222149ca9232d"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: LiveTranslatorTurnEntity: \u0060LiveTranslatorTurnEntity\u0060\u0027s public constructor takes \u0060originalText\u0060, \u0060translatedText\u0060, \u0060detectedLanguage\u0060, \u0060sourceLanguage\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060LiveTranslatorTurnEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/LiveTranslatorEntities.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f026b0089e0e772510248c0c78afce600ffe3e97ed1cadb0483e7c46d70a85b"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: ModelEntity: \u0060ModelEntity\u0060\u0027s public constructor takes \u0060filename\u0060, \u0060path\u0060, \u0060repoId\u0060, \u0060mmprojPath\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060ModelEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/ModelEntity.kt"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4033b639b452bf280a8f30b3c25945a264bf151320804e4648821280bd03535"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: ModelSourceEntity: \u0060ModelSourceEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060kind\u0060, \u0060family\u0060, \u0060label\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060ModelSourceEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/ModelLibraryEntities.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"7025b5eb97a016f990ab314ec74b76fcdde3f2a5f2be0652a2c8ed860e2c90d5"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: ModelProvenanceEntity: \u0060ModelProvenanceEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060sourceId\u0060, \u0060modelKey\u0060, \u0060family\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060ModelProvenanceEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/ModelLibraryEntities.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"574535b8bf4d33052b1138e0f98532957082c4b49ca48e85283ae7eb23cc6f7d"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: ModelBundleEntity: \u0060ModelBundleEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060name\u0060, \u0060family\u0060, \u0060description\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060ModelBundleEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/ModelLibraryEntities.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f6049ebf695423fc34101c78dfe2b262b45ead6075c4d4a6ade74ddde889b8"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: ModelBundleItemEntity: \u0060ModelBundleItemEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060bundleId\u0060, \u0060itemKey\u0060, \u0060family\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060ModelBundleItemEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/ModelLibraryEntities.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"81581efbf088e7033f82e4a6533c9bd3da6353e304e8a778e7ed984a3b74e0b5"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: PendingModelArtifactEntity: \u0060PendingModelArtifactEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060downloadTaskId\u0060, \u0060sourceId\u0060, \u0060bundleId\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060PendingModelArtifactEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/ModelLibraryEntities.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf1b5d39542d721329550c4c9ec82940199b43f6f8036a2f8befd611343ab86"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: NoteEntity: \u0060NoteEntity\u0060\u0027s public constructor takes \u0060title\u0060, \u0060content\u0060, \u0060sourceFile\u0060, \u0060language\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060NoteEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/NoteEntity.kt"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"f36a73f3b24aa4cd05f3dcab09a829107811868f586c41f5b0660a267967442f"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: OllamaServerEntity: \u0060OllamaServerEntity\u0060\u0027s public constructor takes \u0060name\u0060, \u0060url\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060OllamaServerEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/OllamaServerEntity.kt"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"be9e1c637133800737809f473f00a5df4cee554704a24289e6f9145d6e7bd748"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: OrganizerEventEntity: \u0060OrganizerEventEntity\u0060\u0027s public constructor takes \u0060title\u0060, \u0060description\u0060, \u0060location\u0060, \u0060timezoneId\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060OrganizerEventEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/OrganizerEntities.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"167d37159b71f61ba654f4bf55507cf950e3d4c09d444fa31a411b982e0c6ef3"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: OrganizerAlarmEntity: \u0060OrganizerAlarmEntity\u0060\u0027s public constructor takes \u0060title\u0060, \u0060message\u0060, \u0060timezoneId\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060OrganizerAlarmEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/OrganizerEntities.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7d132987811100dd22244113bb26c359c8fe971775aea38b1eeabbb5ea1d85"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: QuadtrixProfileEntity: \u0060QuadtrixProfileEntity\u0060\u0027s public constructor takes \u0060name\u0060, \u0060datasetPath\u0060, \u0060modelFilename\u0060, \u0060modelPath\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060QuadtrixProfileEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/QuadtrixEntities.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb82f144983bc1ba373e939690841e1c5ea1dc73b138dafd1232d0a47907fe97"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: QuadtrixRunEntity: \u0060QuadtrixRunEntity\u0060\u0027s public constructor takes \u0060profileName\u0060, \u0060status\u0060, \u0060processMode\u0060, \u0060latestBatchLoss\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060QuadtrixRunEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/QuadtrixEntities.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff13c528116b33a6ee6336fa17f5f8013558687cf994bf1a80329f6b73262b6"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: QuadtrixMetricEntity: \u0060QuadtrixMetricEntity\u0060\u0027s public constructor takes \u0060profileName\u0060, \u0060batchLoss\u0060, \u0060trainLoss\u0060, \u0060valLoss\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060QuadtrixMetricEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/QuadtrixEntities.kt"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d19d2fa06adb99fc262a48810f183ce74c85a03e7a2ff5fa376d1135e871893"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: SavedCommand: \u0060SavedCommand\u0060\u0027s public constructor takes \u0060name\u0060, \u0060commandTemplate\u0060, \u0060scope\u0060, \u0060launchProfileJson\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060SavedCommand\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/SavedCommandEntity.kt"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e2937ec8045bbc48ff5751bd20bd6d49f095660c463376054d80ef8c0e85ac"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: SdDistributedWorkerEntity: \u0060SdDistributedWorkerEntity\u0060\u0027s public constructor takes \u0060host\u0060, \u0060deviceName\u0060, \u0060backendDevice\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060SdDistributedWorkerEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/SdDistributedEntities.kt"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"5daff56b79dc22bd81c7310045a0d8571a73131c9b8b18c5a9c53002dbe5ad7d"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: SdDistributedMasterSettingsEntity: \u0060SdDistributedMasterSettingsEntity\u0060\u0027s public constructor takes \u0060placementMode\u0060, \u0060backendSpec\u0060, \u0060paramsBackendSpec\u0060, \u0060autoRamScope\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060SdDistributedMasterSettingsEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/SdDistributedEntities.kt"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbfc214ef43b8a7e04969a563e77ce42a9eeaa497c6dce528d171e27974738d"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: SdDistributedTemplateEntity: \u0060SdDistributedTemplateEntity\u0060\u0027s public constructor takes \u0060name\u0060, \u0060workflowType\u0060, \u0060settingsJson\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060SdDistributedTemplateEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/SdDistributedEntities.kt"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4eea47f2b67f4fef167f362b6e76645fa2cd8bc547294ccdbbb6be20d7507f"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: SdDistributedPlacementEntity: \u0060SdDistributedPlacementEntity\u0060\u0027s public constructor takes \u0060name\u0060, \u0060placementMode\u0060, \u0060backendSpec\u0060, \u0060paramsBackendSpec\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060SdDistributedPlacementEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/SdDistributedEntities.kt"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"508267f2923e1cc6f21a1ed71ed1a3e6f7659cba65a0b33f2f6a8c457c80abb9"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: SdDistributedRunEntity: \u0060SdDistributedRunEntity\u0060\u0027s public constructor takes \u0060mode\u0060, \u0060modelName\u0060, \u0060rpcServers\u0060, \u0060backendSpec\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060SdDistributedRunEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/SdDistributedEntities.kt"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"67f0a3f6bf62954c008e02ec33857e8645dfe8a898764324cae9dfcb9fddc9b7"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: SystemPromptEntity: \u0060SystemPromptEntity\u0060\u0027s public constructor takes \u0060name\u0060, \u0060content\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060SystemPromptEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/SystemPromptEntity.kt"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3fd5a74c67e3a0f495be495e3516762b0d71c41923535b18a923de07d4b719"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: SystemStatsSampleEntity: \u0060SystemStatsSampleEntity\u0060\u0027s public constructor takes \u0060deviceId\u0060, \u0060snapshotJson\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060SystemStatsSampleEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/SystemStatsEntities.kt"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"5731c834df8d1e22017f45fc999d75bbbf73a8a2fbd54464b2dee72f05640a08"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: SystemStatsEventEntity: \u0060SystemStatsEventEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060category\u0060, \u0060phase\u0060, \u0060scope\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060SystemStatsEventEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/SystemStatsEntities.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7e2ef74bec3df575fb76cdf797075727c39f698e50f08a3f27170b0f07b353"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: ZimEntity: \u0060ZimEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060filename\u0060, \u0060path\u0060, \u0060title\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060ZimEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/ZimEntity.kt"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bbc03e01b54880ff7cfe051459ad4a0fc8fd3995fb21a5a17513fb32994a70c"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: LiteRtModelEntity: \u0060LiteRtModelEntity\u0060\u0027s public constructor takes \u0060displayName\u0060, \u0060path\u0060, \u0060sourceUri\u0060, \u0060repoId\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060LiteRtModelEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/LiteRtModelEntity.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d8898d936c70b2017bf3ddb07e26be5fb73d7531bd37f40f135d1114d95c2b"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: LlamaServerEntity: \u0060LlamaServerEntity\u0060\u0027s public constructor takes \u0060name\u0060, \u0060host\u0060, \u0060engine\u0060, \u0060modelName\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060LlamaServerEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/LlamaEntities.kt"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"1817f02a0bf52261177a1721441f2c05e01f1a646a6f9efe10be198131594e13"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: LlamaChatFolderEntity: \u0060LlamaChatFolderEntity\u0060\u0027s public constructor takes \u0060name\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060LlamaChatFolderEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/LlamaEntities.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab96f0eb5e1bc6c5c8cc4a61dae713bc9ae90c5e183523272166f1226191dc5"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: LlamaChatPromptProfileEntity: \u0060LlamaChatPromptProfileEntity\u0060\u0027s public constructor takes \u0060name\u0060, \u0060content\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060LlamaChatPromptProfileEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/LlamaEntities.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9de45ba8aabb942beec937c79a48b47932e6e6915accd9b21754c9e113f8e55"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: LlamaChatEntity: \u0060LlamaChatEntity\u0060\u0027s public constructor takes \u0060title\u0060, \u0060systemPrompt\u0060, \u0060apiParams\u0060, \u0060source\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060LlamaChatEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/LlamaEntities.kt"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15242f8073e03fdd965d9f23714fdbe4a04fd1b048b81bf124b5b5fb34a91c5"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: LlamaSpeculativeRunEntity: \u0060LlamaSpeculativeRunEntity\u0060\u0027s public constructor takes \u0060name\u0060, \u0060modelPath\u0060, \u0060modelName\u0060, \u0060speculativeMode\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060LlamaSpeculativeRunEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/LlamaEntities.kt"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"17550f0384add57114d7bd6b5e8ceb4393e4fbcd31d3c2d87404223a7857ae88"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: LlamaMessageEntity: \u0060LlamaMessageEntity\u0060\u0027s public constructor takes \u0060role\u0060, \u0060content\u0060, \u0060imagePath\u0060, \u0060audioPath\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060LlamaMessageEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/LlamaEntities.kt"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb15a83eb5f99c7139b986a074fab27a60fe19415c99a463744a59146470f89"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: LlamaScheduledTaskEntity: \u0060LlamaScheduledTaskEntity\u0060\u0027s public constructor takes \u0060name\u0060, \u0060systemPrompt\u0060, \u0060taskPrompt\u0060, \u0060apiParams\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060LlamaScheduledTaskEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/LlamaEntities.kt"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a60e2fe4b7a140be2c769ed92595f1908b31736a25f0560cbeca21aa130f990"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: LlamaScheduledTaskLogEntity: \u0060LlamaScheduledTaskLogEntity\u0060\u0027s public constructor takes \u0060taskName\u0060, \u0060status\u0060, \u0060serverName\u0060, \u0060serverBaseUrl\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060LlamaScheduledTaskLogEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/LlamaEntities.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4762a03ee11906de94be75e2b64a6aa4ed1dc160094028bf9d044a28a3601b8"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: LlamaMessageImageDescriptionEntity: \u0060LlamaMessageImageDescriptionEntity\u0060\u0027s public constructor takes \u0060imagePath\u0060, \u0060description\u0060, \u0060model\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060LlamaMessageImageDescriptionEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/LlamaMessageImageDescriptionEntity.kt"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb9ab1375272e3d992393021302378e26a5cdc7697c49292e8c3de1fe515a6e5"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: LlamaServerCardEntity: \u0060LlamaServerCardEntity\u0060\u0027s public constructor takes \u0060name\u0060, \u0060presetNameSnapshot\u0060, \u0060easyModelId\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060LlamaServerCardEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/LlamaServerCardEntity.kt"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac753cc7f121b635dbc1b66bb3319eca10058002c22028b087d602b0cf01f56"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: NativeChatDelegateTaskEntity: \u0060NativeChatDelegateTaskEntity\u0060\u0027s public constructor takes \u0060state\u0060, \u0060title\u0060, \u0060request\u0060, \u0060runtimeId\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060NativeChatDelegateTaskEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/NativeChatDelegationEntities.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"490ae915196245e28aac88775ca5a6cd4728e01355d628730cdbaed31383c595"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: NativeChatDelegateMessageEntity: \u0060NativeChatDelegateMessageEntity\u0060\u0027s public constructor takes \u0060role\u0060, \u0060content\u0060, \u0060toolName\u0060, \u0060toolCallId\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060NativeChatDelegateMessageEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/NativeChatDelegationEntities.kt"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b0e51c71404ff65d001076dd6ceeee5470d916b95d7ff886e6231dd9039757"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: NativeChatDelegateEventEntity: \u0060NativeChatDelegateEventEntity\u0060\u0027s public constructor takes \u0060type\u0060, \u0060phase\u0060, \u0060toolName\u0060, \u0060status\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060NativeChatDelegateEventEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/NativeChatDelegationEntities.kt"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9faf54b2f1a09e9d90984acdd8a56cb4f099e2d8b4acaac432863c3cae91887"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: LlamaMessageAttachmentEntity: \u0060LlamaMessageAttachmentEntity\u0060\u0027s public constructor takes \u0060path\u0060, \u0060displayName\u0060, \u0060mimeType\u0060, \u0060source\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060LlamaMessageAttachmentEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/NativeChatDelegationEntities.kt"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c29f512f6f3a4fd719d23fc34787b3be0dc6df5ecb3d1fabcd9143d904afd32"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: NativeChatCompactionEntity: \u0060NativeChatCompactionEntity\u0060\u0027s public constructor takes \u0060summary\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060NativeChatCompactionEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/NativeChatDelegationEntities.kt"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7f6a3315ae1c98c7dc2af3f09a90417adeba777d05319fdcf44d6128210593"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: SavedWorker: \u0060SavedWorker\u0060\u0027s public constructor takes \u0060ip\u0060, \u0060deviceName\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060SavedWorker\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/SavedWorker.kt"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"db505f9cb1e5ac1825173be8898f6bd1a493c3356fec50954d4911d6d412524d"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: ModelDeletionJournalOperationEntity: \u0060ModelDeletionJournalOperationEntity\u0060\u0027s public constructor takes \u0060operationId\u0060, \u0060targetKey\u0060, \u0060targetKind\u0060, \u0060status\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060ModelDeletionJournalOperationEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelDeletionJournalEntities.kt"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c868c488dcf30e14abf9be872c03dc40b59e65742f8932b4f8bfc5a38637b33"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: ModelDeletionJournalPathEntity: \u0060ModelDeletionJournalPathEntity\u0060\u0027s public constructor takes \u0060operationId\u0060, \u0060path\u0060, \u0060status\u0060, \u0060failureCode\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060ModelDeletionJournalPathEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelDeletionJournalEntities.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"08735ad562625670638f773971990f4069757826db841c19d884a4ff23ab7b95"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: TamaActionReceiptEntity: \u0060TamaActionReceiptEntity\u0060\u0027s public constructor takes \u0060petId\u0060, \u0060id\u0060, \u0060worldId\u0060, \u0060kind\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060TamaActionReceiptEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/db/TamaActionReceipts.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2421cb150edc07be57d659b34315b9d72c9fcaa96e996d72ea7ce8cedd8267"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: TamaTransferPeerEntity: \u0060TamaTransferPeerEntity\u0060\u0027s public constructor takes \u0060deviceId\u0060, \u0060displayName\u0060, \u0060addressesJson\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060TamaTransferPeerEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/db/TamaTransferPeerDao.kt"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bcd7b094566c2d91d078a5c026a24499981524b8eaad1140d3d54b5d63dd39c"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: TamaTransferStateEntity: \u0060TamaTransferStateEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060role\u0060, \u0060status\u0060, \u0060transferId\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060TamaTransferStateEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/db/TamaTransferStateDao.kt"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"27bd39bbec6cdf0b44ea40b5f3c1d574b8dd36f54499c91e64e5c785109cdeb8"}},{"ruleId":"DM4","level":"warning","message":{"text":"Anemic entity: BenchmarkResult: \u0060BenchmarkResult\u0060 is an aggregate/entity with 11 data propert(ies) but no state-changing behaviour (only data and queries) \u2014 the business logic lives in a service."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/BenchmarkResult.kt"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32dc116fcbb3334b94d2e367526a97f5bd48597d421da44dc332499061f08ed"}},{"ruleId":"DM4","level":"warning","message":{"text":"Anemic entity: SavedCommand: \u0060SavedCommand\u0060 is an aggregate/entity with 46 data propert(ies) but no state-changing behaviour (only data and queries) \u2014 the business logic lives in a service."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/SavedCommandEntity.kt"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8510adb74d6c0e64a2e0641d7910929f7084b9e019b71f6eaf9dd7cd27dbb9"}},{"ruleId":"DM4","level":"warning","message":{"text":"Anemic entity: SavedWorker: \u0060SavedWorker\u0060 is an aggregate/entity with 7 data propert(ies) but no state-changing behaviour (only data and queries) \u2014 the business logic lives in a service."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/SavedWorker.kt"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd75c7cfda7d5e28f0fbfbcb6bba30a160140a659906aacab77e6dc77f29bdf"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 1/2 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060app/build.gradle.kts\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/build.gradle.kts"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"8170fb04fe78176a33c2b44461eeb0bf2839b74c80362ebf7185e17a3b446ff7"}},{"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":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060Retrofit.Builder(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"382df15f9c18103bedf3d651c2b5b428823b98762b5edcc6870dadb290bd017f"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060Retrofit.Builder(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/ModelLibraryRepositoryFactory.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"448e17cf4d116c6c1e216d452636eee975962e0029f5c7fc0fd3eaab2f69891d"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060.openConnection(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/proot/ProotManager.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"959b3392f47823ab538c66ffc2f85ff62b0591938c0ac7767d838b7b7cc78b99"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060Retrofit.Builder(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/repository/LiteRtModelRepository.kt"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1e0010078b7bc30461e900b30832004ec88a939c74749539f9ff19e8f6eecb"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060generateWebChatReply\u0060 is async and calls runBlocking \u2014 a blocking call inside async code stalls the coroutine\u0027s thread, and every coroutine dispatched to it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":3075}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a23102d5b21bc1f6438c594a981f85c272a01fecea24bb8a429db43c9877e96"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060streamOllamaResponse\u0060 is async and calls runBlocking \u2014 a blocking call inside async code stalls the coroutine\u0027s thread, and every coroutine dispatched to it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":1669}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e55b5af1623fa9c3ac8b8469235e18adfd898398c62dc7d08b229b54de20bd"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060streamNativeToolResponse\u0060 is async and calls runBlocking \u2014 a blocking call inside async code stalls the coroutine\u0027s thread, and every coroutine dispatched to it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":1908}}}],"partialFingerprints":{"codehealthFindingId/v1":"d44b65f66300d2b5543492bc2d00b6fa671c0a57999a12d6b9cf15fbce704c56"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060unifyRecursively\u0060 is async and calls runBlocking \u2014 a blocking call inside async code stalls the coroutine\u0027s thread, and every coroutine dispatched to it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteSummaryOrchestrator.kt"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ad029dfba3121f80edc79e173d3fc663d1513538e64d501124d5422729b6ae"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060splitForBudget\u0060 is async and calls runBlocking \u2014 a blocking call inside async code stalls the coroutine\u0027s thread, and every coroutine dispatched to it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteSummaryOrchestrator.kt"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b35da8c97b2c1d0b043c5c76e336441124cc5eb9ec14df0045eda7a3470ae07"}},{"ruleId":"X1","level":"warning","message":{"text":"Blocking \u0060Thread.sleep\u0060 inside a coroutine: This coroutine runs on a dispatcher\u0027s thread, and \u0060Thread.sleep\u0060 blocks that thread: for the whole delay no other coroutine scheduled on it makes progress (on \u0060Dispatchers.Main\u0060 the UI freezes) \u2014 the Kotlin form of blocking on a task. Use \u0060delay(\u2026)\u0060, which suspends only this coroutine. Where the blocking work is not a sleep but a call that cannot be made suspending, move it off the dispatcher with \u0060withContext(Dispatchers.IO) { \u2026 }\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SSHService.kt"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f4dd6e9abe5a266feb96985f63179bc2fa7991ff6f87745008aed744ed5844"}},{"ruleId":"X1","level":"warning","message":{"text":"Blocking \u0060Thread.sleep\u0060 inside a coroutine: This coroutine runs on a dispatcher\u0027s thread, and \u0060Thread.sleep\u0060 blocks that thread: for the whole delay no other coroutine scheduled on it makes progress (on \u0060Dispatchers.Main\u0060 the UI freezes) \u2014 the Kotlin form of blocking on a task. Use \u0060delay(\u2026)\u0060, which suspends only this coroutine. Where the blocking work is not a sleep but a call that cannot be made suspending, move it off the dispatcher with \u0060withContext(Dispatchers.IO) { \u2026 }\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SSHService.kt"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d7648f7f5cbc15089144aa187f78e805123d435255fa7f4b3df1c0e82abe4ff"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060harnessTextFrom\u0060 is public and takes \u0060value: JsonElement\u0060 from its caller, and it calls itself at line 118 with a piece of \u0060value\u0060 (and at line 125) \u2014 the function is not \u0060tailrec\u0060, so every call is a real frame \u2014 and nowhere in \u0060harnessTextFrom\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. On the JVM\u0027s default 1 MB thread stack a recursive walk throws \u0060StackOverflowError\u0060 from about 500\u20132,000 levels on a cold first call and 6,000\u201317,000 once warmed up (OpenJDK 21 and 25; Android\u0027s threads are smaller). kotlinx.serialization\u0027s \u0060parseToJsonElement\u0060 accepts nested arrays to any depth and Android\u0027s built-in \u0060org.json\u0060 sets no limit, while Jackson 2.15\u002B stops at 1,000 \u2014 on a cold JVM past the point the walk fails; Gson 2.12\u002B and Moshi stop at 255. \u0060StackOverflowError\u0060 is an \u0060Error\u0060, not an \u0060Exception\u0060: a \u0060catch (e: Exception)\u0060 around the call does not stop it, and on Android an uncaught one ends the process. Thread a depth argument through \u0060harnessTextFrom\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack or a \u0060DeepRecursiveFunction\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessFormatting.kt"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"174fa088ba8761509986d4c6767f8053134ef9971d612a4cba28a26408d65162"}},{"ruleId":"X2","level":"note","message":{"text":"Not all functions that make a request accept an AbortSignal or the coroutine\u0027s cancellation: Only 3/26 functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http; Ktor, OkHttp newCall, URL streams) accept an AbortSignal or the coroutine\u0027s cancellation or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a page navigated away from, a cancelled request, a shutdown, an expired deadline. Take a \u0060signal\u0060 () and hand it to the request; in a Kotlin suspend function, make the request with a call that suspends \u2014 Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 that cancels the \u0060Call\u0060 \u2014 not a blocking \u0060execute()\u0060: \u0060withContext(Dispatchers.IO)\u0060 moves the call off the caller\u0027s thread but does not make it cancellable; where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"21eeee9e423271c6ca8c1585dbd13becefdff0bcb29bcd0381c3b54ed97e04fd"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: awaitPreview: \u0060awaitPreview\u0060 suspends, but makes its request with \u0060URL(\u2026).openConnection()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProotRunCoordinator.kt"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f8f60459f4eee7d587e235858fb2e9b6da00a786d1adb75f7e81bfd592fcbe"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: probeAgentEndpoint: \u0060probeAgentEndpoint\u0060 suspends, but makes its request with \u0060URL(\u2026).openConnection()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f668c7d6988a120d8c6a85202aaf062210c80966470fb3c63cb309ed41a2f2"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: installFromHttps: \u0060installFromHttps\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentSkillRepository.kt"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"506389fd1aa12e632c2aeb2992140c1c33f8eec22b5dcd7fc0e899dbbadca919"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: searchWeb: \u0060searchWeb\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DeepResearchSupport.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b897749779f9786f4d12a06a2141e9ffadf8bb3e5e91df0d317df4459a616c7"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: fetchReadableSource: \u0060fetchReadableSource\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DeepResearchSupport.kt"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"3724e76c50e39e18a43fa77a6e6412c37cee6b0cf6aedabfe9768106bd85bd89"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: countChatInputTokens: \u0060countChatInputTokens\u0060 suspends, but makes its request with \u0060URL(\u2026).openConnection()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerChatService.kt"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b128993a5cf5df18ef1756193cf0d38e0e86fcb1a10716ee39f1f0cd86043eb"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: discoverCapabilities: \u0060discoverCapabilities\u0060 suspends, but makes its request with \u0060URL(\u2026).openConnection()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerChatService.kt"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6249609a015917d4684d77f5b0cdd92288b7025f66dd982bd9a6fa3415dc88"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: webSearch: \u0060webSearch\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":2023}}}],"partialFingerprints":{"codehealthFindingId/v1":"624e4841fdb8d036282813151dbb83833816e61161cbe848b91d44013cc5d1ff"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: kiwixSearch: \u0060kiwixSearch\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeChatTools.kt"},"region":{"startLine":2151}}}],"partialFingerprints":{"codehealthFindingId/v1":"5120ee94ad1133a3fe8504b0db7441e24626f1f94ba73a5a5f210cf358baab2b"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: post: \u0060post\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/vision/VisionDescriptionService.kt"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f187563744622f707f7d458044443fc7e10aba942d380920b7f666c3e43421"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: postJson: \u0060postJson\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ephemeral/EphemeralLlamaServer.kt"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb743d53cc15fcac544ea99fbeb73885a0a460a70c7f16791f782d68929ff5e9"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: probe: \u0060probe\u0060 suspends, but makes its request with \u0060URL(\u2026).openConnection()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/compaction/NativeChatContextWindow.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab879c32cfc0c36fc2950017d0f67037cbf63591a837d4f4f35afb45f3261e73"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: fetchTotalSlots: \u0060fetchTotalSlots\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/chat/ChatAdmissionPlanner.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3babfea9aefab066c69b6afe68c483390b0755df4ea613a5cd682e8d9052b3"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: downloadHarnessFile: \u0060downloadHarnessFile\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAttachmentViewer.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be1c198ac869268a7931f2a1915f82c04716b70b2655746b51988ff74571af9"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: searchKiwix: \u0060searchKiwix\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessBridgeOperations.kt"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"65242a0c68c9575b1c8602e7bdd4deadf887d46393bcb8d34f304f5d56c01fbb"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: readKiwixArticle: \u0060readKiwixArticle\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessBridgeOperations.kt"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"5700dacadc97f11adc673e9d1bb6d8a021b4c4f099a02493a8e4283085d46de9"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: models: \u0060models\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessLocalModels.kt"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc73950e8420886f76a5630bc00a588ac82a0f623dacae79a04dbbac5c339ad"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: proxy: \u0060proxy\u0060 suspends, but makes its request with \u0060call.execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessLocalModels.kt"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee42c31ffbd1d3c3f00c0fa25834ef5974d04a21d151d345a9da91a5cc0b8c3"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: awaitPreview: \u0060awaitPreview\u0060 suspends, but makes its request with \u0060URL(\u2026).openConnection()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessRemoteProjectRunner.kt"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"4feaa5df381d685bc63d460303f706988e51a328aeaede5722a85c4dcf5d268b"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: fetch: \u0060fetch\u0060 suspends, but makes its request with \u0060URL(\u2026).openConnection()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/runtime/AgentRuntimeEndpointModelDiscovery.kt"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a5d060abb461688414a988050899d254be50e3bd31c85ddf57ff079f0d4a57"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: downloadRootfs: \u0060downloadRootfs\u0060 suspends, but makes its request with \u0060URL(\u2026).openConnection()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/proot/ProotManager.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c6b3dc5e7c270e04758793b522fa12a016b228c6f8b95323c004e72a52c9a9"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: fetchCatalog: \u0060fetchCatalog\u0060 suspends, but makes its request with \u0060URL(\u2026).openConnection()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/KiwixCatalogClient.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"e040a82b83e80de9211f95ffddde69df6c19fa49b387cc559cab8989b4160711"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: load: \u0060load\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/file_station_webui/js/i18n.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb69953605337aa64970849e26fef0b623cecd79e1188904c46f18dbbde5348b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: RuntimeException)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/MainActivity.kt"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"3810f32d4b7bde202a00c9e42f636459bf1f7fd76d656d5a25ab54dbf0ecef29"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: RuntimeException)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/MainActivity.kt"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb14eb954111f624579b3bed8fc20b804397bff14c7774552598593d30ca650"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: RuntimeException)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/MainActivity.kt"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76063c616a8b4b45e087497535d6e4d0ab9a0018d8ebaf5d9b40a37d92d3f10"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/GGUFParser.kt"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"863fd092cd03c4cab4d4c3d57e1365bb95f3467df2522a6ecdf3e8373bc0231f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/NsdHelper.kt"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"56a65e4a6b1c758156707bbed3ebcc3a0aefb294424139e00e67e57efa7032e8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/NsdHelper.kt"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7de6140082228bbe95d1d678ce0d570ce10fa182f4aae8e2237c46c722a00bb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/NsdHelper.kt"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"adcfd823d0a8bc6a020c54195b32bd2eef4563d3b3a3244b6a07669c6341d755"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/UpscalerAssetPackSupport.kt"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf7230ad7159e98f5c953d3b709c5eb15a2f9c119985ddcba6308dea4f2cac6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFSummaryScreen.kt"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"9605f63a84009feddd371b8efdf185754dfbfdf022c58a26aed50e952da93410"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8fc1ebc5f4e68e53a8a2b73594ef6e4cb3d54c964e5a503abf1a57a9873033"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4fd5e22852709866b7b4e07293bee71e8ae7446ea3822ff514684b85d7f5bd0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/pdf/PDFToolboxScreen.kt"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a4b73c7206496cffae83d0ca553a3f5cd03a2ae0067410547169d634001cbf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: RuntimeException)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/overlay/OverlayPermission.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d29031b9352c1e0167bc5f730db8814fe485a325ad73f580f3ca995fbe8f4ca"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: RuntimeException)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/navigation/AppLaunchIdentity.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f1c0cab006ea455217a910db8316dd1169443fa08e6321fe56f06d76946d64"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: RuntimeException)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/navigation/AppLaunchIdentity.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a60935b98b5bba20c047ddf7f2cfd1fe3aa723df08ac51f2ec3bba56b2f6690"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: RuntimeException)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/navigation/AppLaunchIdentity.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f638ecd59b4dafee400dbe7306bee251fb5e5b16b13411e986ab1d997774b25"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: RuntimeException)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/navigation/AppLaunchIdentity.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ff1329da9af4f49d303da8a921d7bc868c2aaf756820b61f171790b67624b3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: RuntimeException)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/navigation/AppLaunchIdentity.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab601407ab744385ff7381bed79eaf50aff2f9fb3402098b3823363874f3a094"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: RuntimeException)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/navigation/AppLaunchIdentity.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e763be025de258bec97dc1fc2d2803e76702bbfd5cfe5fe523a17175de30434"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelManagerViewModel.kt"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"220267a0a3e9b3318feca4f50034708effed4641b0ad436bee684764c004618e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/models/ModelShareScreen.kt"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a86010359e6d6a5efb1b32324d20b48a9391b48360f92856ce46e7ac35daab"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/kiwix/ZimManagerScreen.kt"},"region":{"startLine":1173}}}],"partialFingerprints":{"codehealthFindingId/v1":"560458a435751d0fed612f110f911b5f1b5ff3beafa85aeec5e87e2bf277dbd4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/kiwix/ZimManagerScreen.kt"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"83fa78ec41043b92e8e445d0a480350f85303d56bbd555fc62ba9cf9d6d5382b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/easy/EasyChatModelPicker.kt"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"130cb423a7c6a8a9ca2a3c391cd52c7bd275ea4982038f26612005917c222032"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/easy/EasyChatModelPicker.kt"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec0926e59be100e299872b671f552088b186002ea7aa9fdc8d39d21ddb9d7d3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/easy/EasyChatOptionsSheet.kt"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8b655739cb110009fc446bc80bbae8afc60f6771fd8395eff174d674de9033d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/easy/EasyModelRemoval.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"e162fba473feaac527b1ec83ba0322cf390d9c44703d9c5064ace2603796957c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":3893}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ddb6e88722e25d8ea29a39c17ddd7c65f9e114418fbf8ed7b66c01e94e6bfc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":3935}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a619506b744e264aa95c562f7631f47c89bc60b8a9aa418029fc53392df903"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":3979}}}],"partialFingerprints":{"codehealthFindingId/v1":"0efa9b8fe324d4de9d2612e7356e2cff339d0771ac110627d288d7a2d564840c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":4005}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3adb7749c7dc2a32592ec3438e8abde29f9c201039d7af7b1f811d424b085d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":4811}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0bc2ba67c83ae3072620de3757a0a2c2bfb2623855722c0a6823393fc9d355"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":4853}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8c9e6569568598a600d7946a9c86bc4b1dd5ba2d2a2ef0729645103b5bb50e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":4895}}}],"partialFingerprints":{"codehealthFindingId/v1":"a49dfd68c9d5c42847ee79d14979753bec8ceb5663ea8cb13593b67583841758"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":4918}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fff679da8a57d411c355057816c26fcedd9ccfefa0ff02c8664e0057814b2ab"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":4930}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96a64f00d5ca0f519b51eca34b91582726ddb1f738db2276edca49ac0945e30"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":4965}}}],"partialFingerprints":{"codehealthFindingId/v1":"023c30f2124193b5b9f088fefcb8165e4f489b0a1520b0f4db46d9ba8e00f69b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":5014}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0392592cc112c6e149e9666bd1d0c890c967f5d5fda222a01662295f0c6c652"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/MasterModeScreen.kt"},"region":{"startLine":5071}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aacf16aa9810f16094bb89f783887fa1b30910303e6140496678b987e237a75"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/SdDistributedScreens.kt"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"615501d20d2808bff0e55e56808409391f622b41de81535b352b00ca68e0cf69"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/WorkerModeScreen.kt"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32cbedb65abe2253e4d1604f5c074b021654dff47d10cfe9970377b00c797be"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/distributed/WorkerModeScreen.kt"},"region":{"startLine":1096}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8a91880834e2b446b775526e8d7b363eb48f2b59841fa0df34e4e62975ad1a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/SampledImageBitmap.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"052fdb3bb255d03a78fda707b70a1e53dea30ddb4aa5e901f8811c4732e2c2db"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/components/SampledImageBitmap.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf79a9533d0737fe46796c43fc25a4716e0f1b57faf5c93153083f0d4e41498"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/library/AudioLibraryScreen.kt"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"de83b6a2fce7a7664de992a6e28a2524d3ac6ccfa4eafccb542564c45874c3c7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/library/AudioLibraryScreen.kt"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"730c9df398f7d6baa4c8b53aa9969297039f95ac4b838afe2804175439abba9e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/library/AudioLibraryScreen.kt"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"82eebbfd4fd42cb9eff88595789af7c488b3057c766e45257b8e3067fd13c1ed"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1019cd61736f75872a1d54dd8d58b6b917748acc6b90d9dd75ac47edc4a7739"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/AudioTranscriptionScreen.kt"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc8385913add44a82f1918f13e56217578017330b48d19d809c62ad7112f857"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/OnnxImageGenScreen.kt"},"region":{"startLine":1839}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b7be6a0ec481a848aa5dfed14aabb20f8cfb229c21227845cf66d1e18d8fda3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SubtitleBurnScreen.kt"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"5366f084ad6ecdbeb9c74e98d2ec550cd0640596df0b041067640a502496ce30"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/SubtitleBurnScreen.kt"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1cc5ea412e69069e61d9016c49c9bd352edacaa4ff26548e1ca1db296584492"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/TermuxFileManagerScreen.kt"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60c8d4583df44345d66d933d7acfe4971053d9574ff946e928b332fabfb1f62"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/TermuxScreen.kt"},"region":{"startLine":1997}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e9d31d671e40e961d5f09f4309161c5be424bbbef13c03779ac847d6bcf9f1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"492db242a7ce401a1db4a4087f1058b5d154feb35aea441d6ce80fa2d59ed2de"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoGenScreen.kt"},"region":{"startLine":2365}}}],"partialFingerprints":{"codehealthFindingId/v1":"57874d1300ea35997626aa236f9d1ce9491911e46dde252dcc71ed7c4978aba9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoReuseDialog.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"ababa9509c4c56af6f107cfc5fcd06319a2260cf48e0079ca41a0bd38ab68af0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/VideoSumupScreen.kt"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc74f0ffeeda512a64081455c25d1df2815af0a12a92f8587bbfb85e47cd8a4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9398e440f7e8c86ccc1571e5bc446665191075b5cceb3cd62f21eac5c0c888f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f000dec2ddf5ec1e8dcf183d244346f0e76c1ff944eca8078427b0125edd5c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8df3ba065cc9362142324d242119884613affce07964e4facfefb55ea9de0f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":1483}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcbf917d62b82663bcad334bf9e7b0dd8e1879b82bd83d8974b223d6bb61b776"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":4105}}}],"partialFingerprints":{"codehealthFindingId/v1":"596a6deefc9f1ed48a1954331fafe157aa8aaecac8f74d966200d5b312894272"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":4128}}}],"partialFingerprints":{"codehealthFindingId/v1":"292eca63f68ea889e245c6d991cbc6cfb540d55bc2e334601e94df5a10458844"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":4146}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee5b7defbbd8a8cef22cf1dc81e0539fecefe51bb30f4c43addeb93e8e1a708f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":4834}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e396da6f2f0e5da4b24b7a78fe680bfd4925ee95942a2adc6cc8438050e67b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":4867}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d87498f98785c16bf03805b4994abcebf879606e22b3d2ae330dc819130c45"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":6245}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fe3241aba0a87a03b74ae50d305c98eaf67fff6b8a4a33617bca2c8c23d0400"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":7078}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62654dd4712b7994651492e667c0be7a6eb7d8fc06f8575f4c2000c2f155b93"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/delegation/DelegationMessageBox.kt"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b1683fbe1226fc1936c502c5673c0a061da33b8e10afb3acc15fdf85a71a01"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (throwable: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chatlist/NewChatSheet.kt"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"6723da5d61eb9c576c4358c9505889943bcc8c0725957d26ea4581dc4296e2d2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatScreenSupport.kt"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e89799be62fa0af0c6f13c843cc721b4cda986a4814fd917e2fffd4ca3e4171"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatScreenSupport.kt"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ffe4fedbcd498f6d0c02ccdb6f5bafd6c27cba69a47f0ec4d579a9d3289bf77"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatScreenSupport.kt"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"8105fa6fc3456a0d32ada5881ac96ba85233186f0dc435e4f966e21da990b2c3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatScreenSupport.kt"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d547f1ad9698cf0ad771ecca67e6232c3038842f2312f3161544608c1bd1671"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatScreenSupport.kt"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1d50eabc6e8c8a116ee4008bb3bad4424bd94885001f9f094059a121179c70"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessSessionProjectionReader.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65873d37a82efb1b3acfa73384b5d99796d0c550337ca7d810bdacc1e38bf5e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessSessionProjectionReader.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"43c6128de32be8f4c918b96fd720dbb8cd1ee388e3f2fadeba13fe187862c804"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessSettingsReader.kt"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bfe8ffe6f5a1ad7e62547d6b54fb48af82e8808bdc254791fd09d949292c405"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/agent/harness/NativeHarnessWorkspaceProjection.kt"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f708eed3c1c3065706724fd78e639f9bdaf1cc539a91642ee287d6478b6ba8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19e62eef1f64601cc1d387f964aa6197dd8c46fdedbff387bf50e4ca368faf2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/ArcadeScreen.kt"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2194e85b4557eb6302699009d0909fefffb188d21607fea92844c41ae666532"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22657d92f0c2425a86ce02b8e8b682a30cc6682383a7fef8c072d80e80e27f6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaChatScreen.kt"},"region":{"startLine":1286}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e51b59af7b68bf51d815b5e76c6ab5fde519838d30cf0cc3ec063be1e53a947"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/transfer/PetLinkController.kt"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c89e35c400096c6c82dcf83cc06e4a324bf126697c1e8bb1df5dbf1b636e25"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferEngine.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1275f08ffe43f2149f3f5f872c0d0d4d5ca437405bdfe7c85714d2eb3e64e83"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferEngine.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec9e8db6210a2437b490f21c5bae831ed6b58940fa1850486b91c34a6107d45"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferReceiveCommit.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a8a0abe57236fbe7e9e8075e13ceb3fe6df587ba3cc19e57033b73fcdef91d9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferReceiveCommit.kt"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3a64c2a61e0e15542109baf55873428f362541cc2665e868bbe4219c7ba91b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: RuntimeException)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/shimeji/ShimejiActionPanel.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47d0d9a815c693543d44c3b21caa2315fe1f04af1dbf7fcffed2c6e9874e329"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/shimeji/ShimejiOverlayService.kt"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d53ae116572c12e2627fe605aba8a87d1e11da2603f7e66b0552402c6742e2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/PetMapper.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"143347bb607775b1148fdd75fb54467ec230532e2215833743d32de7ac8b66b4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/PetMapper.kt"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"0069d6270d366fe8f6cdf372142ace4059f2d9f88e5f54b66e601ad8183daeed"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/PetMapper.kt"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b2aed3d2c29bfbf9955bc9ab1c3437c2a904853a76247e7cf1ad7d0dc83d586"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/PetMapper.kt"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"e063082f39dfa9de0843d7a8f1e06c1964fe9ed626a1d878b9751f9de8ae59e1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/PetMapper.kt"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"9df4926b282056b344f787ce5df72f1a8be02e8fbf40fffd42ccd359194c8d05"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaAgentService.kt"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f744c88dee76e3925909c42f024316013ab0ac5c87f896d88f90ea4ea82420"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":3516}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ebc25a8b479158db5878ea22a62974140ac88a3a13dd76f72665cc455f7418a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":3960}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5e327450b9cd956ec06c1400e3a6602aa07710471c80ad51ef4471e6aff244"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":3977}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a321d776779f39c84f7ffc5d52282f842aff48b475412c12df457cb03656037"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":4008}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9749ee0e1351cd15e8b48cfff45c8d740093d72ae57b81950a25af058546ffe"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":4034}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c36fba9d6df70f190bf0dcda41c719ce996ef636301da51aeee3af91fb347d0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":4330}}}],"partialFingerprints":{"codehealthFindingId/v1":"6254a5d7a55776a558f7bc1f89519f04b9c3b5c95651999a932f5c0e1ec1aefc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AdventureForegroundService.kt"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"e469e73528538f290baac40c96e13ebc70cb0b69aac89789daa5adb5ccc07b58"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentForegroundService.kt"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fcce05267582a2162a8674911ce0799f28f84a9b3d1e1c4f1f71edf755653d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentForegroundService.kt"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"50301f0755653a63f7760e2bdf99dd5346ac8b8b572312a88a79ece207f1c6d9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentForegroundService.kt"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a33b4c1e84583d92041afbb045bad4942438c8710364778262e06df8d48cc0d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":2003}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b323526a77e05230e6a2594039f930b157c155c407417075cd1e51da628e294"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":2009}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3b5a934399155d0bc2ecb00c6c3cc90330fcf23f19fd25659ff8b890857775"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":2015}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b51686254c1dedaa635173e9c37a20d7869098586ee22e847aa456b26dc4129"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":2135}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e44747558d3188a6b00854db3ed1ceef6390aaea7b395fbd56f6fccd936b9a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":2141}}}],"partialFingerprints":{"codehealthFindingId/v1":"d36a0780c7c9f14101204f81ad268ced992f965e278669b8c7d48582b5d177d4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":2147}}}],"partialFingerprints":{"codehealthFindingId/v1":"838a774f015098497aa7df1f28f93da87b214d3134293f7845041d7f4c86c5ea"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":2290}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d990a9cdf6702956e861a7cad30219dc95261f31f48dd29fd4ab158f0ca2b2b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":2461}}}],"partialFingerprints":{"codehealthFindingId/v1":"51306cc56684e018f5cf3d1a88ef534b05d6223c89472e71a6ca24426c5f9d60"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":3601}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c8a2d09dba1f2e11edff9c159a29a4d7209d0fdf6dbf4a3e65cf553e99bcf85"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":3629}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d89f3dc36d8b403eefbf8d63ea745fc139715eb6178bc28fece33fd19f9a6c6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":18169}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1f208941adba6e6bf1b60ed3ffb046afb339f2d37f9da3b07533f7beb25272"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":18185}}}],"partialFingerprints":{"codehealthFindingId/v1":"a440e4b7bbe04d5757a274e6354db4dab3542ea94bb2fe73d0248bda605878f3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":18244}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed10e50efe78da0ca8fda162fdfe8d026cf1da294e009dc933a45f22a598d948"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":18287}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc32ce180f8cbff4f4ef53f94de0baec671e94bb269965380e9e079b05db26b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":20600}}}],"partialFingerprints":{"codehealthFindingId/v1":"4baeb58f91de9ffa0547ebfeb9998490122cdddda5140d81c0cc462be62ff169"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DatasetForegroundService.kt"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"958d843ce57f0c35fed584a543a14da05bb12825c79e03113a9d6bceb086a602"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DatasetForegroundService.kt"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"57488fac3b339cd3a8911426b15f4a432811cceb2983305c37b159f021f32690"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e2: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DistributedService.kt"},"region":{"startLine":1201}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae4bb58b4a7e34fd61b80bf4155de765a1784d44efd0d9351071517e38c84c80"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DistributedService.kt"},"region":{"startLine":1341}}}],"partialFingerprints":{"codehealthFindingId/v1":"3783e2c3f8318288af63cba6dc29a256cdaa2e89f7ae1e7234270c4d2dccd5aa"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DistributedService.kt"},"region":{"startLine":1595}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa221ebb472585c8459123139e7c4d3cef652279aa5e79f0a6b0236b3046eda"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ForegroundStart.kt"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d49d27e73327a24c3b9f02355e16120cd0850fe2b73d57419f4707dcad7ef7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ForegroundTimeoutSupport.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"100906691964e8420366014f35161a5a1b3267471f304f5ff2127299b4e855d0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ForegroundTimeoutSupport.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"311088aa36e8204c3c81e3860e396e95d08e305f5df2cb90e369413e769e3750"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":1634}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbba20ba454928da48f7dac54fff508de91b23c34997368fc1de2861f3a047d6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerChatService.kt"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f6738ef74454600ccb852412f8f5286b8b83bc01c1fad9f09c21c907ded6442"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerChatService.kt"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7369bf6a00b676eed7d16a7a1fc435b443ac354ab50704cc67d9bba81c16f8c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerUsageLease.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb7507f17c246397021cc9db732f58ff992755279203a9a292ebff4722f0cb8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt"},"region":{"startLine":2874}}}],"partialFingerprints":{"codehealthFindingId/v1":"443d3b188167299be21d44bdb6abaa7f6e12837e41c61695d3f1c5650bd80ad2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/NativeLlamaVideoSupport.kt"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff356bcb7632649b1f00b05ee55c254dd62f4a8686049e7b50ea9ab3e9ed634d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/OllamaService.kt"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"370bf01c8b107b9751aef67d453d8dcd326093af718f785624238957ac86f889"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/OllamaService.kt"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc28952fde10a5515eae9112a8e1fd68ba8893b5f52c203e3e912fdae7834bea"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":2571}}}],"partialFingerprints":{"codehealthFindingId/v1":"44eac8d07a55905ad5e33b052d545387a3ed7bf70f20a4bd67a828492e6a9aa0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":6891}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb6f32fc88f3459b4f4e1af5e09dbcbe3e6ac17792396e6dd877e4be5afc797"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":7689}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ff0a63a4694e095593264e20274c94228d747a441fd11baa81310151d0276b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":7713}}}],"partialFingerprints":{"codehealthFindingId/v1":"19480a5988e17bdb7d46a9b04c0caf23322e1dd9f203832fb630d1f55e3cdf9c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":7783}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bdb145d84c48e295be359fc9cddb8f58475d65a4dff52bfbcb5cc3dfaaaed27"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFSummaryService.kt"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"3735c6185cfa0f5ebe1a070306496792f98e68d7f61e52bfff4b5e8856bb83ad"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFSummaryService.kt"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b5c42b14cc01c9ebc02d6ccd5ebab036ed75f690b96887bfebe9d3f52b1fc0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteAgentProtection.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31415d0760ed0bfd57e690dc965ed95a8fda0f9432e928efb9cd6248b715775"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteMasterServer.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d37acd3bd784611dac73a0a6c80845b4ce5f8e7144e1c781f54047a44fb4330"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteMasterServer.kt"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a1b4d36db8b12204bd9b44771a0f2e46dd0eed37c4c5217ef7dbed555c5e2c3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteMasterServer.kt"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c490fa011d98021acd6ffdea480befb162775a0053266c54b5e46c958180010"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb18be3683a8564f406651df90cf5fff710be7aadf349dee100eefbc91464def"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SSHService.kt"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c7f00493be256c9a6cd1372f37cc9f490c31b52aa494dbfdd1e340898c2fcc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SSHService.kt"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b5d3cd15fec2fff5bc23a6e023f3f725cf625aca05349095132c9c889a79a0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SSHService.kt"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"530cacbc10eab34c0a11ab3ad159d2a3eef13446a4c21a6638d57ee357abe211"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SSHService.kt"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc322d2690db6b6c9b6c94a4087bbb3bd1f03483d65fc7098c217aaf51bb8e98"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SSHService.kt"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cdfac58bf40eacdd8d46f061642eab87d4ee573a9fbb08fc967efe3935d4328"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SSHService.kt"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"e459b102c8ea8aa53192f3767c799c805b172017a507db828928b4accdfa19b6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SSHService.kt"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f060923cbe912124f6845cf95076f91596fbdf6f7870a7118e2a346c04e3575"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SSHService.kt"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"25fccdb784f97e78c9e181051787c817062c1054f8e0c208a8c6892047417842"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SSHService.kt"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1bcfda378137fcae6c1c3dd7768a56a38c5b2a42d1d63c11db4fc432a809f85"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdRuntimeSupport.kt"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"838de74382fc44b30593191eec3710045e44f6f7cbd5d2c13fe87dfd8b2a08b6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0bb6583cb2d6e09cbaf23d5e37314952ed6007bcedf9300bfb33053130de5c5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ace70b912152a785f98168ef7bc69002ac41febacc8d045c1b3d1f4a4a90fee"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e60b1beca39a0e10d75fc306717a15656d5dfed63ad6330f3c3e6b3f012be4d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"3997b8100c66da4c4441209bde1d5de5420e885de17ac50e844ce130d07e43fc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"8697717d48a35f87c17698209838d83a2f53b3c4cf54c88abc1159a4a7af623d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec854c7ab9397a8f20580130a5917dd877c0e8378a50fe20f36ebde7386c15f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"258ba960397d10de52f5fed629259e0f6282db33f602a2df1366a5926677f243"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8469147c0387985cb5c42e514b5aaee36afb1210144e4af99b0f2c8b9c3f49e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt"},"region":{"startLine":1570}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c73cdfa27eba178604a733acc7c787b925e77ccb6bd7f1fe136769be4a96e4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/UnifiedNotificationManager.kt"},"region":{"startLine":1636}}}],"partialFingerprints":{"codehealthFindingId/v1":"155610b6e2a0e0a3c615b980fecba0a98cc63ddb40d9ca4afd23bd39514c22ce"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoGenerationService.kt"},"region":{"startLine":1330}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d5d7807e4cd3ab40b08668020c9547b0b91fe3d37f573c09cd8b36f8541777"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"3025c51bf773c981e944fef698c3897143d02a12faaefb8fdd8b9f456e745ee5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoMediaProcessor.kt"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2d83e8a914a6a742bf40e85dfd2349f2c076b8e3cf91bac465c0346b3123b1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoRecognitionSummaryService.kt"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ab830147967249b8397c54c3a66a5e6805d7b5a2bc8720eb5746a45f429b65"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoSumupService.kt"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"8921eb2bd590db3b03b184d680ba7b0317c617ca227eb97f14843e3b84e35e5a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/VideoUpscalerService.kt"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"440d6a438a666785a9e481293b33597adbba86b630f27b2b3d7e043f3feb29ae"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/filestation/volume/SafVolume.kt"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"f81e2b22100a8244f47fb30c63a1f7e724cecc24705c9d6d4efa388ebf0b1c43"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/filestation/volume/SafVolume.kt"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2582f5d6ac01faf575c6b934d03bb137baecbdcdf3ca2ec472b2d59601768e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/filestation/http/FileStationHttpServer.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"391c1535cbcd3992337dccf77bf192ee4683499d3606235e04db7877b52a4584"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegateHarnessDriver.kt"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dfb97b5ad5ff8abfd9855e288a7c588e97740f13a24b02dae3e38c6482dd482"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegateHarnessDriver.kt"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e619a246abae62795b1e75e1b6bbf8f9c8cca44959e65b7242a359bde16245"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegateSubagentLoop.kt"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"3caa4ca478d1d64482070b62fdfb961158a872f60c09f419408de78378183e53"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegationManager.kt"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db2e96541f02c9986c00e544ebe01db2dfcc3b68cee6b9628ad69baf23b0413"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegationProjectCatalog.kt"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"a081c31d6add2b8df0fc006781588e7d202efd01208ad0bd6085d3331b2bf339"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegationProjectCatalog.kt"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5fcb938be128e7b814a98393d65360c4a9cd69b0e61734fa19b7d5ba2f4a17d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegationProjectCatalog.kt"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea406790c4e7e753692559de1390c463432ec398ae341e0a3fd7b9f5ef6faf76"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegationProjectCatalog.kt"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6848384bf3e98bdbb3000871c6c56b079e773df9369f812efd7a1446167468"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegationProjectCatalog.kt"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4c2ed21aab0c0188c2354aa11ad5a370077e4c52e19f8342aee38e1cd3ee57"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegationProjectFiles.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e26acb834732eaa9550e480d80293818ff03ba0445bffdd78deec00579212fd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/HarnessLatestPage.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c580199e68d9baeabc47aa353fcd3f12527bc3ce12e98725ade93213918eb3a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/chat/NativeChatVideoSupport.kt"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"896de4b356c2fa0aba3780c2d9669c17dd39f7b2b37aceec8b374eac8b1f4019"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: RuntimeException)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/bubble/ChatBubbleOverlayService.kt"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"417530b8c385a6872adc93dcfdbaff7a694e3d5b82b214f9f3659b959ba4fa87"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/sd/SdTaeCompatibility.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef34f59396d310771423b6b50eefcb98b83abd7d0dfabf0368c90c0cb6dbc74d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAgentRoute.kt"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc9e3b155c18dc07863837b36b6701557f2b27c16b81067644cb65a440b5ea6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAgentRoute.kt"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90457a9fe9c32f80382f616239df5b8bd91b404ee1916c59bf1112a0cb2e0f0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAgentRoute.kt"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"d66b0adde4f99e14d1c4612f1ce9a935226bdb1093ea9c5a30cd2b62cbe0c3bb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAgentRoute.kt"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc96295602e3efd1adebf74b7748c759fb8ce6916ba51741ca6633f5c0f890d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAppRuntime.kt"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4929379306e5df18de0768b1c69e9a40d2c667307adbc14927de3e21479033b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessLanAccess.kt"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cbfce1bae1a471a4090812771d4e5c20707df89bf0f008a9dd14c9266d43473"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessLanAccess.kt"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"452e0c60444cd75be6a0d09f48b7a712abe857408c900c416d6ca7ee2a673ac0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessLegacyHistory.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f657419a527e21bc2b08877b202dfe175a0cd82548d99dde6cc4d36e101b3ac"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessLegacyHistory.kt"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69008c000cd248a9df3595330e10affd8a59851311930151b162d0340a1acab"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessProjectFilesNavigator.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c753ec57315874945b0a390c7ede820b4854ed366ad989db83ddf58b0076f807"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessProjectIntegrationDialog.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa7780c0dd9c52008538687029630922fae68d366f6d913b003c0a3df94f326"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessProjectIntegrationDialog.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"579495eda1b63e6f3652349f871a7235ae4071ed4f7ff1f88f4cbe9d517fe0f7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessRuntimeJournal.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2cc54a479afa4f62e8366341a9ce674c16598cde66c1e959d376049c7c994b7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessRuntimeJournal.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"264bb85eb8e74e417563bb3254cfbcea52c5afb0dccc687af5c281dd38cd8700"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessRuntimeJournal.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea79c8538425f173f805955a888689f5257878aeb9a9c66a052d6088d82dd20f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessSshWorkspaceDialog.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d845d88a51b32b0123d9fab34b5099ae9bb9688cb51197a0294c53c54d6472"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessTerminalDialog.kt"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c660bf8cbb5ae50d30aeb61a0d25386b46822539d38830e08143ed7a0563c9c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessTerminalDialog.kt"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"2269ddb7b9fbf074cb1ea11d32cf270b35d257b658632b6446fbec2179dbcd03"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessTerminalDialog.kt"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0c561603473106b5f67d43e6e5968044e584975516ea4a87619b33db38f77a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"163755c5584129fae4ab457f42d6c9ee2f08c43a651ec4d81b92999ee25dc995"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0e13408fdef14371a4dc42acd7ff32b34d28fb4a8e4137427f56c0d9ade183"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5ae0495dea6233d52f40f2de0fd1be60c14318c8fcfa025019b27636ba50a1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c916353cf7b76306fcf99daa53795bf95298019c265bc732856339177bcdcb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeController.kt"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db2fd396cd38bb04d53b28173a1b45706c2e46964fe0930cf82845337c5c846"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/library/RoomModelDeletionJournal.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"4609983f5ed6f5b0b18e00388d315904a1a7edcb7b1e5b74135ea18f6cf56688"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/db/RestoreCoordinator.kt"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1551f1d2d3a2931f7333b8828cb3352601d14d971a016a6807294f6c40a6353"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt"},"region":{"startLine":1483}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95d7c25f3f3ea52ef372e3355e5f48d6c5676bdb6e651368eb907b06036a08a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/audio/AudioGenerationService.kt"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc409531eb8aa350b2bd9c01e9095640378455f3aa2d8ee90c234a904f5a0267"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JVM code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentDirectRuntimeSupport.kt"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc911eecaebb0d9b53e0d48c1778ce57326a2e5225dd9c8ed223425fe65fb600"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JVM code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentPlanProposalRecovery.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da28e9734391e4b4671038e35f418fe6d9a25f735ff1390ca0c138c8d1def00"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JVM code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":16529}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d497e507aa8d624c58035b1971c9ff016fc747ef1525afef4a18918bb85c6ab"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JVM code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":16561}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23a3453ce96c4f9e4186d244af63729da0cbac87ff8332a3788b47297454e76"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JVM code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":16586}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad966a8fd14396491bd20fcfa076b26922c241fec969a336066c7e53e81e1213"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JVM code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"088de6077756cbfd1520fea5b127bba2e25982f80323b2e29c7cfeb1a43ac75b"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JVM code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/RemoteSummaryClient.kt"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ed20e107034f699de450ae6b1171c4869b3d567d5195799fc236376c6f6069"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060removedLlmTrainingWorkIdsFromWorkDb\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/LlamaApplication.kt"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be95347a02af1efc634ee247e813cbf6661eb26503a94df0adf979d34f0c27e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060ensureResolved\u0060 swallows every exception into \u00600L\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/AppVisualStyleSettings.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"2687d48d5a6fffc3f3110b9f24d51a5b99d498460e4260c0849ab4e21764d04f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060decodeLlamaLoraSpecs\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/SettingsRepository.kt"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fbd855a7459570284081b98194bc80a229e498b6eba3aa35754ca64a080e0c5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060nativeBuildRevisionKey\u0060 swallows every exception into \u0060\u0022unknown\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/binary/BinaryRepository.kt"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"d620cfc629c4c3ef6f97e9da2ff8f05d17f5f86cafebc8ad2f95a12a1774c48d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getGgufFiles\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/model/ModelRepository.kt"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"5624c176c2a1d623365a416b06f8441caf3a2585ebd43db6d7140620acab4e49"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadCards\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/data/repository/LlamaServerCardRepository.kt"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f063912a2eb99eaed85321481baedbdde65cfd83a7c8c09a20465bed2a79fd2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060load\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/diagnostics/ProcessExitRecorder.kt"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"989f39a8bd06a35f5776a5e5251d51459038140b9efcb607ab6d4faa9948966d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060HarnessKvCacheCard\u0060 swallows every exception into \u00600L\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessAppToolsSettings.kt"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"105f3310b25f454f9631d68f895a00a08c0ebd5ba25a6c42792c7a3d67fab6c9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060read\u0060 swallows every exception into \u0060emptyMap()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessLocalModelCapabilities.kt"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a295bf57fb1503921e48db838a987d79e0e98968aeead472257f39cd965e56"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060models\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/HarnessLocalModels.kt"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c43d0cffc7a4f713708f03db1215fc24868d003c706e012444913539e09c560"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readLedger\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/harness/runtime/HarnessRuntimeProcess.kt"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47a12795ecc2e467f9559bb86b8cb3e3b44fc1d7753d08114ddefbcd7172dd0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060compactReportEvidenceJson\u0060 swallows every exception into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentControlPromptSupport.kt"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"44bcd64a81b95c18c878bea22978714e48d7b6c3b5b74ae239d8b0bcf413965c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readAcceptanceCriteria\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentDirectPlanProjection.kt"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc765a98c80f3f60e60ea9ac9b006cfddecfe30f53831b9566e8b232c9eb7a11"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060answerItems\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentDurableContractStore.kt"},"region":{"startLine":2131}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3bc4fa4561a1cb2c68ff2d6551d6ec2a74320974cfee4ac89697e3c943d4614"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060dependencies\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":3698}}}],"partialFingerprints":{"codehealthFindingId/v1":"7317284648e9ccb3a79e09ad505100f42429336bc4b8b276cc1e3cfda736c230"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060acceptanceCriteria\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentProjectControlPlane.kt"},"region":{"startLine":3703}}}],"partialFingerprints":{"codehealthFindingId/v1":"5390aa94243aff76bd0d1a409ac6cca3075ef3924dcc58b3463c934830b41f0a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseAllowedToolNames\u0060 swallows every exception into \u0060emptySet()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentRuntimeSupport.kt"},"region":{"startLine":1556}}}],"partialFingerprints":{"codehealthFindingId/v1":"c403277b747f3dbb6acc123effa2c59f12a301c229748f2c5d1b8c82872d45cf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseCustomToolParameterSpecs\u0060 swallows every exception into \u0060emptyMap()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentRuntimeSupport.kt"},"region":{"startLine":1580}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b863a0f4cb6431459e7689952d481d533d691cb3da173812c03c9b9408a56a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readBrainFileRaw\u0060 swallows every exception into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":19530}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55e53fd60147591b3e7f72327cbe380e435c3f8336ec6e55ee729b757bf1e0f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060prepareSkillMetadataForTurn\u0060 swallows every exception into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AgentService.kt"},"region":{"startLine":4590}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c5f56975fde0854d8161b482dfa20c67b15d493d248b902fe83330b5ddda00"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060ttsVoicesJson\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/AiToolServerService.kt"},"region":{"startLine":4748}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a58d07efca1de8d58eacb0e0eb1274b9be607223932839f5fe4064c63d41db"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060deserializeRuntimeJobs\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/DatasetForegroundService.kt"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd6441409707a5925ed63a64f97587aba140556fb99f755a4587aa6ce21ba5cf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadActiveSessionsLocked\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/GenerationDiagnosticsStore.kt"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca39e3a744ca58174d59a4d24bd0047642cd18ca3333e8e38ce8a1683aa57bc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fileOrDirectorySize\u0060 swallows every exception into \u00600L\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtGpuDiagnostics.kt"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c273b0880cc54bc836c65e96d51367073194158e965e688f53b5e2017af511"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060extractLiteRtMessageContentText\u0060 swallows every exception into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt"},"region":{"startLine":2285}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6695db81dcf8de81675a89930462e1def72233be75ae8c901d461c22184c9f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060extractLiteRtThoughtChannel\u0060 swallows every exception into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt"},"region":{"startLine":2336}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a46e27e85b71fb256f94a0ca61b589fd872ede266952e72defd1fbf765f706"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060extractLiteRtToolCalls\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt"},"region":{"startLine":2356}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae6634c0a3d5e14aa39061f1adb4547f829080b497fca8676205d4c437a9b5d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060liteRtChannelKeySummary\u0060 swallows every exception into \u0060\u0022unavailable\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtLmChatService.kt"},"region":{"startLine":2371}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e62768d69f6809f180a81fe2cde6a72d388d3504558c5917d8a9388a6ecf49"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060workerDirectorySize\u0060 swallows every exception into \u00600L\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LiteRtLmWorkerService.kt"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"da25a0fba1172303f524fbb0f0b4bef34d5f3da3a4139566d28ba1b59acf0a5f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseChatParams\u0060 swallows every exception into \u0060emptyMap()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaClientService.kt"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c5355fcc8f2e0f03adfe9e3610c00d40e7e0ee8aacbf2400c02d2394800b8c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readAll\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerSessionOwnerStore.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"260db0f5d685de9593b1121c45b15ea6a3b0a73681d55f7a4496537804b662d0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readAll\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/LlamaServerSessionStateStore.kt"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7632dded3d8ef7bcd97283b80b96e9cfe9be0256c9f44b8d5c2c03268b6ba8c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060latestSrtEndTimestampMs\u0060 swallows every exception into \u00600L\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt"},"region":{"startLine":2865}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e8934c2f1bf7f46b4910a4ec67d5149e2f81091e653cfaadb3893bf6340221"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readMediaDurationMs\u0060 swallows every exception into \u00600L\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/MediaTranslationWorkflowService.kt"},"region":{"startLine":2874}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b8415fccf656d86ce5fd3543066058e8f76d4fcddbaee0208412e38d8ce7829"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getPageCount\u0060 swallows every exception into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/PDFService.kt"},"region":{"startLine":2571}}}],"partialFingerprints":{"codehealthFindingId/v1":"f026e8623b4a75bfd02f24898df91e30f1f5dd790694701c32333ee11d6a68d7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060videoLoras\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdDistributedSettingsSupport.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f326f64a2242bc8a8eb976d2b35347e3b2ee504cc072f95b2aee53f4c989088"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060videoHighNoiseLoras\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/SdDistributedSettingsSupport.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e7cad3a76a20a6f16bde3d3abeafba3a7709f3e5d5ae41a8ab6d993cc75c81"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseDelegationParams\u0060 swallows every exception into \u0060emptyMap()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegateSubagentLoop.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d311553651e17fffc3a51afb3053dc726d796f0044e6115644254c973b8d697"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseToolCalls\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegateSubagentMessages.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5232110e5b8de2898439caf29bccea770174fe3d8e5670ec79a344986ef06b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseArguments\u0060 swallows every exception into \u0060emptyMap()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegateSubagentMessages.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c468f5c8d9b0dbe3261a5c8264dd4a9b407970f41b031feb3232761b7cfef0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060subagentCacheBytes\u0060 swallows every exception into \u00600L\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegationManager.kt"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f7edff334cacdd3307330b095ac2c584dc911492a517ba7c87837d3c07b1479"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseResultFiles\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegationStatusFormatter.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e53c360992356212c783d6657718478b6783c81c6247c00b73faef5ef8224c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060storedNotices\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/delegation/DelegationWakeDispatcher.kt"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"19662d00e1293b3a524255e32d0ea91588e85e3fb992537828b65b3aa7fcc1fa"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060decode\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/filestation/FileStationSettingsStore.kt"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"6566e2bef059f7c7c01d21db943000b222c6957607078614abc8e86a29967d0c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060freeBytes\u0060 swallows every exception into \u0060-1L\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/filestation/volume/SafVolume.kt"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4f18e51cc4f2232f6c70ecfbcee7a18083691c7a1df90a2ff5bda913877c9f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060purgeAll\u0060 swallows every exception into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/filestation/volume/TrashStore.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"012570bf62ee9b064079c1b28a6aedd128b75ed632238192737bd32385572425"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060readIndex\u0060 answers \u0060emptyList()\u0060 when \u0060JSONException\u0060 is thrown, with no log or throw \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/filestation/volume/TrashStore.kt"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b8db6d2504090e7233990abb3bc3457ce1d0bceade16b98440f5387d906716"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readMaxFrequencies\u0060 swallows every exception into \u0060emptyMap()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/perf/CpuTopology.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"174a08153185980c6d794db4cd34f8a2dc1d90e29f0f51373d7db8e0cf2f0174"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060otherLlamaResidentFileBytes\u0060 swallows every exception into \u00600L\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ram/LlamaRamGate.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"d625b5f6417845e4fc5b711bf1da7bbec1e23fbcab0eabbfc6c2386dfa81dfe8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readInactiveFileBytes\u0060 swallows every exception into \u00600L\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ram/LlamaRamGate.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8243f02f9829600988eb35d24a8542a43ff628715e150953e303c453262a21"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060residentBytesOfPid\u0060 swallows every exception into \u00600L\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/service/ram/LlamaRamGate.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"127e51af8f6d58982424bf41e3cce0fa48592679ffd1e0303feff34787b9c229"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060decodeQuestChecklistSources\u0060 swallows every exception into \u0060mutableSetOf()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":4237}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ab08cb11ec7e65c88c98fd8ff74c171d0f0187d37bc71155d3b36a0545a143"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060jsonArrayToStringList\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":4338}}}],"partialFingerprints":{"codehealthFindingId/v1":"6413f9fda2ca6e55da26aa6b896758a317fe6d24307d7da76c5ea5ca8b7e0aed"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060jsonObjectToFloatMap\u0060 swallows every exception into \u0060emptyMap()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaGameEngine.kt"},"region":{"startLine":4342}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d42335fb9543a2b9402845f17e2e18241dd7f1a20b147b8ebba1ef66c75fe7b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060decodeStringList\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/game/TamaStudySessionSupport.kt"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec64a7b5d8cf3428589632f6456493526bb04465c45f8c6cbb0137b1aa99d16"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060local\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/transfer/PetLinkModels.kt"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"c617be7f0806dd92a7a4dd26090e238ab0fe2f462944904a50c6e0a2061fbad6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060defaultLocalAddresses\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferCoordinator.kt"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8200d9349aeb8e43e96d90c5ac2bc399d07ed95362a6c23d893e348a17425f1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060decode\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/transfer/PetTransferPeerStore.kt"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"b920a79c036e54be0a2fa422101fb011ca593a9f7a970961ef8c3638ae019ad2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060decodeChecklistQuestIdsForUi\u0060 swallows every exception into \u0060emptySet()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/tama/ui/TamaScreen.kt"},"region":{"startLine":2435}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e46f97a9209c0b375783e247931f103d6d82b93f18823dd00399ae10bc8479"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060countWorkflowSrtSegments\u0060 swallows every exception into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/WorkflowsScreen.kt"},"region":{"startLine":3879}}}],"partialFingerprints":{"codehealthFindingId/v1":"808a503aa435af1f6d906d971eb321ac539c4a8b49100b3a929f632fec7810a1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseParamMap\u0060 swallows every exception into \u0060emptyMap()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatDelegationLogic.kt"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9a9d880a6f36bd80f3b7ee6d0316dfc16171a4e9a3dd8f1c420cd34cd56237"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseOptionalIntParam\u0060 swallows every exception into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatScreenSupport.kt"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"b91050d8a99e80437cef46736345c66b5c82fbba98822dd878eb50579a34de1d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060rememberDefaultsSettingsEnv\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/chat/ChatSettingsEnvFactory.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"634f89693035c17a4f207b3bc928b1f2e85bcf25034dea8e4f410e037ba10c06"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060DelegationResultCard\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/delegation/DelegationConversationTab.kt"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"adca3b7775496618d8cb8242fa863d45ec59337c21475f6dae20205b4033f597"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseToolCallNames\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/delegation/DelegationViewerSupport.kt"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"7668d904fcc5f41e59c05667aacdb53719297a7c9730255f6fbb97088cf0114b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseResultFiles\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/delegation/DelegationViewerSupport.kt"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b9a5b6ab85d03a95a34f1e00880d8e07628bbabfa95b0f2d40ba98fe825ee6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060DelegationHeader\u0060 swallows every exception into \u00600L\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/ai/llama/delegation/NativeChatDelegationScreen.kt"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd760362f41559e5c6f0bc9c4966f7b333530e822b830d78819f8d08b6eb39a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060MusicWorkspace\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/audio/music/MusicWorkspace.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc368d5bfea02e1ca7e8e54b4f964f60f5892b778e5080806c4b3699b51b489d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060GeneralSettingsScreen\u0060 swallows every exception into \u0060\u0022baseline\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/ui/settings/GeneralSettingsScreen.kt"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b4ed8a78f71361bd0cc0cfd2c7f31e1633fca2e45717af30211b5d3ce37b13"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readPersisted\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/DebugLog.kt"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81cb436aa6221277710bb0c8ba23115958f8d279beda789d2026213525fce1a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readCommandLine\u0060 swallows every exception into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/NativeProcessCleanup.kt"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b4e53bb9a0a9ee783f5a919ebc9e1c78a101bd9026c2fdbb222e6ef82d3b3f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readLines\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/example/llamadroid/util/SystemMonitor.kt"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9e57667cf36f3d86e68a8b4f2c2ed495a1587982b2c0be8f9e155939cf03f9"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"Use of a Broken or Risky Cryptographic Algorithm","shortDescription":{"text":"Use of a Broken or Risky Cryptographic Algorithm"},"helpUri":"https://cwe.mitre.org/data/definitions/327.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-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-926","guid":"0d9b5579-5549-555a-8a97-f9cc14f3ad4a","name":"Improper Export of Android Application Components","shortDescription":{"text":"Improper Export of Android Application Components"},"helpUri":"https://cwe.mitre.org/data/definitions/926.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"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-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":37,"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."]}]}