{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"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":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"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":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AC7","name":"A11y enforcement","shortDescription":{"text":"A11y enforcement"},"helpUri":"https://codehealth.canine.dev/dimensions/AC7"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"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":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"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":"XrLanguageTeacherStudyViewKt.StudyScreen (cyclomatic 106): XrLanguageTeacherStudyViewKt.StudyScreen has cyclomatic complexity 106 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherStudyView.kt"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde6a19858c04efe48be408e297b5ed2a96aea7ed34b591eeba4bea990db4c7f"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatPanelKt.ChatPanel (cyclomatic 98): ChatPanelKt.ChatPanel has cyclomatic complexity 98 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatPanel.kt"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca84b07056b4b3ae013657e4680ee60fe5a64d4e7ef5f223fd13384df61652f"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartAlbumSearchScreenKt.SmartAlbumSearchScreen (cyclomatic 74): SmartAlbumSearchScreenKt.SmartAlbumSearchScreen has cyclomatic complexity 74 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"1791132ef23998350ae83cf8579b70fe934bd983160641f0be2a7ce730aa3bda"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageInputTextKt.MessageInputText (cyclomatic 73): MessageInputTextKt.MessageInputText has cyclomatic complexity 73 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/MessageInputText.kt"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"192ad4963595171394bb25fc631c23c449b96b24a0dbfb1ed5c739af7deb9ae1"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemSpeechAsrService.startRecording (cyclomatic 66): SystemSpeechAsrService.startRecording has cyclomatic complexity 66 (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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/SystemSpeechAsrService.kt"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d56b46c99076581e52d44d054e52f75ddbcde427dc862ab898511393e7aea56"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherTtsCoordinatorKt.streamPipelinedSegments (cyclomatic 64): XrLanguageTeacherTtsCoordinatorKt.streamPipelinedSegments 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/services/XrLanguageTeacherTtsCoordinator.kt"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"670bae058a8eaa3cca59ede5670e687c73b16e232b7dd6291d943a215b4e4df3"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveMetricsBarKt.resolveLiveMetricsUiState (cyclomatic 60): LiveMetricsBarKt.resolveLiveMetricsUiState has cyclomatic complexity 60 (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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/LiveMetricsBar.kt"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f8c8f0bdcdd7024deb3efdaa7c91667cf52f78e56e93587643f54c4d3dc2eb"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherScreenKt.XrLanguageTeacherScreen (cyclomatic 55): XrLanguageTeacherScreenKt.XrLanguageTeacherScreen has cyclomatic complexity 55 (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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherScreen.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"78259fb4f2d04f385c81aebf2b7c753ae45f1ae7426182d78bcc162d2540ffca"}},{"ruleId":"D1","level":"warning","message":{"text":"MlKitTtsHelperKt.synthesisAttempt (cyclomatic 51): MlKitTtsHelperKt.synthesisAttempt 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/MlKitTtsHelper.kt"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f03d9c93a7ee34f1868fa37a6fcab284738eecb13b883e943e08bef9aa4564"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherLessonControllerKt.runLessonTurn (cyclomatic 47): XrLanguageTeacherLessonControllerKt.runLessonTurn has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherLessonController.kt"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"820e66ab74a588efb6ea0b255abeda7c52f63f10e49df7cba15196e0334a7725"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillManagerBottomSheetKt.SkillManagerBottomSheet (cyclomatic 45): SkillManagerBottomSheetKt.SkillManagerBottomSheet 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/SkillManagerBottomSheet.kt"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"8203c160e74418e41fa3eb98fc03e96f3dca19f3c46e9e797d115df106820b0a"}},{"ruleId":"D1","level":"warning","message":{"text":"DownloadAndTryButtonKt.DownloadAndTryButton (cyclomatic 45): DownloadAndTryButtonKt.DownloadAndTryButton 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/DownloadAndTryButton.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd9844a66fe3f44ab332f534d0aeb1d06c9f7baaa38b1fdef1c71b567ab7875"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartAlbumAnalysisProgressCardKt.SmartAlbumExpandableAnalysisProgressCard (cyclomatic 44): SmartAlbumAnalysisProgressCardKt.SmartAlbumExpandableAnalysisProgressCard 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumAnalysisProgressCard.kt"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b44837941d26355ac9fc6f99931543097200bc2779737c18325351ada861c5"}},{"ruleId":"D1","level":"warning","message":{"text":"TinyGardenScreenKt.MainUi (cyclomatic 43): TinyGardenScreenKt.MainUi 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/tinygarden/TinyGardenScreen.kt"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"cefe82f311ce224c1d9f6251d0a77350120e32c52199e444fda21467c0977a92"}},{"ruleId":"D1","level":"warning","message":{"text":"DownloadWorker.doWork (cyclomatic 43): DownloadWorker.doWork 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/worker/DownloadWorker.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"9815b43e6c62ffe49d905d88a3af9264bc5c4226c6b7f5929c36a719857addbe"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultPhotoLibraryService.fetchAllAssets (cyclomatic 41): DefaultPhotoLibraryService.fetchAllAssets 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"c806dd8b4cf80464da3dfcca5c5f8d10f609ca2497b6d00897d18316c5ea4c5b"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoMomentFinderViewModel.processProject (cyclomatic 40): VideoMomentFinderViewModel.processProject has cyclomatic complexity 40 (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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/VideoMomentFinderViewModel.kt"},"region":{"startLine":1160}}}],"partialFingerprints":{"codehealthFindingId/v1":"2713d200845107d87fb92d33b06af741bf7e8d6f862910b36660ad896c72fb65"}},{"ruleId":"D1","level":"warning","message":{"text":"LlmChatViewModelBase.generateResponse (cyclomatic 39): LlmChatViewModelBase.generateResponse 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatViewModel.kt"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b69de5ea98d577e7f81b88a68cbf1c05c3d66e2bf906871cbb5a8b9b963dbec"}},{"ruleId":"D1","level":"warning","message":{"text":"ClipEditorScreenKt.ClipEditorScreen (cyclomatic 38): ClipEditorScreenKt.ClipEditorScreen has cyclomatic complexity 38 (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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/ClipEditorScreen.kt"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbabf9efc37a6e0434de4bfe1e100cb1a71985eb4f82c08d9a0fceadb7d61e48"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultPhotoLibraryService.fetchAsset (cyclomatic 38): DefaultPhotoLibraryService.fetchAsset 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff50951f67f9a4e4107a9a354eed08c87f9a6115e8b57f9af82798bd7ae1584"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelItemKt.ModelItem (cyclomatic 37): ModelItemKt.ModelItem 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelItem.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c26cea7c426c937293cde46d803d9db967ec181bda739c5d6d39281eb9483c7"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherCameraViewportKt.XrLanguageTeacherCameraViewport (cyclomatic 35): XrLanguageTeacherCameraViewportKt.XrLanguageTeacherCameraViewport 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherCameraViewport.kt"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb325ecadefdd5afe773b4d0954d2e0c018275bfeee476f48ca68b1263550f3"}},{"ruleId":"D1","level":"warning","message":{"text":"GalleryNavGraphKt.GalleryNavHost (cyclomatic 34): GalleryNavGraphKt.GalleryNavHost 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/navigation/GalleryNavGraph.kt"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b7a8e17650de41a670af5e9be853c9357b0573d93b38f331f93c1bdceb8d69"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChatScreenKt.AgentChatScreen (cyclomatic 32): AgentChatScreenKt.AgentChatScreen 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AgentChatScreen.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b01371d5abd670add38fb36e9aa5c61bd64c518be01c5aebd1fc282c5de14a4"}},{"ruleId":"D1","level":"warning","message":{"text":"CutoutEditorKt.CutoutEditor (cyclomatic 32): CutoutEditorKt.CutoutEditor 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/CutoutEditor.kt"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdcb3df4f94908958d0e854f29370c42a018cf0b424d8c6f2d0f37b34a1b71d2"}},{"ruleId":"D1","level":"warning","message":{"text":"TtsPlaybackController.speak (cyclomatic 32): TtsPlaybackController.speak 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/tts/TtsPlaybackController.kt"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"030492f8dcab99c839e634b8728531768333988e971ed0d2bbe53c6fb9bf692b"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartAlbumSearchScreenKt.FullscreenVideoPlayer (cyclomatic 31): SmartAlbumSearchScreenKt.FullscreenVideoPlayer 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt"},"region":{"startLine":1942}}}],"partialFingerprints":{"codehealthFindingId/v1":"315d5029ca47b5e80bdf9296d846ad94c4ac1cc35c29443a68fe447bac686229"}},{"ruleId":"D1","level":"warning","message":{"text":"BenchmarkResultsViewerKt.BenchmarkResultsViewer (cyclomatic 31): BenchmarkResultsViewerKt.BenchmarkResultsViewer 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/benchmark/BenchmarkResultsViewer.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a8cedded75bd1499e78eccc9cf019623e88bda3c0b18ca6dabbbdc6dd661815"}},{"ruleId":"D1","level":"warning","message":{"text":"AllowedModel.toModel (cyclomatic 30): AllowedModel.toModel has cyclomatic complexity 30 (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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/ModelAllowlist.kt"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"e710417251c0cbeeac334eab5aa3eb38df2c0df8505c46597846acd565808a37"}},{"ruleId":"D1","level":"warning","message":{"text":"MobileActionsScreenKt.MainUi (cyclomatic 29): MobileActionsScreenKt.MainUi 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/mobileactions/MobileActionsScreen.kt"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"740cedda01b2df5038d7f9c16d370b65b7f07b9e38e302fa52041fa44221a462"}},{"ruleId":"D1","level":"warning","message":{"text":"SampleAlbumStorageManager.deleteSamplePhotos (cyclomatic 29): SampleAlbumStorageManager.deleteSamplePhotos 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SampleAlbumStorageManager.kt"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"51fe1cabd17dae2497ccba18831113a9c959958801d46d5c9929d3450548fb04"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartAlbumScreenKt.SmartAlbumScreen (cyclomatic 29): SmartAlbumScreenKt.SmartAlbumScreen 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumScreen.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b87ca036b6e43ba397b1130a3228cb1386bbc34ed4993269102b69a0659c155"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherVocabPopperEngine.step (cyclomatic 29): XrLanguageTeacherVocabPopperEngine.step 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabPopperEngine.kt"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"18db2fc7b2e920d293f2ae5618aa220d65de8b4aed89f9f1013ca4fa773a2d89"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherVocabRunnerEngine.step (cyclomatic 29): XrLanguageTeacherVocabRunnerEngine.step 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabRunnerEngine.kt"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46b1ef65b0b909be60ff80dd2a6998cf9ed1177da610c902d8a331f6de5e265"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigKt.convertValueToTargetType (cyclomatic 29): ConfigKt.convertValueToTargetType 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/Config.kt"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b6fe51d77a311fefe15f40f4c280c94c891a3ed6968e9abc3b3f5ed8a3389d"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultPhotoLibraryService.loadBitmap (cyclomatic 29): DefaultPhotoLibraryService.loadBitmap 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":1153}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3af5c7a294a27919738e15c5be9fae15ea8d096d0fd8f953770b99331fd72f"}},{"ruleId":"D1","level":"warning","message":{"text":"GlobalModelManagerKt.GlobalModelManager (cyclomatic 29): GlobalModelManagerKt.GlobalModelManager 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/GlobalModelManager.kt"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeecde9a3086cc333f959b995a573e35b1f36acf27c5c9c3d00d0d611e3dbfec"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectDetailsScreenKt.MomentSearchPanel (cyclomatic 28): ProjectDetailsScreenKt.MomentSearchPanel 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/ProjectDetailsScreen.kt"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb69e9a9967d4089273dd6b064b7993e7213c554224741baa84b498f357891b6"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelPageAppBarKt.TaskConfigDialog (cyclomatic 28): ModelPageAppBarKt.TaskConfigDialog 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ModelPageAppBar.kt"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65742e556d1aaac20481b3c8d57d1108104a7e50b967780f7e69c85df0865d8"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherDialogueFormatter.wrapPhraseWithTargetInDialogue (cyclomatic 27): XrLanguageTeacherDialogueFormatter.wrapPhraseWithTargetInDialogue 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherDialogueFormatter.kt"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aaee6642e468ee458308c25adaefab809ea593833d9dfdd519b2698f42174f6"}},{"ruleId":"D1","level":"warning","message":{"text":"PcmAudioRecorder.streamAudioChunks (cyclomatic 27): PcmAudioRecorder.streamAudioChunks 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/PcmAudioRecorder.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"822854cc04a0dcf5806fe31661a617e050890b0abf60a05dce7a8f3f827a9e44"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelRadioItemKt.ModelRadioItem (cyclomatic 27): ModelRadioItemKt.ModelRadioItem 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelRadioItem.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a30bafc0fb0dff082e26f28a56b10f6346b6c2a46373132a27dde019f88a88"}},{"ruleId":"D1","level":"warning","message":{"text":"ScrapbookViewModel.applyCutoutEdits (cyclomatic 26): ScrapbookViewModel.applyCutoutEdits 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/ScrapbookViewModel.kt"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4024a5bc816619aed5850a577532f8b9e1c262fb95e9761d3e520b52e4e7b2"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherTtsFillersAndPreviewKt.playPersonaPreview (cyclomatic 26): XrLanguageTeacherTtsFillersAndPreviewKt.playPersonaPreview 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/services/XrLanguageTeacherTtsFillersAndPreview.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b8ebf288e5a9e350a51d44258e97acb21cb9f9f92dcbb3c22b1e9fa991b6eca"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaPipeTtsEngine.synthesize (cyclomatic 26): MediaPipeTtsEngine.synthesize 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/MediaPipeTtsEngine.kt"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6cb37c1770ac10417929cf0630780c54630265690f12696b583b36fa14fbf0a"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigAudioTabMapperKt.buildAsrStatusRow (cyclomatic 26): ConfigAudioTabMapperKt.buildAsrStatusRow 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ConfigAudioTabMapper.kt"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a7f367eb519913d5eae24bbc81b99dafd4de50f836ddbea569bd3414e20418"}},{"ruleId":"D1","level":"warning","message":{"text":"CollageEditorKt.CollageEditor (cyclomatic 25): CollageEditorKt.CollageEditor 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/CollageEditor.kt"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"f88f2245bdee0d1c6d3d4263c23a207ca7aa574ee6b92c120e9a5e9c4d7880d7"}},{"ruleId":"D1","level":"warning","message":{"text":"AsrModelRegistry.resolveModelFile (cyclomatic 25): AsrModelRegistry.resolveModelFile 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/AsrModelRegistry.kt"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"610681f0d9a3cdc47f4e3aac96c010047035b65c39282455be7bb446ba44127a"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultPhotoLibraryService.fetchDetailedAsset (cyclomatic 25): DefaultPhotoLibraryService.fetchDetailedAsset 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f961fa28ea8a942f7ad84a3badd6c686ec8233b5c59a57d2ad378d29d4e255d"}},{"ruleId":"D1","level":"warning","message":{"text":"OptionalComponentsPanelKt.OptionalComponentsPanel (cyclomatic 25): OptionalComponentsPanelKt.OptionalComponentsPanel 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/OptionalComponentsPanel.kt"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad0d1249fc4f63208c9a56bbdba5f42f5eb7e865838c5e87465de47a67f234c"}},{"ruleId":"D1","level":"warning","message":{"text":"TtsPlaybackController.playPcmStream (cyclomatic 25): TtsPlaybackController.playPcmStream 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/tts/TtsPlaybackController.kt"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e0c962c06b51e9d5adad73356615012e1aaba69a9731f9713b36543047d000"}},{"ruleId":"D1","level":"warning","message":{"text":"SampleAlbumStorageManager.getSamplesDirectory (cyclomatic 24): SampleAlbumStorageManager.getSamplesDirectory 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SampleAlbumStorageManager.kt"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"418c6702e054f0c73db59e56b5f746cc0f8c43a75cb6bcf7b433cb1435fe8b2b"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelPageAppBarKt.ModelPageAppBar (cyclomatic 24): ModelPageAppBarKt.ModelPageAppBar 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ModelPageAppBar.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"11819dae92adc8e66d544155de4f4622cecb2894fa108949e08a18540f89216b"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelManagerViewModel.loadModelAllowlist (cyclomatic 24): ModelManagerViewModel.loadModelAllowlist 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelManagerViewModel.kt"},"region":{"startLine":2136}}}],"partialFingerprints":{"codehealthFindingId/v1":"014d2a4c422de60fd61a05ca9b9dd4fe2041167ef8565cbb7b1015061992b826"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartAlbumScreenKt.SmartAlbumMainContent (cyclomatic 23): SmartAlbumScreenKt.SmartAlbumMainContent 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumScreen.kt"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"226357db84960929e304611620469bf64edc33538aa60aa10f569d572354cf87"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherTask.MainScreen (cyclomatic 23): XrLanguageTeacherTask.MainScreen 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/XrLanguageTeacherTask.kt"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed38a52ffe52e14653404f6673756ed6caefb1ec01acab2ef7c05532b4a68049"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherVocabBottomSheetKt.ActiveLessonBottomSheet (cyclomatic 23): XrLanguageTeacherVocabBottomSheetKt.ActiveLessonBottomSheet 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherVocabBottomSheet.kt"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc33cb472f9a7cc5ea4033133d746814f96ac69b9a2f100fa3a580e75025985"}},{"ruleId":"D1","level":"warning","message":{"text":"LlmChatModelHelper.runInference (cyclomatic 23): LlmChatModelHelper.runInference 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatModelHelper.kt"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"629992a639a7030a86a5f8088a6d7fb64e7bdca34d418258cea7296871dda2f2"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherCameraViewKt.XrGlassesModeScreen (cyclomatic 22): XrLanguageTeacherCameraViewKt.XrGlassesModeScreen 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherCameraView.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c99b0ec5d4ece6771be620fd30aae089a371f23d0504a9aa9989f368a3efc2"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeScreenKt.HomeScreen (cyclomatic 22): HomeScreenKt.HomeScreen 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/home/HomeScreen.kt"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0983d83ef8d37e62a182853b05d32bb540f08526dd51ad7e6e0d28b54c28aae"}},{"ruleId":"D1","level":"warning","message":{"text":"PromptTemplatesPanelKt.PromptTemplatesPanel (cyclomatic 22): PromptTemplatesPanelKt.PromptTemplatesPanel 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/PromptTemplatesPanel.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a97875fa3100a182b2561757a0d4e234c68354b1e404a3dc3c9ecc88bd323c"}},{"ruleId":"D1","level":"warning","message":{"text":"LanguagePacksPanelKt.LanguageSelectionRow (cyclomatic 22): LanguagePacksPanelKt.LanguageSelectionRow 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/LanguagePacksPanel.kt"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"994aa6fbe10f31a8f3f983b47788e15ecd48685a1f9b78e503fda644092da074"}},{"ruleId":"D1","level":"warning","message":{"text":"SupplementaryModelCardMapperKt.buildSupplementaryCard (cyclomatic 22): SupplementaryModelCardMapperKt.buildSupplementaryCard 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/SupplementaryModelCardMapper.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"286ab99246d56b3319289996da517e9940ceff80aee734c8db589f9c3f662372"}},{"ruleId":"D1","level":"warning","message":{"text":"AddMcpServerFromUrlDialogKt.AddMcpServerFromUrlDialog (cyclomatic 21): AddMcpServerFromUrlDialogKt.AddMcpServerFromUrlDialog 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddMcpServerFromUrlDialog.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"383d4b936451940c92bb98252a39eaba5d481e8238ac0a7ec25486781a5f08c0"}},{"ruleId":"D1","level":"warning","message":{"text":"AddOrEditSkillBottomSheetKt.AddOrEditSkillBottomSheet (cyclomatic 21): AddOrEditSkillBottomSheetKt.AddOrEditSkillBottomSheet 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddOrEditSkillBottomSheet.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"116ddc9512ac0af5fbb1cefb99febf22d6db27d25e030d0d39331692898219c9"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherXrControllerKt.handleGlassesGesture (cyclomatic 21): XrLanguageTeacherXrControllerKt.handleGlassesGesture 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherXrController.kt"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e5b739c905f5a97134573e206a12be8b0c1ce0e0d93fda877c0b94ff34bcba"}},{"ruleId":"D1","level":"warning","message":{"text":"SpeechProcessorAsrService.runRecordingSession (cyclomatic 21): SpeechProcessorAsrService.runRecordingSession 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/SpeechProcessorAsrService.kt"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8baad9ac6519c2b07e992409dac448542983af3ed26c39745fd411507260b62"}},{"ruleId":"D1","level":"warning","message":{"text":"MlKitTtsEngine.warmClientForLocale (cyclomatic 21): MlKitTtsEngine.warmClientForLocale 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/MlKitTtsEngine.kt"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ac4a8ce73c838979e20507e4933d26cf56a06324261af283894631d0a025eb"}},{"ruleId":"D1","level":"warning","message":{"text":"ScrapbookScreenKt.ScrapbookScreen (cyclomatic 20): ScrapbookScreenKt.ScrapbookScreen 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/ScrapbookScreen.kt"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fdaa2ad7294b22e583b7f770f5bd345a7232c7bd3a598455388e00aa296129a"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartAlbumSearchScreenKt.EmbeddingInfoScreen (cyclomatic 20): SmartAlbumSearchScreenKt.EmbeddingInfoScreen 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt"},"region":{"startLine":2220}}}],"partialFingerprints":{"codehealthFindingId/v1":"9459d46a213ade940df3fdc5ecbb2da8b35a56d5d130273e52745d144b1b0e65"}},{"ruleId":"D1","level":"warning","message":{"text":"Mp4NormalizerKt.remuxToProgressiveMp4 (cyclomatic 20): Mp4NormalizerKt.remuxToProgressiveMp4 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/Mp4Normalizer.kt"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15dac6db862743b04bdb3c8c7025a7109c055413829a54941ffa89d3f70ac6b"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherVocabRunnerEngine.refreshChoicesIfNeeded (cyclomatic 20): XrLanguageTeacherVocabRunnerEngine.refreshChoicesIfNeeded 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabRunnerEngine.kt"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"92fdc85a681dbd65f4dfd4c11911df8e7261f24a2d1982a5a504227699abb69f"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherAsrCoordinatorKt.startRecognitionSegment (cyclomatic 20): XrLanguageTeacherAsrCoordinatorKt.startRecognitionSegment 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/services/XrLanguageTeacherAsrCoordinator.kt"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64206dd10a49d303aad388ef10736e6eb9d433a363ab5cdcb03969c6680cd3e"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherVocabBottomSheetKt.FollowUpLessonControls (cyclomatic 20): XrLanguageTeacherVocabBottomSheetKt.FollowUpLessonControls 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherVocabBottomSheet.kt"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f47488731d5f410029b0eba0dea817a587c4dc29817686c20e1f0645f6eb9b"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherFlashcardReviewViewKt.FlashcardReviewScreen (cyclomatic 20): XrLanguageTeacherFlashcardReviewViewKt.FlashcardReviewScreen 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherFlashcardReviewView.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8dd3f99cb6f0b105c29236bc0edee89def1bbdb9739baa9cc7744f1379f95d"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatViewKt.ChatView (cyclomatic 20): ChatViewKt.ChatView 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatView.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f74fe9fb71e63f4f3217429d4dbe75c9f79dc4bd83c6df87152b72b2e4b8a63"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageInputTextKt.handleTextFilesSelected (cyclomatic 20): MessageInputTextKt.handleTextFilesSelected 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/MessageInputText.kt"},"region":{"startLine":1487}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e186779fc57c68a45aea53049175e7b5c040e8dd851ccb6e3f416368a9edbe"}},{"ruleId":"D1","level":"warning","message":{"text":"SampleAlbumStorageManager.downloadAndExtractSamples (cyclomatic 19): SampleAlbumStorageManager.downloadAndExtractSamples 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SampleAlbumStorageManager.kt"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"7165a9c1ba8c7456484b11d6d21f4d4a25bb06fe50cd9d02e93bfa18dfa5ab6e"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectDetailsScreenKt.ProjectDetailsScreen (cyclomatic 19): ProjectDetailsScreenKt.ProjectDetailsScreen 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/ProjectDetailsScreen.kt"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b4353fca0feb1dc33401e9270a753349c94edb1981ba649f034ef28445ef05"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherSpeechMatcher.findTargetWordSpoken (cyclomatic 19): XrLanguageTeacherSpeechMatcher.findTargetWordSpoken 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherSpeechMatcher.kt"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"035be0abc575e372fbb8e6a20168f2df6ef14dcd04fe4480fb0e6046fd45df36"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherTtsCoordinatorKt.presynthesizeGamePromptWords (cyclomatic 19): XrLanguageTeacherTtsCoordinatorKt.presynthesizeGamePromptWords 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/services/XrLanguageTeacherTtsCoordinator.kt"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc072e032048a942edb832c9926aa86a00802c8791567eae11741d3d18035162"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherPreferencesControllerKt.applyTeacherPreferences (cyclomatic 19): XrLanguageTeacherPreferencesControllerKt.applyTeacherPreferences 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherPreferencesController.kt"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"03eab9fc68092c0cb047a4c144863c868a41ee34b79b42490b5d58efb495c6a9"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherSessionHistoryControllerKt.saveCurrentLessonSession (cyclomatic 19): XrLanguageTeacherSessionHistoryControllerKt.saveCurrentLessonSession 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherSessionHistoryController.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e058172f99fd1c1fd69088b873015e86100104f827764729458c2f103274c3"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherVocabGameChromeKt.VocabGameScoreboard (cyclomatic 19): XrLanguageTeacherVocabGameChromeKt.VocabGameScoreboard 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabGameChrome.kt"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"2079b565e0e23372b7f62e31847d9fe6b2911906e64cad73f29df6ddb583f78e"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultDownloadRepository.observeWorkerProgress (cyclomatic 19): DefaultDownloadRepository.observeWorkerProgress 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/DownloadRepository.kt"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5c570df0e80a0bccdbbc24b240d9ddd3b3cfadea6e865310d926e8236a5054"}},{"ruleId":"D1","level":"warning","message":{"text":"TtsTextNormalizer.splitIntoClauses (cyclomatic 19): TtsTextNormalizer.splitIntoClauses 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/TtsTextNormalizer.kt"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54c49c114e7b2c4aa797e3aad87a9ff9ee7072884d11b959c63164370d855f9"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelNameAndStatusKt.ModelStatusDetails (cyclomatic 19): ModelNameAndStatusKt.ModelStatusDetails 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelNameAndStatus.kt"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"6efa892c19f84a1182fac39e4eaa384d9ba681f0f617dadf81a7f449597962e1"}},{"ruleId":"D1","level":"warning","message":{"text":"LlmChatModelHelper.loadEngine (cyclomatic 19): LlmChatModelHelper.loadEngine 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatModelHelper.kt"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"b121c3c54938bed2d057711282017acfd2b4b4f7decd7bdfb858aad658f14107"}},{"ruleId":"D1","level":"warning","message":{"text":"LanguagePacksPanelKt.LanguagePackRow (cyclomatic 19): LanguagePacksPanelKt.LanguagePackRow 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/LanguagePacksPanel.kt"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5dfc84de6cba18aae13687b73d1ad45eb18e72de8394a797a20e29c5908e74c"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelManagerViewModel.deleteModel (cyclomatic 19): ModelManagerViewModel.deleteModel 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelManagerViewModel.kt"},"region":{"startLine":1383}}}],"partialFingerprints":{"codehealthFindingId/v1":"35083d7c9f0604ae1f2d112162df03618e6b3ab3b81b843363cff2722a92e20b"}},{"ruleId":"D1","level":"warning","message":{"text":"VoicePreviewController.startVoicePreview (cyclomatic 19): VoicePreviewController.startVoicePreview 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/VoicePreviewController.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"56992253e68c283dfb872f2deba49cf8bac0eb4157f3c581a810a74a67919487"}},{"ruleId":"D1","level":"warning","message":{"text":"TruncationContextCompactor.compactContextReportingSize (cyclomatic 18): TruncationContextCompactor.compactContextReportingSize 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/sessions/TruncationContextCompactor.kt"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e6789e48e6db6fef39fcc0208eaa498bd84b39e572772858f5ba8e4e6c450fa"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartAlbumViewModel.observeWorkManagerProgress (cyclomatic 18): SmartAlbumViewModel.observeWorkManagerProgress 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumViewModel.kt"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb2001b15b102ece9f4efbade2239abd28ee9781a5ee2fddd7dcc733078b8ae"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoMomentFinderViewModel.searchForMoment (cyclomatic 18): VideoMomentFinderViewModel.searchForMoment 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/VideoMomentFinderViewModel.kt"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"99fc4e8eafb3f84710c4571b1314cb0af947a2112379bb3251bc6ab8b1fc2d90"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherStickerCutout.planCutout (cyclomatic 18): XrLanguageTeacherStickerCutout.planCutout 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherStickerCutout.kt"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f9c9ad88836ea36a5d4e3d0009f87a6a0724e0672ea0d1d46ea322cce72d05b"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherStickerModelDownloadController.onModelStatusChanged (cyclomatic 18): XrLanguageTeacherStickerModelDownloadController.onModelStatusChanged 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherStickerModelDownload.kt"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f817b9b322a5d8a346e85f2453d0c2d8d83b487cdaab44f629a0c42012bf6b2"}},{"ruleId":"D1","level":"warning","message":{"text":"PlatformTtsEngine.prepare (cyclomatic 18): PlatformTtsEngine.prepare 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/PlatformTtsEngine.kt"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb6e042f128fdc2e6b5da0063239b6a03ff631a826931bf8110d5dde4f6c5d7f"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelNameAndStatusKt.ModelNameAndStatus (cyclomatic 18): ModelNameAndStatusKt.ModelNameAndStatus 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelNameAndStatus.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc5b038bd8bee197b9062c45b31dd59201a9f77781d579cef53d6f86540f58b"}},{"ruleId":"D1","level":"warning","message":{"text":"index.html.fetchWikiFuzzyAndInfobox (cyclomatic 18): index.html.fetchWikiFuzzyAndInfobox has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function literal 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":"Android/src/app/src/main/assets/skills/query-wikipedia/scripts/index.html"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bbb02d7eadbb341ca1a0f03c9842433dedd912e258ae3a8eb173b4669bd92ea"}},{"ruleId":"D1","level":"warning","message":{"text":"index.html.fetchWikiFuzzyAndInfobox (cyclomatic 18): index.html.fetchWikiFuzzyAndInfobox has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function literal 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":"skills/built-in/query-wikipedia/scripts/index.html"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"a862681b3c724462b982ca2d5dc1c07684ec82b9b6901bb9da86fa672aed0dd9"}},{"ruleId":"D1","level":"warning","message":{"text":"MetricsLogger.buildFirebaseBundle (cyclomatic 17): MetricsLogger.buildFirebaseBundle 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/common/metrics/MetricsLogger.kt"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a3f4430ca834a28f9a3b0b8e60f0d227f843672b3561aaf42bdec0a75e279b"}},{"ruleId":"D1","level":"warning","message":{"text":"SegmenterKt.Segmenter (cyclomatic 17): SegmenterKt.Segmenter 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/Segmenter.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eefa5d2585a23641556e625a3a1e42d34d927885145a05806d4925c2de43bb4"}},{"ruleId":"D1","level":"warning","message":{"text":"ClipTrimmerKt.ClipTrimmer (cyclomatic 17): ClipTrimmerKt.ClipTrimmer 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/ClipTrimmer.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e8fc4125feac04eff1fb7be1c1179014301285c50b6fafdb97430069e669d2"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoMomentFinderViewModel.importVideo (cyclomatic 17): VideoMomentFinderViewModel.importVideo 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/VideoMomentFinderViewModel.kt"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7624082a2408aab00555bbfab8f9e72df02de8c251474afd9cd9fc082743c2"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherEducationalCardsKt.toLessonHistorySession (cyclomatic 17): XrLanguageTeacherEducationalCardsKt.toLessonHistorySession 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherEducationalCards.kt"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"331f5a6c35f618211bbc2663d15c907976c6ecc60c7c7af02e9b3140b6b2e55d"}},{"ruleId":"D1","level":"warning","message":{"text":"MlKitAsrService.startRecording (cyclomatic 17): MlKitAsrService.startRecording 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/MlKitAsrService.kt"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"12907fa313976581b23bcf035ac42e0e7d0b5c5bf9bdc68003bb30a33f4c0cab"}},{"ruleId":"D1","level":"warning","message":{"text":"SpeechProcessorAsrService.startRecording (cyclomatic 17): SpeechProcessorAsrService.startRecording 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/SpeechProcessorAsrService.kt"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f8fc1cd28f565b724c7440613446f160015b1c3a0f428ca0270f49e82a4e088"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultPhotoLibraryService.queryMediaStoreAssetIds (cyclomatic 17): DefaultPhotoLibraryService.queryMediaStoreAssetIds 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"40708ca975241b36d2a449608c35355eb315244ec1802873ba7823d349451fe4"}},{"ruleId":"D1","level":"warning","message":{"text":"BenchmarkResultsViewerKt.ValueSeriesRow (cyclomatic 17): BenchmarkResultsViewerKt.ValueSeriesRow 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/benchmark/BenchmarkResultsViewer.kt"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c61868113b38b97be186c0d72a70020bb1ef9be2f7c3e42d4a3831422e4875"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigDialogKt.AudioModelDropdownMenuItem (cyclomatic 17): ConfigDialogKt.AudioModelDropdownMenuItem 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ConfigDialog.kt"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b577c689a0dd81fac210900172996592fd5bdc050cd5f648ed047ef509a5846"}},{"ruleId":"D1","level":"warning","message":{"text":"LlmChatScreenKt.ChatViewWrapper (cyclomatic 17): LlmChatScreenKt.ChatViewWrapper 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatScreen.kt"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"affd52bb0b5c1201ac238bf9d576958620bc85610528678c693becc4cdbf8dea"}},{"ruleId":"D1","level":"warning","message":{"text":"SupplementaryModelCardMapperKt.readyCard (cyclomatic 17): SupplementaryModelCardMapperKt.readyCard has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/SupplementaryModelCardMapper.kt"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"042864e71dbdb54fbea4abc75b0175ed7a63a4e4a3c8c12fcfc6a508ecad9d6e"}},{"ruleId":"D1","level":"warning","message":{"text":"TtsModelDetailsKt.VoiceProfilesPanel (cyclomatic 17): TtsModelDetailsKt.VoiceProfilesPanel 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/TtsModelDetails.kt"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"579c9dbc8c3f88378d32935c3e0c928e1930da32449bfb4ddc4f36d7daece40d"}},{"ruleId":"D1","level":"warning","message":{"text":"DownloadZipExtractorKt.extractDownloadedZip (cyclomatic 17): DownloadZipExtractorKt.extractDownloadedZip 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/worker/DownloadZipExtractor.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"89bfa982d6d7775f8556ca7dcd02fd7d55fd5bcabcacfe1696c12f560dd81119"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartAlbumViewModel.triggerPrioritizedIndexing (cyclomatic 16): SmartAlbumViewModel.triggerPrioritizedIndexing 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumViewModel.kt"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb54c019f4f7fd5ebd50a1e44620b371fbed770464a1cbf0ab3a28c0cf42e5c"}},{"ruleId":"D1","level":"warning","message":{"text":"ProcessingConfigDialogKt.ProcessingConfigDialog (cyclomatic 16): ProcessingConfigDialogKt.ProcessingConfigDialog 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/ProcessingConfigDialog.kt"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c04a656c9f9ce7d867290d2f620e8a8624369d12c6d62fa4e91267b9d96e58f"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectDetailsScreenKt.ScrubberAndControls (cyclomatic 16): ProjectDetailsScreenKt.ScrubberAndControls 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/ProjectDetailsScreen.kt"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"710e09ea509f976696171523e862dac31f49febe2a2524364cac1ab34654a5a7"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherVocabularyStoreKt.writeDictionaryEntry (cyclomatic 16): XrLanguageTeacherVocabularyStoreKt.writeDictionaryEntry 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabularyStore.kt"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0889e2ea651cf1338d6abdfe6eb57cea267716888021b809a13020d2a5b6b4c"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherTtsEngineManagerKt.prepareSelectedTtsEngine (cyclomatic 16): XrLanguageTeacherTtsEngineManagerKt.prepareSelectedTtsEngine 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/services/XrLanguageTeacherTtsEngineManager.kt"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d2bae094332bfe85e9f2acbcd4b82793bdd83d3f9ebaf38911adadf99021390"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherTtsFillersAndPreviewKt.presynthesizeFillersIfIdle (cyclomatic 16): XrLanguageTeacherTtsFillersAndPreviewKt.presynthesizeFillersIfIdle 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/services/XrLanguageTeacherTtsFillersAndPreview.kt"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1531756206d095303457929d393e20923a5217575a80ec402cecd885304cd5d"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherLanguageFormKt.LanguageDropdownField (cyclomatic 16): XrLanguageTeacherLanguageFormKt.LanguageDropdownField 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherLanguageForm.kt"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c99c3a2f9e67b386afd55b33461100fa1b80aa029732a60ba64b1012c9dd5c"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherInputModesKt.TeacherPromptBox (cyclomatic 16): XrLanguageTeacherInputModesKt.TeacherPromptBox 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherInputModes.kt"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9e0307c247c058c6cb0a25cf8c755886f3de5c6a4f37d85abefa9119fe62e3"}},{"ruleId":"D1","level":"warning","message":{"text":"XrLanguageTeacherVocabGameChromeKt.VocabGameStreakBadge (cyclomatic 16): XrLanguageTeacherVocabGameChromeKt.VocabGameStreakBadge has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabGameChrome.kt"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"efff9317fef5984516b7b8d42b3b917616d5dd402e1f35f8a9c71c30d6829594"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultPhotoLibraryService.extractVideoKeyframes (cyclomatic 16): DefaultPhotoLibraryService.extractVideoKeyframes 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f9e6b090a036af4dc795eeabc95b7eb472669ff2c45da0e6f78aaa073223ae"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveCameraViewKt.LiveCameraView (cyclomatic 16): LiveCameraViewKt.LiveCameraView 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/LiveCameraView.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"21dd01c303af02f0166a33c7c093200fe905a66029ff52a44ffc317e9c487c99"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatMessageMapper.serializeMessage (cyclomatic 16): ChatMessageMapper.serializeMessage 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatMessageMapper.kt"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b8a2d77caf0bf87637023320c1fb1e86844d5cd85e614114c562b4eee1ea70"}},{"ruleId":"D1","level":"warning","message":{"text":"TtsMessageBlocksKt.findRenderedWordRange (cyclomatic 16): TtsMessageBlocksKt.findRenderedWordRange 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/tts/TtsMessageBlocks.kt"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"7519c9e0147eea63d4c440a6818601185305c36a93c538dc82106766c857d919"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsDialogKt.SettingsDialog (cyclomatic 16): SettingsDialogKt.SettingsDialog 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/home/SettingsDialog.kt"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf48ef84b8c05dc0266844bd120daf5aed9866767de5aa552b8eec5ebeb87c9"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigAudioTabMapperKt.buildConfigTtsSection (cyclomatic 16): ConfigAudioTabMapperKt.buildConfigTtsSection 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: ConfigAudioTabMapperKt.toModelItemStatus (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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ConfigAudioTabMapper.kt"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5eae6cec9e1668f650e12459a5af31e899b138d4ee500b947b9b1892196a14"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherStudyViewKt.StudyScreen (cognitive 190): XrLanguageTeacherStudyViewKt.StudyScreen has cognitive complexity 190 (threshold 15). Drivers by points: if/else 105 (145 pts), boolean chains 31, match/switch 8 (14 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherStudyView.kt"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a59d3f3026f9434a31d2bd0774a25d497703affa6e3036cdf19c666e32b6b5"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAlbumSearchScreenKt.SmartAlbumSearchScreen (cognitive 182): SmartAlbumSearchScreenKt.SmartAlbumSearchScreen has cognitive complexity 182 (threshold 15). Drivers by points: if/else 69 (156 pts), boolean chains 19, match/switch 2 (7 pts) (nesting depth added 92). 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"e320957841bf879001f094c0f0b2cfda95d7b9631ee6c2dbf1741e06bb14c2c1"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageInputTextKt.MessageInputText (cognitive 142): MessageInputTextKt.MessageInputText has cognitive complexity 142 (threshold 15). Drivers by points: if/else 62 (106 pts), boolean chains 15, match/switch 5 (11 pts), loops 4 (8 pts), error handling 2 (nesting depth added 54). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/MessageInputText.kt"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"37fdaca2d9db0fbbf5645d1ad618b808f7cc5c1c5fb12979c2b239947ec1ee89"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherTtsCoordinatorKt.streamPipelinedSegments (cognitive 136): XrLanguageTeacherTtsCoordinatorKt.streamPipelinedSegments has cognitive complexity 136 (threshold 15). Drivers by points: if/else 36 (89 pts), error handling 13 (26 pts), loops 5 (9 pts), boolean chains 8, match/switch 3 (4 pts) (nesting depth added 71). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/services/XrLanguageTeacherTtsCoordinator.kt"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"744a0555bf1be58abb1933de087baaee6f801d58d7b2028ad12e13ab943091a2"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultPhotoLibraryService.fetchAllAssets (cognitive 135): DefaultPhotoLibraryService.fetchAllAssets has cognitive complexity 135 (threshold 15). Drivers by points: if/else 49 (112 pts), loops 4 (9 pts), error handling 3 (8 pts), boolean chains 6 (nesting depth added 73). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"58618f195d75079494a0d01d5a99ff06a5fd12e1e32706f03a298666c699c1ae"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatPanelKt.ChatPanel (cognitive 129): ChatPanelKt.ChatPanel has cognitive complexity 129 (threshold 15). Drivers by points: if/else 62 (94 pts), boolean chains 27, loops 4 (5 pts), match/switch 2 (3 pts) (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatPanel.kt"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"6379d4639f0be3c0853e05eb40659fdfa866990b96052758ed01a3b6ddd4877a"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadWorker.doWork (cognitive 109): DownloadWorker.doWork has cognitive complexity 109 (threshold 15). Drivers by points: if/else 25 (76 pts), match/switch 2 (10 pts), boolean chains 9, loops 3 (8 pts), error handling 3 (6 pts) (nesting depth added 67). 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/worker/DownloadWorker.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a9ace69e5956985dfbf61147443188b64f2cca1b33f47e53e34da76adca88ac"}},{"ruleId":"D2","level":"warning","message":{"text":"CollageEditorKt.CollageEditor (cognitive 95): CollageEditorKt.CollageEditor has cognitive complexity 95 (threshold 15). Drivers by points: if/else 33 (91 pts), loops 2 (4 pts) (nesting depth added 60). 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/CollageEditor.kt"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"334c251365cafb2255d6977ab84bedb7e5ff6556610a4177bbc2b4a7febd5a71"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillManagerBottomSheetKt.SkillManagerBottomSheet (cognitive 92): SkillManagerBottomSheetKt.SkillManagerBottomSheet has cognitive complexity 92 (threshold 15). Drivers by points: if/else 52 (88 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/SkillManagerBottomSheet.kt"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"2374cfbb145787d55625525fa5382d1b1b863614187e47aaf1b6e25227c5b882"}},{"ruleId":"D2","level":"warning","message":{"text":"MobileActionsScreenKt.MainUi (cognitive 91): MobileActionsScreenKt.MainUi has cognitive complexity 91 (threshold 15). Drivers by points: if/else 28 (70 pts), loops 5 (17 pts), boolean chains 4 (nesting depth added 54). 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/mobileactions/MobileActionsScreen.kt"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ae9e02f2ae98e338e2dd7db2759a02d4669e2580a007360647a2bab11dcc9b"}},{"ruleId":"D2","level":"warning","message":{"text":"MlKitTtsHelperKt.synthesisAttempt (cognitive 89): MlKitTtsHelperKt.synthesisAttempt has cognitive complexity 89 (threshold 15). Drivers by points: if/else 32 (65 pts), boolean chains 8, error handling 5 (7 pts), match/switch 3 (6 pts), loops 2 (3 pts) (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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/MlKitTtsHelper.kt"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7fc594d7da71e1c8c12351ebdd9da49719be126fdbbf0e24ed78560b6b2411b"}},{"ruleId":"D2","level":"warning","message":{"text":"TtsPlaybackController.speak (cognitive 85): TtsPlaybackController.speak has cognitive complexity 85 (threshold 15). Drivers by points: if/else 25 (71 pts), match/switch 2 (6 pts), error handling 2 (4 pts), boolean chains 3, loops 1 (nesting depth added 52). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/tts/TtsPlaybackController.kt"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1587079c82c02dfdc0e5656322c8289594c755537a234288373e26ffb0a0a9f"}},{"ruleId":"D2","level":"warning","message":{"text":"BenchmarkResultsViewerKt.BenchmarkResultsViewer (cognitive 84): BenchmarkResultsViewerKt.BenchmarkResultsViewer has cognitive complexity 84 (threshold 15). Drivers by points: if/else 41 (78 pts), loops 1 (4 pts), boolean chains 2 (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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/benchmark/BenchmarkResultsViewer.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"567e8f360b138afee322bf1ba5271e82b3974061a66727263859b78ad605b720"}},{"ruleId":"D2","level":"warning","message":{"text":"CutoutEditorKt.CutoutEditor (cognitive 80): CutoutEditorKt.CutoutEditor has cognitive complexity 80 (threshold 15). Drivers by points: if/else 36 (69 pts), loops 2 (6 pts), match/switch 2 (5 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/CutoutEditor.kt"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e434be70ad38e1c4e02084f59793d790f551fc18cffadb4eba90aabf6ca679"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherLessonControllerKt.runLessonTurn (cognitive 80): XrLanguageTeacherLessonControllerKt.runLessonTurn has cognitive complexity 80 (threshold 15). Drivers by points: if/else 46 (65 pts), boolean chains 8, loops 1 (5 pts), match/switch 1 (2 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherLessonController.kt"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de0dc140065f25663ca3b9c86917200102bc9bcd8756935070333554c4d9f13"}},{"ruleId":"D2","level":"warning","message":{"text":"GalleryNavGraphKt.GalleryNavHost (cognitive 78): GalleryNavGraphKt.GalleryNavHost has cognitive complexity 78 (threshold 15). Drivers by points: if/else 36 (69 pts), boolean chains 6, loops 1 (2 pts), match/switch 1 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/navigation/GalleryNavGraph.kt"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"772de014cbf6ccbbda9a4e273e42e2ecf2fd308531167f76cbcd58b0bcfcb288"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultPhotoLibraryService.fetchAsset (cognitive 72): DefaultPhotoLibraryService.fetchAsset has cognitive complexity 72 (threshold 15). Drivers by points: if/else 36 (63 pts), error handling 3 (5 pts), boolean chains 4 (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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"c238c65b3292d8b09fb624517ffe4e0374687f2fbbe9d03eef27a0f2f27424af"}},{"ruleId":"D2","level":"warning","message":{"text":"ClipEditorScreenKt.ClipEditorScreen (cognitive 71): ClipEditorScreenKt.ClipEditorScreen has cognitive complexity 71 (threshold 15). Drivers by points: if/else 50 (64 pts), boolean chains 6, loops 1 (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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/ClipEditorScreen.kt"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f576a9ef85804bb1310dbef4e478b6ebb08bae8ee93a86d58f33bcf3f5b489"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadAndTryButtonKt.DownloadAndTryButton (cognitive 71): DownloadAndTryButtonKt.DownloadAndTryButton has cognitive complexity 71 (threshold 15). Drivers by points: if/else 33 (49 pts), boolean chains 14, match/switch 4 (8 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/DownloadAndTryButton.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd033299092cd737e5f02e30e1e3c909181d1d7101de8867a5f6ca7359a91c2a"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemSpeechAsrService.startRecording (cognitive 67): SystemSpeechAsrService.startRecording has cognitive complexity 67 (threshold 15). Drivers by points: if/else 33 (39 pts), boolean chains 24, error handling 2, match/switch 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/SystemSpeechAsrService.kt"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"c353c6fa658dac07496279fa8f8c389aebfd11e12874eb1619e1a06a06362cbd"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherScreenKt.XrLanguageTeacherScreen (cognitive 66): XrLanguageTeacherScreenKt.XrLanguageTeacherScreen has cognitive complexity 66 (threshold 15). Drivers by points: if/else 31 (36 pts), boolean chains 27, match/switch 2 (3 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherScreen.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be2a757333671157f12e54a88cc8e48c57b7631e217f4a2ee1c94b3bfef6273"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAlbumAnalysisProgressCardKt.SmartAlbumExpandableAnalysisProgressCard (cognitive 65): SmartAlbumAnalysisProgressCardKt.SmartAlbumExpandableAnalysisProgressCard has cognitive complexity 65 (threshold 15). Drivers by points: if/else 38 (48 pts), boolean chains 12, match/switch 3, loops 1 (2 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumAnalysisProgressCard.kt"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f1a2fcac7a5b759d746e4746bf6266e83c2f938daa425b3dd4235450c637c2"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherCameraViewportKt.XrLanguageTeacherCameraViewport (cognitive 65): XrLanguageTeacherCameraViewportKt.XrLanguageTeacherCameraViewport has cognitive complexity 65 (threshold 15). Drivers by points: if/else 26 (48 pts), boolean chains 12, match/switch 2 (5 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherCameraViewport.kt"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"096846a641997157cd44da2584cc295aa804cd401f10cc153da86dcd660aa45a"}},{"ruleId":"D2","level":"warning","message":{"text":"LlmChatViewModelBase.generateResponse (cognitive 64): LlmChatViewModelBase.generateResponse has cognitive complexity 64 (threshold 15). Drivers by points: if/else 25 (49 pts), boolean chains 7, error handling 2 (4 pts), loops 2, match/switch 2 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatViewModel.kt"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a9670ce1155b23206a70e0dd84b6dc91e79434c7d81b375c4cd0d25e238b3a"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoMomentFinderViewModel.processProject (cognitive 63): VideoMomentFinderViewModel.processProject has cognitive complexity 63 (threshold 15). Drivers by points: if/else 31 (41 pts), error handling 8 (10 pts), boolean chains 6, loops 4 (6 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/VideoMomentFinderViewModel.kt"},"region":{"startLine":1160}}}],"partialFingerprints":{"codehealthFindingId/v1":"13cdcc97abb6ed2b1aacc2f2d72e4abbb1c5e0bae867678c9e56681d040ac689"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveMetricsBarKt.resolveLiveMetricsUiState (cognitive 62): LiveMetricsBarKt.resolveLiveMetricsUiState has cognitive complexity 62 (threshold 15). Drivers by points: if/else 28 (35 pts), boolean chains 18, match/switch 8 (9 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/LiveMetricsBar.kt"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa970305ac0eaed8c7b7103c39f0c01bf6b66a80dc5b96b10fa1069eef3ae694"}},{"ruleId":"D2","level":"warning","message":{"text":"SampleAlbumStorageManager.deleteSamplePhotos (cognitive 59): SampleAlbumStorageManager.deleteSamplePhotos has cognitive complexity 59 (threshold 15). Drivers by points: if/else 14 (28 pts), error handling 9 (23 pts), loops 2 (5 pts), boolean chains 3 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SampleAlbumStorageManager.kt"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02f8e8ed4e2ed8fe3b930f78daf80ce1e8f35dc29f7b7831d8334863f8e80e3"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherVocabPopperEngine.step (cognitive 59): XrLanguageTeacherVocabPopperEngine.step has cognitive complexity 59 (threshold 15). Drivers by points: if/else 23 (49 pts), boolean chains 5, match/switch 2 (4 pts), loops 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabPopperEngine.kt"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77c059f05c4a5a3f55ab33eb241ed9c3f16dac0e45e78f652eec5e3d72ddeeb"}},{"ruleId":"D2","level":"warning","message":{"text":"TinyGardenScreenKt.MainUi (cognitive 57): TinyGardenScreenKt.MainUi has cognitive complexity 57 (threshold 15). Drivers by points: if/else 29 (47 pts), match/switch 5, boolean chains 2, loops 1 (2 pts), error handling 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/tinygarden/TinyGardenScreen.kt"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d1de54e8bc07209aea9905ef7ef860652e81df56d3a40c76ee4d066f5e5ea8f"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrapbookViewModel.applyCutoutEdits (cognitive 56): ScrapbookViewModel.applyCutoutEdits has cognitive complexity 56 (threshold 15). Drivers by points: if/else 18 (34 pts), loops 5 (17 pts), boolean chains 5 (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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/ScrapbookViewModel.kt"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"66947d446e6a21b052bba4bb4d11ef17a91ce9bdda1eae0497df5cabb61737c7"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelItemKt.ModelItem (cognitive 54): ModelItemKt.ModelItem has cognitive complexity 54 (threshold 15). Drivers by points: if/else 26 (34 pts), boolean chains 16, loops 1 (2 pts), 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelItem.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b254d83f174040e86c26efd3273c7e8bcc641799d1f6860ffd1bb34e5bcd353"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherVocabRunnerEngine.step (cognitive 50): XrLanguageTeacherVocabRunnerEngine.step has cognitive complexity 50 (threshold 15). Drivers by points: if/else 27 (43 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabRunnerEngine.kt"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"276beee7f23ce5978bcd5358dd7be54e03f28ed3b19c00b7de59f8a077e82e8f"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherFlashcardReviewViewKt.FlashcardReviewScreen (cognitive 50): XrLanguageTeacherFlashcardReviewViewKt.FlashcardReviewScreen has cognitive complexity 50 (threshold 15). Drivers by points: if/else 21 (45 pts), boolean chains 5 (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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherFlashcardReviewView.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"812a6fa36e142b29e52cd9f4230f8a87af359975e09e579b1e294e0c4b34dc56"}},{"ruleId":"D2","level":"warning","message":{"text":"OptionalComponentsPanelKt.OptionalComponentsPanel (cognitive 50): OptionalComponentsPanelKt.OptionalComponentsPanel has cognitive complexity 50 (threshold 15). Drivers by points: if/else 30 (44 pts), boolean chains 5, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/OptionalComponentsPanel.kt"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa84d69c8b4c6cdabca4c7f56d9e774b24c33e8f3c9d9644d8e0ae92a82b316e"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectDetailsScreenKt.MomentSearchPanel (cognitive 49): ProjectDetailsScreenKt.MomentSearchPanel has cognitive complexity 49 (threshold 15). Drivers by points: if/else 33 (44 pts), boolean chains 5 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/ProjectDetailsScreen.kt"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"300e5431f622a8d766dabf4c757e920cd3d4bb393ed99033146d9df4498ee5dd"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeScreenKt.HomeScreen (cognitive 49): HomeScreenKt.HomeScreen has cognitive complexity 49 (threshold 15). Drivers by points: if/else 25 (47 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/home/HomeScreen.kt"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"953b686c883a378eda519f6939d6c3df4b1800ad2a1bfd6f436f56f00057127c"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAlbumSearchScreenKt.FullscreenVideoPlayer (cognitive 48): SmartAlbumSearchScreenKt.FullscreenVideoPlayer has cognitive complexity 48 (threshold 15). Drivers by points: if/else 28 (39 pts), boolean chains 8, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt"},"region":{"startLine":1942}}}],"partialFingerprints":{"codehealthFindingId/v1":"3daaad3116d8a7ad298ee6ba7cfb4b1d5f5406c3c8d404a238a75e6929d6cbab"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultPhotoLibraryService.loadBitmap (cognitive 48): DefaultPhotoLibraryService.loadBitmap has cognitive complexity 48 (threshold 15). Drivers by points: if/else 16 (26 pts), error handling 7 (14 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":1153}}}],"partialFingerprints":{"codehealthFindingId/v1":"9acf2c9a9318ba7d5c1eeace1e0a24a757e440e7632a8ff633b8649dcb7835f4"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAlbumScreenKt.SmartAlbumScreen (cognitive 47): SmartAlbumScreenKt.SmartAlbumScreen has cognitive complexity 47 (threshold 15). Drivers by points: if/else 30 (40 pts), boolean chains 6, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumScreen.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"f869d4799de3937a7f795a59283dc8e46862686068a9986d8e74820b6879f841"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelManagerViewModel.loadModelAllowlist (cognitive 47): ModelManagerViewModel.loadModelAllowlist has cognitive complexity 47 (threshold 15). Drivers by points: if/else 16 (36 pts), loops 4 (7 pts), boolean chains 3, error handling 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelManagerViewModel.kt"},"region":{"startLine":2136}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a9e20c43603a6a5bd4154b3f91ca12c98f54333db12aaaa50503d2530c1ecc"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherDialogueFormatter.wrapPhraseWithTargetInDialogue (cognitive 46): XrLanguageTeacherDialogueFormatter.wrapPhraseWithTargetInDialogue has cognitive complexity 46 (threshold 15). Drivers by points: if/else 15 (30 pts), boolean chains 10, loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherDialogueFormatter.kt"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de1cf1de85d0bb8ed1594d60a4ead4cde0672cc1e25a90892c90c411afb83a4"}},{"ruleId":"D2","level":"warning","message":{"text":"PcmAudioRecorder.streamAudioChunks (cognitive 46): PcmAudioRecorder.streamAudioChunks has cognitive complexity 46 (threshold 15). Drivers by points: if/else 20 (30 pts), error handling 7 (11 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/PcmAudioRecorder.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"87aa5646605d0421af0dab6c2b6bdad5cb4a22dc0172126c59c1546808eda409"}},{"ruleId":"D2","level":"warning","message":{"text":"TtsPlaybackController.playPcmStream (cognitive 46): TtsPlaybackController.playPcmStream has cognitive complexity 46 (threshold 15). Drivers by points: if/else 14 (30 pts), boolean chains 6, match/switch 1 (4 pts), error handling 3, loops 2 (3 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/tts/TtsPlaybackController.kt"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"542e0e07f94ca48bcb080cefda38a6a5b60a306adedc18629931c3d1ccfe065b"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalModelManagerKt.GlobalModelManager (cognitive 45): GlobalModelManagerKt.GlobalModelManager has cognitive complexity 45 (threshold 15). Drivers by points: if/else 30 (39 pts), boolean chains 2, loops 1 (2 pts), match/switch 1 (2 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/GlobalModelManager.kt"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75fd33130ff6b37badf8a13a3a84f6cd95bc1d53fefcde20bec26da4b09f6de"}},{"ruleId":"D2","level":"warning","message":{"text":"SampleAlbumStorageManager.getSamplesDirectory (cognitive 44): SampleAlbumStorageManager.getSamplesDirectory has cognitive complexity 44 (threshold 15). Drivers by points: if/else 16 (36 pts), boolean chains 6, loops 1 (2 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SampleAlbumStorageManager.kt"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b7cdc5d3837e5f8485daaf54d6d7ff405e124f2f15454f88e9acd7f18a1d1c"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherSpeechMatcher.findTargetWordSpoken (cognitive 44): XrLanguageTeacherSpeechMatcher.findTargetWordSpoken has cognitive complexity 44 (threshold 15). Drivers by points: if/else 11 (34 pts), boolean chains 4, loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherSpeechMatcher.kt"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6b7ba1e82af8dbf0244219903dff5cee93ef08a2182f5064ad0b3d2f6dc8a8"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageInputTextKt.handleTextFilesSelected (cognitive 44): MessageInputTextKt.handleTextFilesSelected has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (36 pts), error handling 2 (4 pts), boolean chains 3, loops 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/MessageInputText.kt"},"region":{"startLine":1487}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53355619a233f9b04e60f6d0d2c7a74bdee1ff4b8712dfcd38608589e6b38c1"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelNameAndStatusKt.ModelStatusDetails (cognitive 44): ModelNameAndStatusKt.ModelStatusDetails has cognitive complexity 44 (threshold 15). Drivers by points: if/else 16 (36 pts), boolean chains 3, match/switch 1 (3 pts), loops 1 (2 pts) (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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelNameAndStatus.kt"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f316cb74796414ab9d52504b4660f16e19ff8b7edab5af159440674e147090"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChatScreenKt.AgentChatScreen (cognitive 43): AgentChatScreenKt.AgentChatScreen has cognitive complexity 43 (threshold 15). Drivers by points: if/else 20 (31 pts), boolean chains 4, error handling 1 (3 pts), match/switch 2 (3 pts), 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AgentChatScreen.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"024f537dc2c5ff04732b991ebba86c4db2b671e03870c24f58c8e476ba39faed"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherTtsFillersAndPreviewKt.playPersonaPreview (cognitive 43): XrLanguageTeacherTtsFillersAndPreviewKt.playPersonaPreview has cognitive complexity 43 (threshold 15). Drivers by points: if/else 12 (24 pts), error handling 6 (12 pts), boolean chains 4, loops 1 (2 pts), 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/services/XrLanguageTeacherTtsFillersAndPreview.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba1251d9139483d979b337962d066503f9a60b58a997b57ea7d3ebf182f7c584"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherVocabBottomSheetKt.ActiveLessonBottomSheet (cognitive 43): XrLanguageTeacherVocabBottomSheetKt.ActiveLessonBottomSheet has cognitive complexity 43 (threshold 15). Drivers by points: if/else 22 (36 pts), boolean chains 4, loops 1 (2 pts), match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherVocabBottomSheet.kt"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b693c05df3671872a6cf7d094c52890319ff358d3e200c9148f7e0480198c49"}},{"ruleId":"D2","level":"warning","message":{"text":"AsrModelRegistry.resolveModelFile (cognitive 43): AsrModelRegistry.resolveModelFile has cognitive complexity 43 (threshold 15). Drivers by points: if/else 9 (23 pts), loops 7 (12 pts), boolean chains 8 (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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/AsrModelRegistry.kt"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b6fa2576bcd48940a5fe629671ee7fb54e30a0d92a30fae570e43daade7112"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaPipeTtsEngine.synthesize (cognitive 43): MediaPipeTtsEngine.synthesize has cognitive complexity 43 (threshold 15). Drivers by points: if/else 18 (30 pts), boolean chains 6, loops 2 (5 pts), match/switch 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/MediaPipeTtsEngine.kt"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d7b4179e0f99510e27de9684bfe18a9b7e5ec713557ef09acdf541f24d08da"}},{"ruleId":"D2","level":"warning","message":{"text":"AllowedModel.toModel (cognitive 42): AllowedModel.toModel has cognitive complexity 42 (threshold 15). Drivers by points: if/else 24 (30 pts), boolean chains 10, loops 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/ModelAllowlist.kt"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ab1b000be4ccba8c481cfa2807cc48ab7c4877572072ca5a1be53b630dd23c"}},{"ruleId":"D2","level":"warning","message":{"text":"IntentHandler.readCalendarEvents (cognitive 42): IntentHandler.readCalendarEvents has cognitive complexity 42 (threshold 15). Drivers by points: if/else 18 (38 pts), loops 1 (3 pts), error handling 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/intents/IntentHandler.kt"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be1d7bb9dfd42395db10b93257f0705c05768bc0d132b40499b1c8108ddebfd"}},{"ruleId":"D2","level":"warning","message":{"text":"CutoutManagerKt.CutoutManager (cognitive 41): CutoutManagerKt.CutoutManager has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (40 pts), loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/CutoutManager.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c2647e8cb9775b2cc2777224db871d2f837dd221e69e2d8ff61dbed6772da9"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrapbookScreenKt.ScrapbookScreen (cognitive 40): ScrapbookScreenKt.ScrapbookScreen has cognitive complexity 40 (threshold 15). Drivers by points: if/else 20 (34 pts), boolean chains 4, loops 1, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/ScrapbookScreen.kt"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"a305c566030ba328b08752e76663f94ba83df3e149617050101d0481313ca6b0"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherVocabBottomSheetKt.FollowUpLessonControls (cognitive 39): XrLanguageTeacherVocabBottomSheetKt.FollowUpLessonControls has cognitive complexity 39 (threshold 15). Drivers by points: if/else 21 (34 pts), boolean chains 3, match/switch 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherVocabBottomSheet.kt"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27eabaf7304e042deea47fe5445988be640287090765829773e2fbf999f5ea2"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelPageAppBarKt.TaskConfigDialog (cognitive 39): ModelPageAppBarKt.TaskConfigDialog has cognitive complexity 39 (threshold 15). Drivers by points: if/else 19 (31 pts), boolean chains 3, error handling 2, loops 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ModelPageAppBar.kt"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81cdfb1aac8e0ad865d1d0b5f544ff3723f50420fae099978d18883f5a9d594"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAlbumSearchScreenKt.EmbeddingInfoScreen (cognitive 38): SmartAlbumSearchScreenKt.EmbeddingInfoScreen has cognitive complexity 38 (threshold 15). Drivers by points: if/else 27 (34 pts), boolean chains 2, error handling 1 (2 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt"},"region":{"startLine":2220}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9f3e403c14eee06d5b2a2e8667d3f3c74160aafc181906a2446a086a60649c"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptTemplatesPanelKt.PromptTemplatesPanel (cognitive 38): PromptTemplatesPanelKt.PromptTemplatesPanel has cognitive complexity 38 (threshold 15). Drivers by points: if/else 20 (26 pts), loops 3 (5 pts), boolean chains 4, match/switch 1 (3 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/PromptTemplatesPanel.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"270e9ea783c097ac8bf32747b742f0d0e968a421847a02105a8031b6000eabee"}},{"ruleId":"D2","level":"warning","message":{"text":"SegmenterKt.Segmenter (cognitive 37): SegmenterKt.Segmenter has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (31 pts), boolean chains 3, match/switch 1 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/Segmenter.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"266446e7436b8a3268247859a7fd919e50d492104873f42037b5a43d1fae9b88"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultPhotoLibraryService.fetchDetailedAsset (cognitive 37): DefaultPhotoLibraryService.fetchDetailedAsset has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 8, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8a6723113fe8dab8bd73c8644ab93d97ed3288dcfc851d569e46d5a3e7eb5b"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherVocabPopperEngine.resolveTargetCollisions (cognitive 36): XrLanguageTeacherVocabPopperEngine.resolveTargetCollisions has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (30 pts), loops 3 (6 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabPopperEngine.kt"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd3405e75481a7069f5a2cf43e9e23b7a010315b292e3ef612ff8a9c047fdeb"}},{"ruleId":"D2","level":"warning","message":{"text":"AddOrEditSkillBottomSheetKt.AddOrEditSkillBottomSheet (cognitive 35): AddOrEditSkillBottomSheetKt.AddOrEditSkillBottomSheet has cognitive complexity 35 (threshold 15). Drivers by points: if/else 21 (31 pts), loops 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddOrEditSkillBottomSheet.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"629153c9cac0454e960d62759420ca1ae1129bb3fd99ea99ce283e55a8be5745"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectDetailsScreenKt.ScrubberAndControls (cognitive 35): ProjectDetailsScreenKt.ScrubberAndControls has cognitive complexity 35 (threshold 15). Drivers by points: if/else 25 (33 pts), loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/ProjectDetailsScreen.kt"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b42c3a8071e686f05cbcc6186aaecd8ee0822bb25eb68011412586c25024b58"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherVocabRunnerEngine.refreshChoicesIfNeeded (cognitive 35): XrLanguageTeacherVocabRunnerEngine.refreshChoicesIfNeeded has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (30 pts), loops 2 (3 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabRunnerEngine.kt"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67d8b6d5cfde9ba65db15a2bddd9d92f447e27fade40654ed7d3f17cc087b4f"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrapbookViewModel.extractSegmentedObject (cognitive 34): ScrapbookViewModel.extractSegmentedObject has cognitive complexity 34 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 6 (13 pts), boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/ScrapbookViewModel.kt"},"region":{"startLine":1598}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d8805e866c0862ed7205bca340daa49e678b88e641d3f8494e527f15baba70"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherStickerCutout.planCutout (cognitive 34): XrLanguageTeacherStickerCutout.planCutout has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (27 pts), boolean chains 3, loops 2 (3 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherStickerCutout.kt"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"83699bc100cdeddde920420175d054404f2486e2a72558fcd08a636080824d47"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherXrControllerKt.handleGlassesGesture (cognitive 34): XrLanguageTeacherXrControllerKt.handleGlassesGesture has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (30 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherXrController.kt"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5077527acdf48cb24cffdf8d1e10b1e916825cb8b581d3db130cd559d58f1c"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRadioItemKt.ModelRadioItem (cognitive 34): ModelRadioItemKt.ModelRadioItem has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (18 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelRadioItem.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1b6d216320ccc007b3b6b81fbdf233bde677ace6ea7a5eee5a8d6d3768aba5"}},{"ruleId":"D2","level":"warning","message":{"text":"LlmChatModelHelper.runInference (cognitive 34): LlmChatModelHelper.runInference has cognitive complexity 34 (threshold 15). Drivers by points: if/else 20 (25 pts), error handling 3 (5 pts), boolean chains 2, loops 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatModelHelper.kt"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fbea5d1e353ccb104c8e9095ff7ce8d74066c0997bb48fe309f3d9994a21f6c"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelManagerViewModel.deleteModel (cognitive 32): ModelManagerViewModel.deleteModel has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (22 pts), loops 3 (6 pts), boolean chains 4 (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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelManagerViewModel.kt"},"region":{"startLine":1383}}}],"partialFingerprints":{"codehealthFindingId/v1":"af23b975909abe2cc6f0fddb628928e1c2cd50dcb75b8b1df4bbb68f60aad5aa"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadZipExtractorKt.extractDownloadedZip (cognitive 32): DownloadZipExtractorKt.extractDownloadedZip has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 3 (7 pts), error handling 2 (4 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/worker/DownloadZipExtractor.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"c66b42c76a5424faabc94732cc650b7b2097a565ca1f90535b66b2d739c4b754"}},{"ruleId":"D2","level":"warning","message":{"text":"TtsModelDetailsKt.VoiceProfilesPanel (cognitive 31): TtsModelDetailsKt.VoiceProfilesPanel has cognitive complexity 31 (threshold 15). Drivers by points: if/else 20 (26 pts), boolean chains 4, loops 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/TtsModelDetails.kt"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a3e0cc90a4806f32c078e033a008130cb9dcf10571927edbdc1653aa3afe4dd"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherAsrCoordinatorKt.startRecognitionSegment (cognitive 30): XrLanguageTeacherAsrCoordinatorKt.startRecognitionSegment has cognitive complexity 30 (threshold 15). Drivers by points: if/else 18 (23 pts), boolean chains 7 (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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/services/XrLanguageTeacherAsrCoordinator.kt"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"1699f415f970bd89b58746865627181f9832f0453153e20a14c84dcbd473b060"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeechProcessorAsrService.runRecordingSession (cognitive 30): SpeechProcessorAsrService.runRecordingSession has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 4, error handling 4, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/SpeechProcessorAsrService.kt"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"e729d779134adc5578a900540fc8e898d3219fb9b057e7a817fe2066c4ac365a"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultPhotoLibraryService.queryMediaStoreAssetIds (cognitive 30): DefaultPhotoLibraryService.queryMediaStoreAssetIds has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (17 pts), error handling 3 (5 pts), loops 3 (5 pts), boolean chains 3 (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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55dba30cf96c3b8487db8fd47cf7dc659f0f9a1872b9f49b9ee4ace65a389e5"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelPageAppBarKt.ModelPageAppBar (cognitive 30): ModelPageAppBarKt.ModelPageAppBar has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 11 (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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ModelPageAppBar.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d99e97ff9a0f6525216c64b1ad183ebdab1c12eb518f10c857c16f8965f7bd"}},{"ruleId":"D2","level":"warning","message":{"text":"TtsMessageBlocksKt.findRenderedWordRange (cognitive 30): TtsMessageBlocksKt.findRenderedWordRange has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 4 (9 pts), boolean chains 4 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/tts/TtsMessageBlocks.kt"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"369c918aa4354347c9c0feb82354ed6faf4b59b4925f53eba46c201ed6b81617"}},{"ruleId":"D2","level":"warning","message":{"text":"AddMcpServerFromUrlDialogKt.AddMcpServerFromUrlDialog (cognitive 29): AddMcpServerFromUrlDialogKt.AddMcpServerFromUrlDialog has cognitive complexity 29 (threshold 15). Drivers by points: if/else 19 (26 pts), boolean chains 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddMcpServerFromUrlDialog.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"699a4f570ee5174617f54968d7bf49aa8e5a9ee4fb1ad4e1862e12d139db05dd"}},{"ruleId":"D2","level":"warning","message":{"text":"Mp4NormalizerKt.remuxToProgressiveMp4 (cognitive 28): Mp4NormalizerKt.remuxToProgressiveMp4 has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (17 pts), error handling 4 (6 pts), boolean chains 3, loops 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/Mp4Normalizer.kt"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e5cc2099d66bbcbd447334f336c2f024fabe151aef5244829a07215893cd5b9"}},{"ruleId":"D2","level":"warning","message":{"text":"MlKitTtsEngine.warmClientForLocale (cognitive 28): MlKitTtsEngine.warmClientForLocale has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 4, error handling 2 (4 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/MlKitTtsEngine.kt"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0c6a753748657abb865c926b515c4396e88f251580ca771ad83bc5e1f7df682"}},{"ruleId":"D2","level":"warning","message":{"text":"TtsTextNormalizer.splitIntoClauses (cognitive 28): TtsTextNormalizer.splitIntoClauses has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 8, loops 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/TtsTextNormalizer.kt"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c602368c8ca05c01757d797a7c7ce48899736d8d0ded85b383852267f687cfa"}},{"ruleId":"D2","level":"warning","message":{"text":"BenchmarkResultsViewerKt.ValueSeriesRow (cognitive 28): BenchmarkResultsViewerKt.ValueSeriesRow has cognitive complexity 28 (threshold 15). Drivers by points: if/else 21 (25 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/benchmark/BenchmarkResultsViewer.kt"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"a224145873b8041cbf542eff6a2e886784bbc1e539abaef18e595459ca9acf06"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAlbumAnalysisProgressCardKt.SmartAlbumAnalysisProgressCard (cognitive 27): SmartAlbumAnalysisProgressCardKt.SmartAlbumAnalysisProgressCard has cognitive complexity 27 (threshold 15). Drivers by points: if/else 22 (26 pts), boolean chains 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumAnalysisProgressCard.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"7826302c7d330bbe4853115a4a4e2063819580706155ede085a364410f9d0ed4"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAlbumScreenKt.SmartAlbumMainContent (cognitive 27): SmartAlbumScreenKt.SmartAlbumMainContent has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14, boolean chains 9, match/switch 3 (4 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumScreen.kt"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80cc0c859e5dde5b1fe9a806ea6a0ee45a67661a0ed834abd92155e5f7979d0"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherTtsCoordinatorKt.presynthesizeGamePromptWords (cognitive 27): XrLanguageTeacherTtsCoordinatorKt.presynthesizeGamePromptWords has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (14 pts), error handling 5 (9 pts), boolean chains 3, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/services/XrLanguageTeacherTtsCoordinator.kt"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc5bbb9f022db190fc6fb9a23e6e708ccb85cf9b875c762aacc7eac837b23f7"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultDownloadRepository.observeWorkerProgress (cognitive 27): DefaultDownloadRepository.observeWorkerProgress has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18 (24 pts), match/switch 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/DownloadRepository.kt"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e2a614fe69204c1b5dabfc707d9ea7ef0d0ef40691c42599eb5c59125ad1638"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigAudioTabMapperKt.buildConfigTtsSection (cognitive 27): ConfigAudioTabMapperKt.buildConfigTtsSection has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 5, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ConfigAudioTabMapper.kt"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"5346bac58d553b817d987cd033244be9db1ad7ddb53f57e6f923d0a23eeb1d8d"}},{"ruleId":"D2","level":"warning","message":{"text":"SampleAlbumStorageManager.downloadAndExtractSamples (cognitive 26): SampleAlbumStorageManager.downloadAndExtractSamples has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (15 pts), loops 4 (6 pts), error handling 3, boolean chains 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SampleAlbumStorageManager.kt"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3200879883df54d8f6136dc1f2444f82dce58ae729fdc2816fe9155358b069"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAlbumSearchViewModel.indexFallbackAssets (cognitive 26): SmartAlbumSearchViewModel.indexFallbackAssets has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (20 pts), error handling 1 (3 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchViewModel.kt"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"996b1849fcc16cdb2ec48249dec2d1ac3bff5bde56eadcf16f640d07e058556e"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherTask.MainScreen (cognitive 26): XrLanguageTeacherTask.MainScreen has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 8, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/XrLanguageTeacherTask.kt"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"5623bcfe602fdf8f36d9e276cddf6b446664ff881087358254c257b98be8fb5a"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoMomentFinderViewModel.importVideo (cognitive 25): VideoMomentFinderViewModel.importVideo has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (20 pts), error handling 5 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/VideoMomentFinderViewModel.kt"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece1eb17c430062033d029fda4bb44ae800f51636205c9069b268ed5f45a7c3d"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigKt.convertValueToTargetType (cognitive 25): ConfigKt.convertValueToTargetType has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (16 pts), match/switch 5 (9 pts) (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/Config.kt"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b445fa5486a26f8817ff850c1b95bc4a00e198a39d4033e71bc19ccb865c1c6"}},{"ruleId":"D2","level":"warning","message":{"text":"PlatformTtsEngine.prepare (cognitive 25): PlatformTtsEngine.prepare has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 4, error handling 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/PlatformTtsEngine.kt"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"5adc46fce5ef428e2904c675df16f53ba2b5f7b9e5adb6f8d80fc756ac340554"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillManager.saveSkillEdit (cognitive 25): SkillManager.saveSkillEdit has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (24 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/skills/SkillManager.kt"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"802b69c6ef3ed9b35a59def63b0399793c13f6b17dc13057da505fbdb5a1374b"}},{"ruleId":"D2","level":"warning","message":{"text":"LanguagePacksPanelKt.LanguagePacksPanel (cognitive 25): LanguagePacksPanelKt.LanguagePacksPanel has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18 (24 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/LanguagePacksPanel.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea11216c2a30e15762d96028fc932889fbd0cd460151cc9cd51e0399ddf6b01"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrapbookViewModel.segment (cognitive 24): ScrapbookViewModel.segment has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 1 (4 pts) (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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/ScrapbookViewModel.kt"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e97222ed9cdb19d4a41b591f88786482422f8c956bf04dad314e62ca7ef7903"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoAudioExtractor.pumpOnce (cognitive 24): VideoAudioExtractor.pumpOnce has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (23 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/VideoAudioExtractor.kt"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c7d0bb1395d366864c001ac69d33f548d87a8406b5c62c9b81116c8c8c67b3"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoMomentFinderViewModel.searchForMoment (cognitive 24): VideoMomentFinderViewModel.searchForMoment has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (15 pts), loops 3 (4 pts), error handling 3, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/VideoMomentFinderViewModel.kt"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d33dd9cdfb08e7038695c536286e414c67988f9a0fc4bc02b275e86d42fbab"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherLanguageFormKt.LanguageDropdownField (cognitive 24): XrLanguageTeacherLanguageFormKt.LanguageDropdownField has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 3, loops 2, match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherLanguageForm.kt"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ab44e50962d0fa33bf93ac679455f1d41d69ea1f737af4529d3e84b976fc3a"}},{"ruleId":"D2","level":"warning","message":{"text":"PcmAudioRecorder.streamFromExternalPfd (cognitive 24): PcmAudioRecorder.streamFromExternalPfd has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (18 pts), error handling 4 (5 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/PcmAudioRecorder.kt"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"717d0bae0c9ce71b937637ded2a61b9d17392139ea49d7fc74f04dec544bc947"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageBodyImageKt.MessageBodyImage (cognitive 24): MessageBodyImageKt.MessageBodyImage has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 2 (5 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/MessageBodyImage.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"21250d1937506bcabb52fce61b16d3ceeca4639034f7bdd268be46484d29bae7"}},{"ruleId":"D2","level":"warning","message":{"text":"VoicePreviewController.startVoicePreview (cognitive 24): VoicePreviewController.startVoicePreview has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (16 pts), error handling 3 (4 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/VoicePreviewController.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"93afd101769a5f505182ca20e54bfaa9792846ca15b3c5d2362f7c6e67492f99"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillTesterBottomSheetKt.SkillTesterBottomSheet (cognitive 23): SkillTesterBottomSheetKt.SkillTesterBottomSheet has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (21 pts), error handling 1, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/SkillTesterBottomSheet.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4c994409bd360ccb6baf4325c68ac14a18f29bb47626aece6b7222a05e4ec4"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAlbumIndexingWorker.indexUserPhotos (cognitive 23): SmartAlbumIndexingWorker.indexUserPhotos has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (SmartAlbumIndexingWorker.indexSamples) 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumIndexingWorker.kt"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"419391d510efb0acfaad2d8576a03079788847c597e62bb1bd2aa8fb6435990c"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAlbumIndexingWorker.indexSamples (cognitive 23): SmartAlbumIndexingWorker.indexSamples has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (SmartAlbumIndexingWorker.indexUserPhotos) 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumIndexingWorker.kt"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3bbcbef54c5d2d0b070ca89f3d7106542a285298ca80118291fa224c2424d53"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAlbumScreenKt.StartAnalyzingAllPhotosBottomSheet (cognitive 23): SmartAlbumScreenKt.StartAnalyzingAllPhotosBottomSheet has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumScreen.kt"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d585b3e2a2d69b3f47e781ca77d5e4e667bbf9931c4e0e3c7fec7dfa0bf2a6d"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcessingConfigDialogKt.ProcessingConfigDialog (cognitive 23): ProcessingConfigDialogKt.ProcessingConfigDialog has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17 (18 pts), boolean chains 4, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/ProcessingConfigDialog.kt"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c514f6058b2e1835de55bb8fbaa88d9f83ecbca0f957acc6af1964489d364b"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherSessionHistoryControllerKt.saveCurrentLessonSession (cognitive 23): XrLanguageTeacherSessionHistoryControllerKt.saveCurrentLessonSession has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 5, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherSessionHistoryController.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a520d297fff30bd1b50e9abdf1191de6bf123e3c72a46c854ebd9fece750158"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherInputModesKt.TeacherPromptBox (cognitive 23): XrLanguageTeacherInputModesKt.TeacherPromptBox has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17 (19 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherInputModes.kt"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4131980b83e64282a5d93623689602c6aa96fc1f5d29421b85239855e88f22"}},{"ruleId":"D2","level":"warning","message":{"text":"BenchmarkValueSeriesViewerKt.BenchmarkValueSeriesViewer (cognitive 23): BenchmarkValueSeriesViewerKt.BenchmarkValueSeriesViewer has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/benchmark/BenchmarkValueSeriesViewer.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9aec314902fb47851efcb3795c5e5c236218aa098c86966bdd7cdffcb77e748"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigDialogKt.AudioLanguageDropdownSection (cognitive 23): ConfigDialogKt.AudioLanguageDropdownSection has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (17 pts), match/switch 2 (5 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ConfigDialog.kt"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f6d23109f07a21d7c29f8d6e3bb5dff0250de70d2edaacf7a5ed9685256843a"}},{"ruleId":"D2","level":"warning","message":{"text":"ZoomableImageKt.ZoomableImage (cognitive 23): ZoomableImageKt.ZoomableImage has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ZoomableImage.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c396c389b2eab6e38781d26e739a9515436f889f17d1910e93ddc016aff2b2"}},{"ruleId":"D2","level":"warning","message":{"text":"LlmChatScreenKt.ChatViewWrapper (cognitive 23): LlmChatScreenKt.ChatViewWrapper has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (15 pts), error handling 2 (4 pts), boolean chains 2, loops 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatScreen.kt"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28fd49b8562b8825779b20a43107ae6cdf5e2a2cd161d1ed55eb914b6790e82"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigAudioTabMapperKt.buildAsrModelDropdownItems (cognitive 23): ConfigAudioTabMapperKt.buildAsrModelDropdownItems has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ConfigAudioTabMapper.kt"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a7d78d0369921a7c8bc875916d79dfb8434ede04b9ec25d50a1ab3dfb47886"}},{"ruleId":"D2","level":"warning","message":{"text":"TruncationContextCompactor.compactContextReportingSize (cognitive 22): TruncationContextCompactor.compactContextReportingSize has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 4, error handling 2, loops 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/sessions/TruncationContextCompactor.kt"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eba7a7ed7c4644fcab9fad0309de9b5551a1310751db578cbfc865e9254b0b3"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAlbumSearchScreenKt.FullscreenImageViewer (cognitive 22): SmartAlbumSearchScreenKt.FullscreenImageViewer has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt"},"region":{"startLine":1821}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19d777a9305d260ff8c943d74c207adb2edfe3aab47b445e1065f4c6dd8afd9"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAlbumSearchScreenKt.PhotoGridTile (cognitive 22): SmartAlbumSearchScreenKt.PhotoGridTile has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt"},"region":{"startLine":2684}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab96f5b6bb3ca1758a94ecbbb50aafc6608ab156e79e1fcbbc8854d644b38f98"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherEducationalCardsKt.toLessonHistorySession (cognitive 22): XrLanguageTeacherEducationalCardsKt.toLessonHistorySession has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 9, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherEducationalCards.kt"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be5a29178dbcbe56f526d342481a6aa450b6ccc81b5aa7eb7dc27f229d22798"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherVocabularyStoreKt.writeDictionaryEntry (cognitive 22): XrLanguageTeacherVocabularyStoreKt.writeDictionaryEntry has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (15 pts), error handling 2 (4 pts), boolean chains 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabularyStore.kt"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c8ff48f3103bf02daacc65b7b89cd3a171a47966a8bc25e81b9588e4ae4852"}},{"ruleId":"D2","level":"warning","message":{"text":"SupplementarySpeechModelRepository.refreshLanguagePacks (cognitive 22): SupplementarySpeechModelRepository.refreshLanguagePacks has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (20 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/supplementary/SupplementarySpeechModelRepository.kt"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"369080a22ee8d38f315fcbaa646203831c50043f59e6f56a9edd00c84e584744"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigDialogKt.TtsVoiceDropdownSection (cognitive 22): ConfigDialogKt.TtsVoiceDropdownSection has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 3, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ConfigDialog.kt"},"region":{"startLine":1259}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8fb04f33dee05124f3a0736eee279fb173c5de44a7308400bed5c87e9643d56"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatViewKt.ChatView (cognitive 22): ChatViewKt.ChatView has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 2, loops 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatView.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c416a5ebe05225ef83d595bbaf6aa4326d341a18ada1f695185e465736bd632"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageBodyTextKt.MessageBodyText (cognitive 22): MessageBodyTextKt.MessageBodyText has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 2 (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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/MessageBodyText.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"f077fb9a37df6d52788e2ff3fb1a852253234c56b1812d951133b77993fd6693"}},{"ruleId":"D2","level":"warning","message":{"text":"TtsMessageBlocksKt.renderParagraph (cognitive 22): TtsMessageBlocksKt.renderParagraph has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 3, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/tts/TtsMessageBlocks.kt"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8319cbc0ed39461b3f3ddb96e9a112baece7f096ea5e6460b161a72e71d822"}},{"ruleId":"D2","level":"warning","message":{"text":"ClipTrimmerKt.ClipTrimmer (cognitive 21): ClipTrimmerKt.ClipTrimmer has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (14 pts), loops 3 (4 pts), error handling 2 (3 pts) (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/ClipTrimmer.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"777c244f45e2da26a952e8d5f4598adce8c555e5ebc487d012e293eba16e1841"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherGameSpeechSession.runContinuousLoop (cognitive 21): XrLanguageTeacherGameSpeechSession.runContinuousLoop has cognitive complexity 21 (threshold 15). Drivers by points: error handling 5 (10 pts), if/else 3 (8 pts), loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/services/XrLanguageTeacherGameSpeechSession.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"a445b62b2b5d0da906f4cd60e0cac5c758fe567776ec3f636c062e2e6922b46d"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherTtsFillersAndPreviewKt.presynthesizeFillersIfIdle (cognitive 21): XrLanguageTeacherTtsFillersAndPreviewKt.presynthesizeFillersIfIdle has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4, error handling 2 (4 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/services/XrLanguageTeacherTtsFillersAndPreview.kt"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"c968ea1fe72fc1b171beda15a51f446f6e1ad547720e4556bb9d9183c094a0a8"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigAudioTabMapperKt.buildAsrStatusRow (cognitive 21): ConfigAudioTabMapperKt.buildAsrStatusRow has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ConfigAudioTabMapper.kt"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8135d7b9468f3999e0cc68b5b38de850f4468a304700c8708301eb0c36b28a2"}},{"ruleId":"D2","level":"warning","message":{"text":"HfModelDetailsSheetKt.HfModelDetailsContent (cognitive 21): HfModelDetailsSheetKt.HfModelDetailsContent has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/HfModelDetailsSheet.kt"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0464adafee97282ea48361d7fff4d7a22cd5e72e1dc32949a69acf162e4033"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelManagerViewModel.downloadModel (cognitive 21): ModelManagerViewModel.downloadModel has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelManagerViewModel.kt"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2f96a9b1a059a22685c3aef8b268d4e18ec39c86d89b937c1989ede11ead57"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherVocabCardKt.VocabCard (cognitive 20): XrLanguageTeacherVocabCardKt.VocabCard 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherVocabCard.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"a877dc3676aa74b869979141b63f48fbaeae6927e1a569b562c3359daf7c3691"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultPhotoLibraryService.extractVideoKeyframes (cognitive 20): DefaultPhotoLibraryService.extractVideoKeyframes has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 5, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d13c72e9546765f8d3050220383b9dca1f5d2b0e87381baa615cd805735257"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaPipeTtsModels.deriveVoiceDisplayName (cognitive 20): MediaPipeTtsModels.deriveVoiceDisplayName has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/MediaPipeTtsModels.kt"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"269a0d94c8d6d4ee2df5bfa3794e2fb717319ff1e833a0a990e73c87018c8cd6"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveCameraViewKt.LiveCameraView (cognitive 20): LiveCameraViewKt.LiveCameraView has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 4, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/LiveCameraView.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9df40ba9250f25ee1fcccdebc2a17e0a52655315c7fcc1c2c0e15482d90bd5a"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextCompactionBannerKt.ContextCompactionBanner (cognitive 20): ContextCompactionBannerKt.ContextCompactionBanner has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (18 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ContextCompactionBanner.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00261f8b238367ab9c6661ddad0b5486a052d58a29a004a8f98b0212c7b2d51"}},{"ruleId":"D2","level":"warning","message":{"text":"TtsPlaybackController.streamAutoPlay (cognitive 20): TtsPlaybackController.streamAutoPlay has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (17 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/tts/TtsPlaybackController.kt"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"630f668380d8899a871586095e17a4ef4e1914062a57d90a86dc2ff8b820e98f"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelManagerViewModel.createUiState (cognitive 20): ModelManagerViewModel.createUiState has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 6 (8 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelManagerViewModel.kt"},"region":{"startLine":2368}}}],"partialFingerprints":{"codehealthFindingId/v1":"1342e335424dfe1191184b53dbd02a17dab5518706b6ed9c399fb886409750ef"}},{"ruleId":"D2","level":"warning","message":{"text":"SampleAlbumStorageManager.fetchSampleAssets (cognitive 19): SampleAlbumStorageManager.fetchSampleAssets has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3, error handling 2 (3 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SampleAlbumStorageManager.kt"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"36dabc930ff390287057c77f932f6be1c6c8cde88049e6c035aad1323277c889"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAlbumSearchScreenKt.BackgroundAssetGridTile (cognitive 19): SmartAlbumSearchScreenKt.BackgroundAssetGridTile has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (16 pts), match/switch 1 (2 pts), boolean chains 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt"},"region":{"startLine":1216}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9aec26f4a28a3ce9c13acd5f7232dddfcbb58da23b410466b2b8b7e3dab9f53"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAlbumViewModel.observeWorkManagerProgress (cognitive 19): SmartAlbumViewModel.observeWorkManagerProgress has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 6, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumViewModel.kt"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"9511c59542cd40464bffd3e38f7575bed08372da924951af19f935e21d1ed7a4"}},{"ruleId":"D2","level":"warning","message":{"text":"Mp4NormalizerKt.isFragmentedMp4 (cognitive 19): Mp4NormalizerKt.isFragmentedMp4 has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, error handling 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/Mp4Normalizer.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"462c6afb608e0ebf8d79c48cf44db381e1926f7b43762cfe89717cb7da63274d"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectDetailsScreenKt.ProjectDetailsScreen (cognitive 19): ProjectDetailsScreenKt.ProjectDetailsScreen has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, boolean chains 3, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/ProjectDetailsScreen.kt"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2511a260b6a340b7fd8ef21f3b2d7ca7980fddacd3541f6c8f970331ea925c4"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherVocabPopperEngine.tap (cognitive 19): XrLanguageTeacherVocabPopperEngine.tap has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3, match/switch 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabPopperEngine.kt"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25330ac3be3217fe6d917bcff410452bdef448f79136e6947df3ea0af86c178"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherPreferencesControllerKt.applyTeacherPreferences (cognitive 19): XrLanguageTeacherPreferencesControllerKt.applyTeacherPreferences has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 4, match/switch 3 (4 pts), 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherPreferencesController.kt"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"01014816db4eee2ceac80f303b515ad824e4dd490f97f3a0dbbdbc79afdb8e0e"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherVocabGameChromeKt.VocabGameScoreboard (cognitive 19): XrLanguageTeacherVocabGameChromeKt.VocabGameScoreboard has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8, boolean chains 6, match/switch 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabGameChrome.kt"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af8d133e7aad1acc97f2e4ff0be41d72ccc77f995ac70bb24ce424f3cf0f73d"}},{"ruleId":"D2","level":"warning","message":{"text":"IntentHandler.scheduleNotification (cognitive 19): IntentHandler.scheduleNotification has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 1, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/intents/IntentHandler.kt"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6a852efd729aa97094feece63320066bbe3805c3cfb60f4664ffedec6f97c4"}},{"ruleId":"D2","level":"warning","message":{"text":"PcmAudioRecorder.createInitializedAudioRecord (cognitive 19): PcmAudioRecorder.createInitializedAudioRecord has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (12 pts), error handling 2 (4 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/PcmAudioRecorder.kt"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"986c70651c6f3eaeac1a9ce13cd33fd5909637ffde9aa2b078ac5bd41874b12b"}},{"ruleId":"D2","level":"warning","message":{"text":"RunJsTool.runJs (cognitive 19): RunJsTool.runJs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (16 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/tools/RunJsTool.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"d165e2711a0c585f0494c6da89b1413ad74b1abbdbc108ce758cddb890f2d83d"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelNameAndStatusKt.ModelNameAndStatus (cognitive 19): ModelNameAndStatusKt.ModelNameAndStatus 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelNameAndStatus.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"475db0ab668e3e293041f7b30b809e7e4d6464c40cdfbe2fd45ee0c2d1668d0f"}},{"ruleId":"D2","level":"warning","message":{"text":"LanguagePacksPanelKt.LanguageSelectionRow (cognitive 19): LanguagePacksPanelKt.LanguageSelectionRow has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/LanguagePacksPanel.kt"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"3514d22bcf0e027dc8e0b975122e6be5c4a725867e4a504a937d30c4069a286d"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelManagerViewModel.handleAuthResult (cognitive 19): ModelManagerViewModel.handleAuthResult has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (18 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelManagerViewModel.kt"},"region":{"startLine":1929}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59d2f5716aaf94491bd4b1c84f4166b0fb6f93ee03e796b083d5f02c665c991"}},{"ruleId":"D2","level":"warning","message":{"text":"MetricsLogger.buildFirebaseBundle (cognitive 18): MetricsLogger.buildFirebaseBundle has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17 (18 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/common/metrics/MetricsLogger.kt"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fcf87d309ed15427e647d91797f2e52945032dd6aa25cd552d6d79d3d6bfbcf"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAlbumViewModel.onPermissionResult (cognitive 18): SmartAlbumViewModel.onPermissionResult has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 2 (6 pts), loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumViewModel.kt"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb3b1243266e7a9bc5411697a14e6d97c61d02a411a2c91b459dcdd8a5bbecb"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAlbumViewModel.triggerPrioritizedIndexing (cognitive 18): SmartAlbumViewModel.triggerPrioritizedIndexing has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 7, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumViewModel.kt"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a61d0812fd8abda98fa0b38667e2028e9c60bada6eae11eba50f3ca3e356b8a"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAlbumViewModel.observeSampleProgress (cognitive 18): SmartAlbumViewModel.observeSampleProgress has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (SmartAlbumViewModel.observeProgress) 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumViewModel.kt"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc3583f11802c6a928bec2442479f1fbc48d1cab6dd833f1d09c701ea4f502e"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAlbumViewModel.observeProgress (cognitive 18): SmartAlbumViewModel.observeProgress has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (SmartAlbumViewModel.observeSampleProgress) 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumViewModel.kt"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc0ebfb4ad98554c793252546c1efb048138751b56ab66bc109e93af34d0105"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonCursor.readString (cognitive 18): JsonCursor.readString has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherResponseSchema.kt"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a4ab6bb46cc8c24024101f55b8ae9f2032b5f76bfb58ba40ad84a3c44632086"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherAsrCoordinatorKt.selectedAsrEngineErrorCause (cognitive 18): XrLanguageTeacherAsrCoordinatorKt.selectedAsrEngineErrorCause has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/services/XrLanguageTeacherAsrCoordinator.kt"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c90b6e50e150a8a2cad21fab58710ce35aa446a80a06b3f2295432952ee5721"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherTtsEngineManagerKt.prepareSelectedTtsEngine (cognitive 18): XrLanguageTeacherTtsEngineManagerKt.prepareSelectedTtsEngine has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 2 (3 pts), boolean chains 2, error handling 2, match/switch 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/services/XrLanguageTeacherTtsEngineManager.kt"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4e58a6ebb8972b5c4253edd00b827f7ed640474608545940bc31bc911deca5"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherVocabGamesControllerKt.prewarmVocabGame (cognitive 18): XrLanguageTeacherVocabGamesControllerKt.prewarmVocabGame has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherVocabGamesController.kt"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e895ef3cd958246537f36d86c0bf28c5676a3b80eb1b59363218278435b7a80"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherHistorySideSheetKt.LessonHistorySessionCard (cognitive 18): XrLanguageTeacherHistorySideSheetKt.LessonHistorySessionCard has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (15 pts), match/switch 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherHistorySideSheet.kt"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f1ac003c97681d45e6adf4ddfe6340d08b0871b303bd7f75dae41530f14c94"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeechSelectionUseCase.selectableAsrEngineTypes (cognitive 18): SpeechSelectionUseCase.selectableAsrEngineTypes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 2 (4 pts), loops 2, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/supplementary/SpeechSelectionUseCase.kt"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b69b9c7569d672676ecf3b94629b0df7257dcb4683f05ec3165989bd3503986"}},{"ruleId":"D2","level":"warning","message":{"text":"HfUrlInfo.parse (cognitive 18): HfUrlInfo.parse 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/huggingface/HfModelUtils.kt"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc9243af8effc9e873414be8bae5a65564f89eaaa11af3765bb3b20108f35215"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeechProcessorAsrService.startRecording (cognitive 18): SpeechProcessorAsrService.startRecording has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 3, error handling 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/SpeechProcessorAsrService.kt"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"d17e19ee6d7b05e63ed02c4e05da7e2a2de671f224637070560f290d54a82356"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaPipeTtsHelperKt.trimClauseJoinSilenceRangeImpl (cognitive 18): MediaPipeTtsHelperKt.trimClauseJoinSilenceRangeImpl has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 5, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/MediaPipeTtsHelper.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf774aef9163109bd4d968aeb1bee8e9e609cc3874598b175fa31e40eadae7f"}},{"ruleId":"D2","level":"warning","message":{"text":"TtsTextNormalizer.segmentTextIntoChunks (cognitive 18): TtsTextNormalizer.segmentTextIntoChunks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (16 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/TtsTextNormalizer.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02c7a4b5ac3ab5388c738fbfc67860c192792b3f41c122e7d4e63748158a56f"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelPickerKt.ModelPicker (cognitive 18): ModelPickerKt.ModelPicker has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (17 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ModelPicker.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c077b66baacec6f81efa70fed496119f20995c5071618f90c3365bfebe5df08"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadModelPanelKt.DownloadModelPanel (cognitive 18): DownloadModelPanelKt.DownloadModelPanel has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/DownloadModelPanel.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5031edf2adc67f44d5879f3311390b913f899b2e35e66112b8442020af79d9a8"}},{"ruleId":"D2","level":"warning","message":{"text":"TextAndVoiceInputKt.TextAndVoiceInput (cognitive 18): TextAndVoiceInputKt.TextAndVoiceInput has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15 (18 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/textandvoiceinput/TextAndVoiceInput.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"e41e83b7b3ac3de787cf601a16cb39772f031212466a61e951a89d1e2a41db32"}},{"ruleId":"D2","level":"warning","message":{"text":"SupplementaryModelCardMapperKt.readyCard (cognitive 18): SupplementaryModelCardMapperKt.readyCard has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 7, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/SupplementaryModelCardMapper.kt"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31f6fca09b0c2de15e1eba071e380f8bb2b176943e9fc0c8e8ccba14a12a66a"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAlbumIndexingWorker.doWork (cognitive 17): SmartAlbumIndexingWorker.doWork has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (14 pts), error handling 2, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumIndexingWorker.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e164c395df6050fa3b7ceeadfc29b7b7f78f6619dec5401ba6cb6279e05b6d"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAlbumMathUtilsKt.getLogSliderMarks (cognitive 17): SmartAlbumMathUtilsKt.getLogSliderMarks has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumMathUtils.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc6e631155b9240956d1d10f0cdbc95338e59fffef0048cd908975669faf889"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAlbumSearchScreenKt.PhotoDetailDialog (cognitive 17): SmartAlbumSearchScreenKt.PhotoDetailDialog has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt"},"region":{"startLine":1548}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6dc10615e77023190655f0c19aeb1c367cfc8d97298422cfb0bf22ab6e6996"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoMomentFinderScreenKt.VideoMomentFinderScreen (cognitive 17): VideoMomentFinderScreenKt.VideoMomentFinderScreen has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/VideoMomentFinderScreen.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b25a795b5c18d62c187efb2d812c5bf2388a22fcb3b34c6ea64373f1f71e847"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherStickerModelDownloadController.onModelStatusChanged (cognitive 17): XrLanguageTeacherStickerModelDownloadController.onModelStatusChanged has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 2, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherStickerModelDownload.kt"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c60492b557ae09d6797b47a95ddd01fd8025a94211e90009c9a0e1d51a6891"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherStickerModelDownloadController.requireModel (cognitive 17): XrLanguageTeacherStickerModelDownloadController.requireModel has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), match/switch 2 (3 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherStickerModelDownload.kt"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03154d39ac59af181b082e1c165b77bb840b95245964bd1dd92a01ed969a0c7"}},{"ruleId":"D2","level":"warning","message":{"text":"GlassesTapActivity.handlePointerMotion (cognitive 17): GlassesTapActivity.handlePointerMotion has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/xr/GlassesTapActivity.kt"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"593942c1565e565c82b95ba9655d6ea424cc08dcb467178a0d381b83396c8d0b"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeechProcessorAsrHelperKt.createPrepareDeferred (cognitive 17): SpeechProcessorAsrHelperKt.createPrepareDeferred has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/SpeechProcessorAsrHelper.kt"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad4858130785f76dd2fe1a52412bbfae3a927dcdcea734ee425bb36bf727ef9"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeechProcessorAsrHelperKt.handleTranscriptionResult (cognitive 17): SpeechProcessorAsrHelperKt.handleTranscriptionResult has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 1 (3 pts), loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/SpeechProcessorAsrHelper.kt"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3dcbd0cd968e265dec4521e76f8a30c3bdcf44ac80bb7a95ca592ee4a7cf5b"}},{"ruleId":"D2","level":"warning","message":{"text":"GemmaEmbeddingModelStore.getDatabasePath (cognitive 17): GemmaEmbeddingModelStore.getDatabasePath has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/semanticretrieval/GemmaEmbeddingModelStore.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"0482e2928050c7073da00151c8f5f4c6a75a962616418228017a0e3e49185c95"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillManager.loadSkills (cognitive 17): SkillManager.loadSkills has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/skills/SkillManager.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12457364470d45424b03b9d1348a832127e2b298fbc7214d0cd365b2f816b99"}},{"ruleId":"D2","level":"warning","message":{"text":"TtsMessageBlocksKt.appendMarkdown (cognitive 17): TtsMessageBlocksKt.appendMarkdown has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/tts/TtsMessageBlocks.kt"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b5fe52c8c4aeb096e642fd292d014aeb7160fd84dbe071d7c2ca5d2c2fa14e"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeScreenKt.TaskList (cognitive 17): HomeScreenKt.TaskList has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 6, loops 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/home/HomeScreen.kt"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a37d75d55ad3cd60dadd5b0c69585b1ecf0c28000b6e183efbad56d5a0d1205"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsDialogKt.SettingsDialog (cognitive 17): SettingsDialogKt.SettingsDialog has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 1, loops 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/home/SettingsDialog.kt"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1dba6be33cc9560619c2098cdccbd6ba5ef978acb9aeb46ce89dc7ce0d25e61"}},{"ruleId":"D2","level":"warning","message":{"text":"LlmChatModelHelper.loadEngine (cognitive 17): LlmChatModelHelper.loadEngine has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, error handling 4 (5 pts), match/switch 2, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatModelHelper.kt"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c8d32e4130beee71c6ebb6d3400ff52098eaa1b5d8c04faa1c798a8a40f1fa"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelManagerViewModel.groupTasksByCategory (cognitive 17): ModelManagerViewModel.groupTasksByCategory has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 2 (3 pts), match/switch 1 (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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelManagerViewModel.kt"},"region":{"startLine":2531}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d2ea1db83d358d2c7a5236c8f96afb0762aa63882696c0d062cda66d2e77b7"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskModelSelectionViewModel.selectModel (cognitive 17): TaskModelSelectionViewModel.selectModel has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/TaskModelSelectionViewModel.kt"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a1ecc22a0efb62dbe7e3bf7b156b5acd8f422db13a45ee6c6a9a8a2dc30a6a8"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskModelSelectionViewModel.continueLaunch (cognitive 17): TaskModelSelectionViewModel.continueLaunch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/TaskModelSelectionViewModel.kt"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"720f2e4f0b6129dfd67118b4cfb9af9d849821145b41941182f413f345242bc8"}},{"ruleId":"D2","level":"warning","message":{"text":"index.html.fetchWikiFuzzyAndInfobox (cognitive 17): index.html.fetchWikiFuzzyAndInfobox has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, error handling 1, match/switch 1 (nesting depth added 3). Of this number, 13 points are the body\u0027s own statements and 4 belong to one function literal 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":"Android/src/app/src/main/assets/skills/query-wikipedia/scripts/index.html"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb96f4ce8f2766cbfcefc97ad2d649bafc82d929e574f1aa2521701902a0781"}},{"ruleId":"D2","level":"warning","message":{"text":"index.html.fetchWikiFuzzyAndInfobox (cognitive 17): index.html.fetchWikiFuzzyAndInfobox has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, error handling 1, match/switch 1 (nesting depth added 3). Of this number, 13 points are the body\u0027s own statements and 4 belong to one function literal 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":"skills/built-in/query-wikipedia/scripts/index.html"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fef7efa8624703c6a35712a32aa5a27c48716db84629522598996751930f7b9"}},{"ruleId":"D2","level":"warning","message":{"text":"McpManagerBottomSheetKt.McpManagerBottomSheet (cognitive 16): McpManagerBottomSheetKt.McpManagerBottomSheet 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerBottomSheet.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3820fecfcc17e8ea8a2b4922bfb051ea9aab35906e82514caba209a8bd155c7"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherDialogueFormatter.normalizeMultilingualTtsSegments (cognitive 16): XrLanguageTeacherDialogueFormatter.normalizeMultilingualTtsSegments has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherDialogueFormatter.kt"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"c210a83dcaec6423517c6b2734bd7f4e947c4e5091318e2714290ba8845fd43a"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherOnboardingOverlayKt.XrLanguageTeacherOnboardingOverlay (cognitive 16): XrLanguageTeacherOnboardingOverlayKt.XrLanguageTeacherOnboardingOverlay has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (14 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherOnboardingOverlay.kt"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"804585d08440a2da7ed690d7896354407c3569b3197e7a9d6405eddc907d515c"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherCameraViewKt.XrGlassesModeScreen (cognitive 16): XrLanguageTeacherCameraViewKt.XrGlassesModeScreen has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 4, match/switch 4. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherCameraView.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de6ab9c20c78146a4c0bdb234531cb8fde4fd15c4ddf58441c14c7bea742100"}},{"ruleId":"D2","level":"warning","message":{"text":"XrLanguageTeacherVocabRunnerScreenKt.VocabRunnerContent (cognitive 16): XrLanguageTeacherVocabRunnerScreenKt.VocabRunnerContent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabRunnerScreen.kt"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e520b7481cb4bba2006a112f596ecd0c0c5b8d84ec42ba99f7b9ee0806338d5"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelUtils.configureVisualTokenBudgetForModel (cognitive 16): ModelUtils.configureVisualTokenBudgetForModel has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (14 pts), 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/ModelUtils.kt"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9db716ead9d70b0455173393b0d260d7846e76c7f24fb4a75741ffe2dcf9db5"}},{"ruleId":"D2","level":"warning","message":{"text":"IntentHandler.handleAction (cognitive 16): IntentHandler.handleAction has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), error handling 3 (6 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/intents/IntentHandler.kt"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef89d645b4169c97439f13b18ac8a9d70e5ddddc2d38983a7a31d2a51be381e"}},{"ruleId":"D2","level":"warning","message":{"text":"MlKitAsrService.startRecording (cognitive 16): MlKitAsrService.startRecording has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), match/switch 2 (4 pts), boolean chains 2, error handling 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/MlKitAsrService.kt"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81c0bb767440209fb42dccf8611af26c25729e8dc591d250354b6199d8368e7"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultPhotoLibraryService.createAssetFromUri (cognitive 16): DefaultPhotoLibraryService.createAssetFromUri has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":1305}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf3bdaa5f0a41681b4fb49a3a73ff0f7a6fc833f8053d5ffb70d3f0299a64b3"}},{"ruleId":"D2","level":"warning","message":{"text":"SemanticRetrievalService.retrieveEntitiesInternal (cognitive 16): SemanticRetrievalService.retrieveEntitiesInternal has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), error handling 2 (4 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/semanticretrieval/SemanticRetrievalService.kt"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0481465d624453372539d8bc696fe68820896e635835b08c7be176cddbba4d"}},{"ruleId":"D2","level":"warning","message":{"text":"TtsTextNormalizer.convertEmojisToSpokenWords (cognitive 16): TtsTextNormalizer.convertEmojisToSpokenWords has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/TtsTextNormalizer.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"781d10d49c88910611f1151dfa7de2bda269b70d0f049b7e6e3b5bd8c0488413"}},{"ruleId":"D2","level":"warning","message":{"text":"TtsTextNormalizer.stripUnmatchedBrackets (cognitive 16): TtsTextNormalizer.stripUnmatchedBrackets has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2, match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/TtsTextNormalizer.kt"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b1b9e1782a04f4a086bd7d6149d2bc8399e607cb54a41428fdd474483c3c55b"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillManager.convertSkillMdToProto (cognitive 16): SkillManager.convertSkillMdToProto has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), match/switch 2 (6 pts), loops 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/skills/SkillManager.kt"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ed1332ac41792473666989b9c7e864b550dc721f5a0165ed2c3b3c000ce1791"}},{"ruleId":"D2","level":"warning","message":{"text":"HoldToDictateKt.HoldToDictate (cognitive 16): HoldToDictateKt.HoldToDictate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), error handling 1 (3 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/asr/HoldToDictate.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a95bb8e4052e49ca729ead6d989ff926a014452cde126f508444e2d8137801"}},{"ruleId":"D2","level":"warning","message":{"text":"ResponsePanelKt.ResponsePanel (cognitive 16): ResponsePanelKt.ResponsePanel has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (16 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/ResponsePanel.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae3663cc5458b82f60a967f3332831894edde8ff31ebd2cdf9159e987042a913"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelManagerViewModel.setDownloadStatus (cognitive 16): ModelManagerViewModel.setDownloadStatus has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 5 (6 pts), loops 1 (3 pts) (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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelManagerViewModel.kt"},"region":{"startLine":1589}}}],"partialFingerprints":{"codehealthFindingId/v1":"864978022fe13870c63c0b4eedc8fe07ae1dfe8938e91f6dd0e04dc0e663d883"}},{"ruleId":"D2","level":"warning","message":{"text":"NotificationsScreenKt.NotificationsScreen (cognitive 16): NotificationsScreenKt.NotificationsScreen has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/notifications/NotificationsScreen.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1c2dfaf143b4de25665c64b347f74df6b8cab5160bcb167dee5e81d4de860c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: smartalbum/SmartAlbumSearchScreen.kt: FileTooLong \u2014 2354 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1854 over it, 4.71\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"991d2c71d6c12fa8035f6c12cbe45d78a7653abe761e441bdb52e621c3e29627"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ModelManagerViewModel: ClassTooLong \u2014 1426 significant lines (blank, comment-only and punctuation-only lines excluded), 89 methods. The bar is 400 significant lines; this is 1026 over it, 3.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelManagerViewModel.kt"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"894c63f93d2d8ba076ecaba5ee6435336225624a8db2a0791a8f4c53b215e045"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClipEditorScreenKt.ClipEditorScreen: MethodTooLong \u2014 ClipEditorScreen runs 340 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 240 over it, 3.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/ClipEditorScreen.kt"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b9b6c77cb2a8c7d686484bb1dc0bb86c2f3c59ca8c447966a42fdb94e9b2ec"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TinyGardenScreenKt.MainUi: MethodTooLong \u2014 MainUi runs 337 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 237 over it, 3.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/tinygarden/TinyGardenScreen.kt"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa381dc57bfd786c383c4331a7cd889feb43411ebc015bd4ea1d7bdef6ccb11e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: XrLanguageTeacherTask.MainScreen: MethodTooLong \u2014 MainScreen runs 336 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 236 over it, 3.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/XrLanguageTeacherTask.kt"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e466769fc08cf5e183341f819570543c3b39ddde6578e8abefda92efb338f8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: modelmanager/ModelManagerViewModel.kt: FileTooLong \u2014 1619 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: ModelManagerViewModel (306-2596). The bar is 500 significant lines; this is 1119 over it, 3.24\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelManagerViewModel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c9e3b3b7dc7c725ca0c2d9bca33f98b140f96d3c1f51ab1c9adf256f2a9a808"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MobileActionsScreenKt.MainUi: MethodTooLong \u2014 MainUi runs 313 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 213 over it, 3.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/mobileactions/MobileActionsScreen.kt"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"83414fac8977c5996e2d694fc0324ca8508bd1058de7eef35402a7445456fc44"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GalleryNavGraphKt.GalleryNavHost: MethodTooLong \u2014 GalleryNavHost 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/navigation/GalleryNavGraph.kt"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a87dd1260cf84bff29925173a79391c478fb9b99c0234e3eced4aa752c03f3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ModelManagerViewModel: TooManyMethods \u2014 89 methods. The bar is 30 methods; this is 59 over it, 2.97\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelManagerViewModel.kt"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ece553e156aa7507cdd6bbe3b59b01d3c0b16ac8647477e6850ed841586b3e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ProjectDetailsScreenKt.MomentSearchPanel: MethodTooLong \u2014 MomentSearchPanel runs 289 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 189 over it, 2.89\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/ProjectDetailsScreen.kt"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dab6a67cef057761572a33f058dedc1ac5063e6be44218ab8a484d8a65f1400"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: common/ConfigDialog.kt: FileTooLong \u2014 1224 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 724 over it, 2.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ConfigDialog.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"547fce12638526db02463fe497ebf6e3dc3530a43ce8300f26f680cb35e19993"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ScrapbookViewModel: ClassTooLong \u2014 978 significant lines (blank, comment-only and punctuation-only lines excluded), 59 methods. The bar is 400 significant lines; this is 578 over it, 2.45\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/ScrapbookViewModel.kt"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"13dc6436745e02bd194e56fa5aaa5ad88e8132d825fa2ee039be7a7fd1d3d16a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: chat/MessageInputText.kt: FileTooLong \u2014 1185 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 685 over it, 2.37\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/MessageInputText.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"128b739d48a2f4694eae1b3ff63a2abfda964b0328ad5700cc08120818583411"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VideoMomentFinderViewModel: ClassTooLong \u2014 920 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 520 over it, 2.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/VideoMomentFinderViewModel.kt"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77df105d146855d74fefda1794b3d52924e6d5eacf837c50c752079dff37065"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scrapbook/ScrapbookViewModel.kt: FileTooLong \u2014 1147 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: ScrapbookViewModel (260-1865). The bar is 500 significant lines; this is 647 over it, 2.29\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/ScrapbookViewModel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"116538c0d4be1cf65e9a24cf281528e7e207f502ae49839bea1349b219eeebeb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DownloadWorker.doWork: MethodTooLong \u2014 doWork runs 226 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 126 over it, 2.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/worker/DownloadWorker.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc62cba210fb3527f751f31ae6a6b78fb56a49f394829c06bfe36882968ed00"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TtsPlaybackController: ClassTooLong \u2014 903 significant lines (blank, comment-only and punctuation-only lines excluded), 55 methods. The bar is 400 significant lines; this is 503 over it, 2.26\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/tts/TtsPlaybackController.kt"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe64492f60985106484eb412b13dfc7ddc0a4ecd511562928108850e527743e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DefaultPhotoLibraryService: ClassTooLong \u2014 902 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 502 over it, 2.26\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e4725a80f3fa70fe5bf3d4c4be49e8ded9870bd87f80ef0e0ea8044dccfccf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tts/TtsPlaybackController.kt: FileTooLong \u2014 1078 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: TtsPlaybackController (300-1775). The bar is 500 significant lines; this is 578 over it, 2.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/tts/TtsPlaybackController.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12badbaa59346d05ffb7c05a0b9c9a8bd86abee71fd5808c7dcba16dac7307e0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: videomomentfinder/VideoMomentFinderViewModel.kt: FileTooLong \u2014 1021 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: VideoMomentFinderViewModel (169-1655). The bar is 500 significant lines; this is 521 over it, 2.04\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/VideoMomentFinderViewModel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d892c8a7334c359605b92479d650e6a58b32e07bacce62a67e07fd66c2da0b6d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: photolibrary/PhotoLibraryService.kt: FileTooLong \u2014 1005 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: DefaultPhotoLibraryService (198-1390). The bar is 500 significant lines; this is 505 over it, 2.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2007b120662047c111a132f7eb66123c1a483eed3dfe386ae9d48aa93c4799e5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MlKitTtsHelperKt.synthesisAttempt: MethodTooLong \u2014 synthesisAttempt 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/MlKitTtsHelper.kt"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"954719029e8937b24749972e40fea71fad4a01fc0b55680816e784597e99bee1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ScrapbookViewModel: TooManyMethods \u2014 59 methods. The bar is 30 methods; this is 29 over it, 1.97\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/ScrapbookViewModel.kt"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5aa8ff729973e573e1ea65ca22c7a62d85c30b38f4fa7ffa1acba4d60c28ba"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: videomomentfinder/ProjectDetailsScreen.kt: FileTooLong \u2014 980 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 480 over it, 1.96\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/ProjectDetailsScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0bd9aa6246cb3a5681b211166a2023cb3a315a00c07ad404874fdc86b1f19d6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SmartAlbumScreenKt.StartAnalyzingAllPhotosBottomSheet: MethodTooLong \u2014 StartAnalyzingAllPhotosBottomSheet 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumScreen.kt"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b0735e8587acbb377853f2422fc0ce36765e6b4a8ea2f1faddc0664a6b690c9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SmartAlbumViewModel: ClassTooLong \u2014 751 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 400 significant lines; this is 351 over it, 1.88\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumViewModel.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c87b42eeb0c012ed47ff4532a7fc4f15588e167f2765cd2d6b5d6f09a4b2a3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TtsPlaybackController: 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/tts/TtsPlaybackController.kt"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1bebabdbbb3301f167ea1dd2fa6c9ea9d8e018807dda193ecacb83b933cddb0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: smartalbum/SmartAlbumScreen.kt: FileTooLong \u2014 886 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 386 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8039ed78df615b41955337704d247fbf824b1f16132750288ab223b905161194"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: modelmanager/ConfigAudioTabMapper.kt: FileTooLong \u2014 886 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 386 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ConfigAudioTabMapper.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f453b99e0330829ae73751dc198d70e8f3ad845b5c09c8b8323a246dde0b6c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ScrapbookViewModel.applyCutoutEdits: MethodTooLong \u2014 applyCutoutEdits runs 177 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 77 over it, 1.77\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/ScrapbookViewModel.kt"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"2427132fc6cc6cb18b2d255a01017886de48a402c8c4ee45f093919c0456da18"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SmartAlbumAnalysisProgressCardKt.SmartAlbumAnalysisProgressCard: MethodTooLong \u2014 SmartAlbumAnalysisProgressCard runs 177 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 77 over it, 1.77\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumAnalysisProgressCard.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8876a815e22bfb7e8680cd1367d09e2fc4354c3ed783433c92b5c2762a144b9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DefaultDataStoreRepository: TooManyMethods \u2014 52 methods. The bar is 30 methods; this is 22 over it, 1.73\u00D7 the bar. Most of these members implement data.DataStoreRepository (51 of 52 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/DataStoreRepository.kt"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb407d99e0f27486615f257214d8555c6cf7da318cb3a45168f93f78055210b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BenchmarkScreenKt.BenchmarkScreen: MethodTooLong \u2014 BenchmarkScreen 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/benchmark/BenchmarkScreen.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b329ad407b3e69e7d029300d7cde46b0b210874b98c52501528806168444203"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SmartAlbumScreenKt.SmartAlbumMainContent: MethodTooLong \u2014 SmartAlbumMainContent 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumScreen.kt"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1163129ef51a7d22a4b6bb16a30fd64802cf969bddf6c3a9d0a836d76d6953c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AddOrEditSkillBottomSheetKt.ScriptsTabContent: MethodTooLong \u2014 ScriptsTabContent 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddOrEditSkillBottomSheet.kt"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf5de4dbd47f7a2e0b6aede5c3b6fcafcc79a13c9485217bec9fc5a3d5584aa"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ContextCompactionBannerKt.ContextCompactionBanner: MethodTooLong \u2014 ContextCompactionBanner 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ContextCompactionBanner.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"5353e5f0eab7bf0f6355e8bf51c320ea6c4925ea2f8080a14d068c449726d7b1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ProcessingConfigDialogKt.ProcessingConfigDialog: MethodTooLong \u2014 ProcessingConfigDialog 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/ProcessingConfigDialog.kt"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"756619525d96ccc6816647c1dea35f87eb00ad934e173779a6ae11dfd67ddfc5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AllowedModel.toModel: MethodTooLong \u2014 toModel 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/ModelAllowlist.kt"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db18d1dc3e1c09726baa60bd58f23a43a6210cc047e01f75274d8e52997206c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scrapbook/CutoutEditor.kt: FileTooLong \u2014 817 significant lines (blank, comment-only and punctuation-only lines excluded), about 76% of them inside a single declaration: STATE (209-1127). The bar is 500 significant lines; this is 317 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/CutoutEditor.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77e8ef1fae04b96b4d04b88b20afceb13edbcbbdca84ee6e025eaf5e1d5eba56"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiveMetricsBarKt.resolveLiveMetricsUiState: MethodTooLong \u2014 resolveLiveMetricsUiState runs 162 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/LiveMetricsBar.kt"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcad70c9a07e32cb0969f446c2a543f80cc7b6d8edf0412e285c01e2faf9e589"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: smartalbum/SmartAlbumViewModel.kt: FileTooLong \u2014 798 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: SmartAlbumViewModel (72-1096). The bar is 500 significant lines; this is 298 over it, 1.60\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumViewModel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea930f878718e83cb05dbc699df6ebc06a5ca56cdf7e3bb184251c3b03c25c9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: chat/ChatPanel.kt: FileTooLong \u2014 794 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: val (145-1106). The bar is 500 significant lines; this is 294 over it, 1.59\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatPanel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba7a2baabc2e9f0f356d0ca4022ad1937e7a81d041b86dc557d9b8a9a1c3ce8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: home/HomeScreen.kt: FileTooLong \u2014 777 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 277 over it, 1.55\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/home/HomeScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bbcf1a15a264a28abef546b109c4d2d47d23ca9e371aa4872af2d33e0bef030"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TtsPlaybackController.speak: MethodTooLong \u2014 speak 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/tts/TtsPlaybackController.kt"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb1253b9ffcb4a48481c6f08c701ce9f2159bbf3c782833d580c299384552b6f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SmartAlbumViewModel: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumViewModel.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd674ea66529c2b650e0ea82a03a812184f28739034c150620d2f8e15312cd50"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: benchmark/BenchmarkResultsViewer.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/benchmark/BenchmarkResultsViewer.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d80992412e37ae3dd171ab9b70296fec89ae526572bb759961f70177e4b46c1b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: XrLanguageTeacherVocabPopperEngine: ClassTooLong \u2014 604 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 204 over it, 1.51\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabPopperEngine.kt"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9bed516fb42350743a90d04515479ddc47e5f53dd40cfc0a3a18b6692526f5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agentchat/SkillManagerBottomSheet.kt: FileTooLong \u2014 749 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 249 over it, 1.50\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/SkillManagerBottomSheet.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2350117a4ab03b4deebebbfbe98528dfbc05670c40066969aa19edb286376ef3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SkillManager: ClassTooLong \u2014 592 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 192 over it, 1.48\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/skills/SkillManager.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"1977e9fcd1627bb4cdd3f1fc91acfbe930451b065d349a5421bcb451870445db"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: studyview/XrLanguageTeacherVocabGameChrome.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabGameChrome.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d454c8e6650729a01a079b2ecb93e67aaac44e9490b918c216cf35e86ffe80"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatViewModel: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 over it, 1.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatViewModel.kt"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"c098064925b3a15d1641c5a1c41c117a5a32bccc1632670fe3626c2a0f77ecb7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DefaultDownloadRepository.observeWorkerProgress: MethodTooLong \u2014 observeWorkerProgress 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/DownloadRepository.kt"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f0e783990160e9a3d7bb7cd39c8d7cc40d75877f22eb76e07030022973a373"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/XrLanguageTeacherVocabPopperEngine.kt: FileTooLong \u2014 724 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: XrLanguageTeacherVocabPopperEngine (232-1081). The bar is 500 significant lines; this is 224 over it, 1.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabPopperEngine.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09814cb044ff7c38c3775eef998cb6359c4c79b14ca84ad79aff5a7d13763762"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: modelmanager/TaskModelSelectionViewModel.kt: FileTooLong \u2014 721 significant lines (blank, comment-only and punctuation-only lines excluded), about 60% of them inside a single declaration: TaskModelSelectionViewModel (498-1161). The bar is 500 significant lines; this is 221 over it, 1.44\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/TaskModelSelectionViewModel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1322ed07b53ac9b348932d0e2b7e68c05fedb6afb9fdf2b2802371d05870a6e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: McpToolManagerBottomSheetKt.McpToolManagerBottomSheet: MethodTooLong \u2014 McpToolManagerBottomSheet 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpToolManagerBottomSheet.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c027f0d9eab8c7c5ad977b9f704b3a7ae1c14960a233d113efc7789efe7f0ce"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MediaPipeTtsEngine.synthesize: MethodTooLong \u2014 synthesize 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/MediaPipeTtsEngine.kt"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4600fcec2b6179baed419e71933301a24623a0d4463808ad7f89b1b763765b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VideoMomentFinderViewModel.searchForMoment: MethodTooLong \u2014 searchForMoment 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/VideoMomentFinderViewModel.kt"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2a20afbadb79bbafa1a922a0b368c468ca4f1281d77220688bdbdc6ebe6323"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: XrLanguageTeacherVocabGameChromeKt.VocabGameResults: MethodTooLong \u2014 VocabGameResults 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabGameChrome.kt"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"2422a0437dfb43fbf8c9a2fdb5e1d37219b084e5e0139ed86fa3f18a02e080dd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HfModelDetailsSheetKt.HfModelDetailsContent: MethodTooLong \u2014 HfModelDetailsContent runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/HfModelDetailsSheet.kt"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dab923090cd3acd0d5d000fcbc7b6d2695ff93b669e5b80e544dca8cf4cec2d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConfigAudioTabMapperKt.buildConfigTtsSection: MethodTooLong \u2014 buildConfigTtsSection runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ConfigAudioTabMapper.kt"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"384fed5b64247ace6d98b7588a364481edab5274e69a0b164622f6168f81307a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: studyview/XrLanguageTeacherStudyView.kt: FileTooLong \u2014 670 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 170 over it, 1.34\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherStudyView.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85b3723074e46b42b1b975a8109054aaaf812157e21330568ba4e588211c43d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AICoreModelInstance: ClassTooLong \u2014 532 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 132 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/runtime/aicore/AICoreModelHelper.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d8ea7c60099c7dc3e2769fab4c696c01c80bfd28ea1031aaff1f8629093c35f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: XrLanguageTeacherLanguageFormKt.LanguageDropdownField: MethodTooLong \u2014 LanguageDropdownField runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherLanguageForm.kt"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9b5a43d1219f7ee3b066564d608a2260c142a63e775dbcf60a72d03057109b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/XrLanguageTeacherTtsCoordinator.kt: FileTooLong \u2014 661 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 161 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/services/XrLanguageTeacherTtsCoordinator.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"812a4c40d5d44bef44b5d339a539a3ec0760819cfbbcc9f644f66ad69a44dde9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiveMetricsBarKt.LiveMetricsBar: MethodTooLong \u2014 LiveMetricsBar runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/LiveMetricsBar.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"3949b164d740a17bdd21551ec6a58bc5fc53905a208a871fe7ed075261317458"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scrapbook/CollageEditor.kt: FileTooLong \u2014 653 significant lines (blank, comment-only and punctuation-only lines excluded), about 62% of them inside a single declaration: val (150-728). The bar is 500 significant lines; this is 153 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/CollageEditor.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03564b34abb3dbdc0b0bdff15b5995ff79a5ff8e860ebee63f5d6c191180f4db"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: skills/SkillManager.kt: FileTooLong \u2014 650 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: SkillManager (78-1124). The bar is 500 significant lines; this is 150 over it, 1.30\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/skills/SkillManager.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a618830d5c7fd2ac6efc38978886b697414fe3e03a3413fb43e4080e8c302c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MediaPipeTtsEngine: ClassTooLong \u2014 519 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 119 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/MediaPipeTtsEngine.kt"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1ce75b3a6b9d3790b21d2b70b602a5c447c25a396ba46309794873e1c03e32"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatViewModel: ClassTooLong \u2014 518 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 400 significant lines; this is 118 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatViewModel.kt"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd77d075938d62321ec1cc450b447297763a861e09ffae733bbcc2577cbc7af"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SmartAlbumSearchViewModel: ClassTooLong \u2014 512 significant lines (blank, comment-only and punctuation-only lines excluded), 36 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchViewModel.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"364cdc4ec1b1c3f64eff1bfab9988f0f2af4c3c684fc8a2288a1add5a83ec7c0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelNameAndStatusKt.ModelNameAndStatus: MethodTooLong \u2014 ModelNameAndStatus runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelNameAndStatus.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"518c38351f66d3fab0e7dca857ce718ea1a493e436d7a680038dce16d7d3d404"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AddSkillFromFeaturedListBottomSheetKt.AddSkillFromFeatureListBottomSheet: MethodTooLong \u2014 AddSkillFromFeatureListBottomSheet 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddSkillFromFeaturedListBottomSheet.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf43244d5c60690fb0882e7763ed1da6623d549d8bbcd364fa3bb6a33260875"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConfigDialogKt.ConfigDialog: MethodTooLong \u2014 ConfigDialog runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ConfigDialog.kt"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"9645aad8530e3dfa37b20b31c1bc7ae5ce1a1c0091d3f93857152b6907f899af"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TtsModelDetailsKt.VoiceProfilesPanel: MethodTooLong \u2014 VoiceProfilesPanel runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/TtsModelDetails.kt"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"050f0f38514e29fe7494db3abab1bfaa01fa49cc0c3a938a2edbcb35489fcf58"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cameraview/XrLanguageTeacherVocabBottomSheet.kt: FileTooLong \u2014 627 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 127 over it, 1.25\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherVocabBottomSheet.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1af32e907458f35891c98dd3bdb01e8e15e93e2356c99022ded2536f38d9548"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: smartalbum/SmartAlbumAnalysisProgressCard.kt: FileTooLong \u2014 625 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 125 over it, 1.25\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumAnalysisProgressCard.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0e74ddbffcd85dfd9a79349ae6a04374be990ba0b162be8fd2e0ff1e9bf4d1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LlmChatModelHelper.runInference: MethodTooLong \u2014 runInference 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatModelHelper.kt"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f67231911d5dc4de6bbdc9086f1e4b7fadbe39f917cfa2165bdf380cf1ac7d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SmartAlbumSearchViewModel: 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchViewModel.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4986371902e7787f2c565aa7208bf955f40288d72a00bd01de587d28a352090"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agentchat/AgentChatScreen.kt: FileTooLong \u2014 600 significant lines (blank, comment-only and punctuation-only lines excluded), about 71% of them inside a single declaration: chatViewJavascriptInterface (121-715). The bar is 500 significant lines; this is 100 over it, 1.20\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AgentChatScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e603fee3fbf96aed4a6af8fc45ed559af170bbe22115c1f6e03a9254f59fe3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SmartAlbumSearchScreenKt.LiveCameraSearchContent: MethodTooLong \u2014 LiveCameraSearchContent 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt"},"region":{"startLine":3020}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3a918404be129ffa11e701830d7d0dc53e168734e8dfb7c6c3bc824eb32859"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: XrLanguageTeacherVocabGameStartViewKt.VocabGameStartScreen: MethodTooLong \u2014 VocabGameStartScreen 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabGameStartView.kt"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"23dc03323a60781a9eda73c3cbfa9332728f1c6f794b56339385cd3f17cbafcf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tts/MediaPipeTtsEngine.kt: FileTooLong \u2014 594 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: MediaPipeTtsEngine (135-905). The bar is 500 significant lines; this is 94 over it, 1.19\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/MediaPipeTtsEngine.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3740f5e989ca4b11eb55342b64d249756eebdc054e9443d3a5f6a0abf33cb4fe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: aicore/AICoreModelHelper.kt: FileTooLong \u2014 593 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: AICoreModelInstance (86-837). The bar is 500 significant lines; this is 93 over it, 1.19\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/runtime/aicore/AICoreModelHelper.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"367433b61c7fabc4f5b699275dd37dc170d6da33565dcd8c609f02289871ce0b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SystemSpeechAsrService: ClassTooLong \u2014 474 significant lines (blank, comment-only and punctuation-only lines excluded), 12 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/SystemSpeechAsrService.kt"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88eaaa60182a386b3c69903b0e0080799ddd7c5df3d9ad8fa76cccde5dbd625"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SmartAlbumIndexingWorker.indexSamples: MethodTooLong \u2014 indexSamples runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumIndexingWorker.kt"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"b13ce8e1a36d0dbb61c0c69acb47573e29e1f447f1fac3a345d2d6c5e025b38f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VoicePreviewController.startVoicePreview: MethodTooLong \u2014 startVoicePreview runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/VoicePreviewController.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"807617163b5c8b4aa9a5f84413ad25010f9fc56115112efca302b8d6ba8ee420"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cameraview/XrLanguageTeacherCameraHudView.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherCameraHudView.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"542a8d754da3d2de7e7643fbdf1ed041dace498ce36d305b2e15993383c29c35"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: chat/ChatViewModel.kt: FileTooLong \u2014 587 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: ChatViewModel (141-983). The bar is 500 significant lines; this is 87 over it, 1.17\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatViewModel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22db7889e9394c066b567995a7e991c27a1532ef8b0fc3496b9aeb4022f7a15"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: xrlanguageteacher/XrLanguageTeacherTask.kt: FileTooLong \u2014 585 significant lines (blank, comment-only and punctuation-only lines excluded), about 71% of them inside a single declaration: XrLanguageTeacherTask (154-722). The bar is 500 significant lines; this is 85 over it, 1.17\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/XrLanguageTeacherTask.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce54a5fc0428b1e0ab56c4c49d941800901257122cb5e44cfb05b30c3632f7f5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SkillManagerBottomSheetKt.SkillItemRow: MethodTooLong \u2014 SkillItemRow runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/SkillManagerBottomSheet.kt"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6a7c47c61231cbf63105716b256e958d91ca5cbd56c5b3f07ec73605bc077c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: XrLanguageTeacherTtsFillersAndPreviewKt.playPersonaPreview: MethodTooLong \u2014 playPersonaPreview runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/services/XrLanguageTeacherTtsFillersAndPreview.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"b718ea78f7e9646e88b16f90d8d73550f736a2b35ea5b7cd1293797ccc571182"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DownloadWorker: ClassTooLong \u2014 466 significant lines (blank, comment-only and punctuation-only lines excluded), 6 methods. The bar is 400 significant lines; this is 66 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/worker/DownloadWorker.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fca900377a0ba542ae5618259e6a44736965a55f28ddb69bbd89f2b124759b1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MultilingualTtsSegment: ClassTooLong \u2014 464 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 64 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherDialogueFormatter.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffad527b8a576682d6b32ab5402fc96962190017754290eb19ad24881e616e8c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: XrLanguageTeacherVocabPopperEngine.step: MethodTooLong \u2014 step 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabPopperEngine.kt"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee739488b278964b801505a0ca41ebfd16028c0bed4d7f60b18d2e47c15f021"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: XrLanguageTeacherVocabPopperEngine.tap: MethodTooLong \u2014 tap 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabPopperEngine.kt"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"2afdb5f2b24bff79bd084509356faae537bc63d427250fead3501d1b1a61aa4c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: XrLanguageTeacherHistorySideSheetKt.LessonHistorySessionCard: MethodTooLong \u2014 LessonHistorySessionCard 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherHistorySideSheet.kt"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"c38d4c176c8a4cb58bb91cf56f907022575119156e5594e583e38e83ec2258e2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SupplementarySpeechModelRepository: ClassTooLong \u2014 462 significant lines (blank, comment-only and punctuation-only lines excluded), 33 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/supplementary/SupplementarySpeechModelRepository.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b8ba48a65ebaac6216bc18d8c47b4e65faff25b432f5c1c7c596c15e10b7ed"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: asr/MlKitAsrService.kt: FileTooLong \u2014 572 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: aiCoreVersionCodeProvider (77-827). The bar is 500 significant lines; this is 72 over it, 1.14\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/MlKitAsrService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12bf87c8c7f36ac24f5c20df20b89c995466c168a57301445b6f16a922c1dfb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: modelmanager/ModelManagerAudioSettings.kt: FileTooLong \u2014 569 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 69 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelManagerAudioSettings.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24344c74db9e0b0624de1b4d9469c9d4341d6c90f7d281c4c462c68551d27973"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: XrLanguageTeacherVocabRunnerEngine.step: MethodTooLong \u2014 step 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabRunnerEngine.kt"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a71e156de4b4d2ca73c89bd1e2342752091206a96be7472283b4a6a71fce7e7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ResolvedSpokenPhrases: ClassTooLong \u2014 448 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 48 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/spokenphrases/XrLanguageTeacherSpokenPhrases.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e0591968b350d29cefeb36633bda3b8f0f1c01c325b6942c58ce55a7f9707b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SkillTesterBottomSheetKt.SkillTesterBottomSheet: MethodTooLong \u2014 SkillTesterBottomSheet 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/SkillTesterBottomSheet.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bce737e202370d97099415ed9a9f311135c1cabb1de35ee3da0cd80848cf542"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: XrLanguageTeacherHistorySideSheetKt.SessionHistorySideSheetContent: MethodTooLong \u2014 SessionHistorySideSheetContent 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherHistorySideSheet.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02f6cde379dc8f5dfdfdfaa1fc1d666280a1d690e5a2117de794f71cd32e5ab"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConfigDialogKt.AudioLanguageDropdownSection: MethodTooLong \u2014 AudioLanguageDropdownSection 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ConfigDialog.kt"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d27943446aec701fd43f13dd5e7e716c54d086c44f0e7cd852704a52dce8ed"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: modelmanager/SectionedModelSelectionScreen.kt: FileTooLong \u2014 555 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 55 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/SectionedModelSelectionScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"425e120b62457e63f5203f8e12c8a2e7d32ccd0282591269bdb7c7e43210f5a2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SmartAlbumIndexingWorker.indexUserPhotos: MethodTooLong \u2014 indexUserPhotos 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumIndexingWorker.kt"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"806f4cd4a3828eca652806e162a23abaefc6fd572370b3cf0bba74e245fb3df7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VideoMomentFinderViewModel.importVideo: MethodTooLong \u2014 importVideo 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/VideoMomentFinderViewModel.kt"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e3f659b0dedf467891b9f5c0a408af9c00d35c8989f235bb549b6a39313fb0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: viewmodels/XrLanguageTeacherViewModel.kt: FileTooLong \u2014 551 significant lines (blank, comment-only and punctuation-only lines excluded), about 69% of them inside a single declaration: XrLanguageTeacherViewModel (258-999). The bar is 500 significant lines; this is 51 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherViewModel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"331af5c115de25078a1c9a33f50da6065155154f24f78863369f598a4ca6a4fc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SpeechSelectionUseCase: 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/supplementary/SpeechSelectionUseCase.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b82d737d344ae585d1f3eef2a88c4a035b51ce36dd3df755d2b223668cf919"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SupplementarySpeechModelRepository: 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/supplementary/SupplementarySpeechModelRepository.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"61eef946ecb5419caf8dd72cb6c8e9db3f81156f659244aa052383bbd0833e71"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: modelmanager/GlobalModelManager.kt: FileTooLong \u2014 550 significant lines (blank, comment-only and punctuation-only lines excluded), about 77% of them inside a single declaration: ModelDetailsContext (117-729). The bar is 500 significant lines; this is 50 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/GlobalModelManager.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"217cfa0fdb0304c9245a1862a551702c9b9f465403f52ba326e8ed9cfdad58be"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: XrLanguageTeacherCutoutEditorKt.XrLanguageTeacherCutoutEditor: MethodTooLong \u2014 XrLanguageTeacherCutoutEditor 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherCutoutEditor.kt"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9eb09cd6c78a4463e611d16ea34d9a9c905d4c59a06c578c694f6cdba994bbd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: XrLanguageTeacherCameraHudViewKt.TopTeacherHudBubble: MethodTooLong \u2014 TopTeacherHudBubble 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherCameraHudView.kt"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade73dacb27b6e4054b1e043b23e2f03e3c9e30fc389f51fc37c430bcbcc6102"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DefaultPhotoLibraryService.loadBitmap: MethodTooLong \u2014 loadBitmap 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":1153}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5832dd98ad790a2f0983ee8bc8a5a91d0786372dbb5419f1f2416794cde6f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: smartalbum/SmartAlbumSearchViewModel.kt: FileTooLong \u2014 548 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: SmartAlbumSearchViewModel (63-768). The bar is 500 significant lines; this is 48 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchViewModel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e862bc9d247ca6cc1132caa881c43236adab790f8eeddd0108360770ba7b98e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DefaultDownloadRepository: ClassTooLong \u2014 438 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 38 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/DownloadRepository.kt"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e26052cc5a8c83797ba4f1ee84494af0b581cd2f98af4a48b00ef50354ab18b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: XrLanguageTeacherVocabGameChromeKt.VocabGameScoreboard: MethodTooLong \u2014 VocabGameScoreboard 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabGameChrome.kt"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd803164cc4062086219888f21ab01157d1ea7492e260e991deb4c828ad3abc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DownloadModelPanelKt.DownloadModelPanel: MethodTooLong \u2014 DownloadModelPanel 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/DownloadModelPanel.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"2562d9c620df194cf6aa431bc4856e3d7a8e764bdb545bd571f23c29357e5f8e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TaskModelSelectionViewModel: ClassTooLong \u2014 435 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 35 over it, 1.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/TaskModelSelectionViewModel.kt"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e507eec60a54aec4dd08a39ba8520028fded1c7992abc0deed7dfda9e910116"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DefaultLlmSessionManager: ClassTooLong \u2014 434 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 34 over it, 1.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/sessions/DefaultLlmSessionManager.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"462180dbd9f10244d26852fa9bc3d70e79f679f41ef0561b7621aef387fa4610"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: navigation/GalleryNavGraph.kt: FileTooLong \u2014 542 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 42 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/navigation/GalleryNavGraph.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f49f72f457e830de1e687e21915bc252ea5557cf2edd6ca35986d9fbac6d356"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: XrLanguageTeacherVocabRunnerEngine: ClassTooLong \u2014 433 significant lines (blank, comment-only and punctuation-only lines excluded), 11 methods. The bar is 400 significant lines; this is 33 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabRunnerEngine.kt"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"234e345156b1960fc04d537aaff576ceea5a48fb0594c8dcaaec50d5689ef139"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TtsControlBarKt.TtsControlBar: MethodTooLong \u2014 TtsControlBar 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/tts/TtsControlBar.kt"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"85193cec0611607b599847ced32d3761baf6031b09a4343f1624ef1cfef9b049"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LlmChatViewModelBase: ClassTooLong \u2014 431 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 31 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatViewModel.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f031f5eaa22d7960c1804529596c6e4b94ecff323ecfea5c58b46342c0de962"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mobileactions/MobileActionsScreen.kt: FileTooLong \u2014 537 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 37 over it, 1.07\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/mobileactions/MobileActionsScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27e1211bd7dcc9073aea4387838abda50632b20847ac528429ef6a1ffa70cf9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MlKitTtsEngine: ClassTooLong \u2014 429 significant lines (blank, comment-only and punctuation-only lines excluded), 27 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/MlKitTtsEngine.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4566797fa5d08bec2747323bd8ea4c8ab16e704b0dac6a6eff4ec2c59dc6d0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: XrLanguageTeacherDialogueFormatter: 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherDialogueFormatter.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"221e9320bc1c4da3847afd8ca1a71c17692dcb790daf9bac16f8f3b5b53f8dfa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: llmchat/LlmChatViewModel.kt: FileTooLong \u2014 533 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: LlmChatViewModelBase (86-736). 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatViewModel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f668220048cad311168521ce8b83f8ca693e1e62d8edcf11de2bb580d689da"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ModelDetailsContext: ClassTooLong \u2014 424 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 24 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/GlobalModelManager.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"78aad5ab0c30f412b0e8ac69ea4a31bab263ebfab0ae9f74eb99782388f6bc19"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SampleAlbumStorageManager: ClassTooLong \u2014 421 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 21 over it, 1.05\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SampleAlbumStorageManager.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ef1b10ee154cce5655f887406765543232f69ca536b5c351dcc428025be1ef"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: views/XrLanguageTeacherScreen.kt: FileTooLong \u2014 526 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: LESSON_SHEET_HEADER_PEEK_HEIGHT (123-715). The bar is 500 significant lines; this is 26 over it, 1.05\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5080edd4330dd3d4aa6e635fec1862bc9d4b76813865c21e3b3fa54943325487"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: worker/DownloadWorker.kt: FileTooLong \u2014 526 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: DownloadWorker (83-842). The bar is 500 significant lines; this is 26 over it, 1.05\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/worker/DownloadWorker.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"deae6059b1e57cd50e63c75e9f59243e0f1aa8dcc235e94e81926f7ba4638858"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: supplementary/SupplementarySpeechModelRepository.kt: FileTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: SupplementarySpeechModelRepository (68-811). The bar is 500 significant lines; this is 23 over it, 1.05\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/supplementary/SupplementarySpeechModelRepository.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b5c03da48faac021ee4174090b1f173a453ae32a94d3f3411a4eeaa3d106a9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SmartAlbumIndexingWorker: ClassTooLong \u2014 418 significant lines (blank, comment-only and punctuation-only lines excluded), 7 methods. The bar is 400 significant lines; this is 18 over it, 1.05\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumIndexingWorker.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"4793e52f996ec8ffce5506bff0cb794258bd6e8656af8102893a62bcb29f2ff8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/XrLanguageTeacherVocabRunnerEngine.kt: FileTooLong \u2014 522 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: XrLanguageTeacherVocabRunnerEngine (207-835). The bar is 500 significant lines; this is 22 over it, 1.04\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabRunnerEngine.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"413c1a3519488f5c9f97407ccea80925868d1767f10bf593f9fe75033fda65fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: studyview/XrLanguageTeacherVocabRunnerScreen.kt: FileTooLong \u2014 521 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 21 over it, 1.04\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabRunnerScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03cc7a22c139d7d58bde9fba50dcd69c1fba93ecbf4ba67262f1fc82dee0287e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: asr/SystemSpeechAsrService.kt: FileTooLong \u2014 521 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: SystemSpeechAsrService (105-756). The bar is 500 significant lines; this is 21 over it, 1.04\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/SystemSpeechAsrService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74892c80dbae86e5cc92f98ee2d6dddc17a98897fd85e8113d6b72ffffe6bb7b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: XrLanguageTeacherTask: ClassTooLong \u2014 416 significant lines (blank, comment-only and punctuation-only lines excluded), 5 methods. The bar is 400 significant lines; this is 16 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/XrLanguageTeacherTask.kt"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10aa5c9c7f6f657bf1ff10a6e0c2139a454e5d76a355ee431d602fa11b56150"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: XrLanguageTeacherPreferencesStore: 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherPreferencesStore.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cb84019eae2b6a582429c9610b900a0f5d77f7d1e4462a5cd7dd17aa71a69b5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatHistorySideSheetKt.ChatHistorySideSheetContent: MethodTooLong \u2014 ChatHistorySideSheetContent 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatHistorySideSheet.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8fd90b4312095c27a662e260a7ef7b6135a429381c6ae87a53294a668cc1769"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomeScreenKt.TaskCard: MethodTooLong \u2014 TaskCard 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/home/HomeScreen.kt"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc1e8e735395f0fba850e4c91cbc74c60e2992b995e1f8d4b13d8bfe1bd885b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tinygarden/TinyGardenScreen.kt: FileTooLong \u2014 512 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 12 over it, 1.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/tinygarden/TinyGardenScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e73fe3225245db2cf7a03e5ccc0f782e0e959f548545e99d059bf1fc1df04df"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HfExploreScreenKt.HfExploreContent: MethodTooLong \u2014 HfExploreContent 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/HfExploreScreen.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"83bf2bccd288ec232cbd748e642ed0172b47ab015f5ab321e628fbd400672037"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelManagerViewModel.loadModelAllowlist: MethodTooLong \u2014 loadModelAllowlist runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelManagerViewModel.kt"},"region":{"startLine":2136}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c8f6e053ed7a04d1ec8994d10837f8f5734361e367fdd07601fd1ca0db0ec0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NotificationsScreenKt.NotificationsScreen: MethodTooLong \u2014 NotificationsScreen runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/notifications/NotificationsScreen.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"6560a79bbe27f73bbf0be4e76781132f30ee5436a2366970b9a5a55622565c75"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (89 shared lines): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumIndexingWorker.kt:198-348 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumIndexingWorker.kt:355-514 \u2014 These two members are variants of one another: 89 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumIndexingWorker.kt"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c0ba0d1ced4a46d663d7d09f736cd781b444c1215fd5019dbca6373bfdca60"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (45 shared lines): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherSettingsTooltip.kt:108-187 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/AudioConfigOnboardingTooltip.kt:109-214 \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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherSettingsTooltip.kt"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d57929c85a48cde5345bdb20166aa44ec6d26a0b154ad8a0182d6f722f2b511"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddMcpServerFromUrlDialog.kt:82-363 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddSkillFromUrlDialog.kt:67-208 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/home/SettingsDialog.kt:110-450 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelImportDialog.kt:116-251 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddMcpServerFromUrlDialog.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"3672331870daf1bac49ed2323d41e62a0a237bedbd0314a6ca2dc5566830b64a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumAnalysisProgressCard.kt:135-182 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumAnalysisProgressCard.kt:377-424 \u2014 both copies are in the same file, so extract the block 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumAnalysisProgressCard.kt"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"13bf99f72193ea96888d8c6070cd4318d2d526f5cc7cca2ee147399f51e3638c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumIndexingWorker.kt:291-334 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumIndexingWorker.kt:457-500 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumIndexingWorker.kt:291\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumIndexingWorker.kt"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b03e1d836af2f222a42af0bdec07850d345443152607aaa088ec41f6e167a44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabPopperScreen.kt:185-218 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabRunnerScreen.kt:240-273 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabPopperScreen.kt:185\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabPopperScreen.kt"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6163f651734cce1184c353c7da0d0191419d90f3c5fdd52b188e35d82b919c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201332 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/mobileactions/MobileActionsScreen.kt:233-264 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/tinygarden/TinyGardenScreen.kt:135-165 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/mobileactions/MobileActionsScreen.kt:233\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/tinygarden/TinyGardenScreen.kt:166\u0060 calls \u0060Box\u0060, \u0060fillMaxSize\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/mobileactions/MobileActionsScreen.kt:265\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/mobileactions/MobileActionsScreen.kt"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c5b727db97f3744a61da3bd513030c08c3e83af8271cbfb14addf902b98089"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201329 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:1881-1909 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:2047-2073 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:2047\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt"},"region":{"startLine":1881}}}],"partialFingerprints":{"codehealthFindingId/v1":"409ead5debc27a7ec02b476c2e1982b687b2d6b4179b9568200c991b34aeb080"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/mobileactions/MobileActionsScreen.kt:719-742 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/tinygarden/TinyGardenScreen.kt:695-719 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/mobileactions/MobileActionsScreen.kt:719\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/mobileactions/MobileActionsScreen.kt"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee536e69d494f456cb1d9681f24b4388fb4a14cd8465f2cc022b59c867ee0b6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumIndexingWorker.kt:219-242 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumIndexingWorker.kt:382-405 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumIndexingWorker.kt:219\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumIndexingWorker.kt"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c95b4156d3ff242e4a722ca52e7cab271e6b2c216c005ca41644175f9317391"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:1234-1256 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:2707-2729 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:1234\u0060 it does not close everything it opens, so those exact 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: \u0060Image\u0060 names \u0060androidx.compose.foundation.Image\u0060 in one and \u0060androidx.compose.material.icons.outlined.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt"},"region":{"startLine":1234}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5d93db27b56c82b0f9f2ad72d12655846632a5840775ed7c7b80b250ffd2ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/ClipTrimmer.kt:422-444 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/ClipTrimmer.kt:475-497 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/ClipTrimmer.kt:422\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/ClipTrimmer.kt"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e1a6e2359ed74f3d89369198cbbc3e0b45404e8b508ccb71b39d8587ad67b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ConfigAudioTabMapper.kt:362-384 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ConfigAudioTabMapper.kt:752-774 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ConfigAudioTabMapper.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ConfigAudioTabMapper.kt"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"5290e8164ef214021fba36163320f95ad368be6a8a41d49f09048e2c5c1a289f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/SkillManagerBottomSheet.kt:989-1009 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/notifications/NotificationsScreen.kt:303-324 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/SkillManagerBottomSheet.kt:989\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/SkillManagerBottomSheet.kt"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d139edebea3793752cd564fdd3a5596d43c32fcc97cac4c9980dd79f8055759"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddSkillFromLocalImportDialog.kt:144-164 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddSkillFromUrlDialog.kt:153-173 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddSkillFromLocalImportDialog.kt:144\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddSkillFromLocalImportDialog.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a377da56dc3be8c667ae572f4c89c9e0d228187b10f013cc0eb512e1d3fb6ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/SkillManagerBottomSheet.kt:500-519 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/SkillManagerBottomSheet.kt:572-592 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/SkillManagerBottomSheet.kt:500\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/SkillManagerBottomSheet.kt"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"297da27332c926f38191d64d79862ed4c1cb73cdb3e0ada33013068538a16f78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/AddPictureDropdown.kt:152-171 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/MessageInputText.kt:1332-1352 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/AddPictureDropdown.kt:152\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/AddPictureDropdown.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"67aa709ddc8270b253ea076edc9a944a6c022de99417dd1873a13da3bc08309a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumIndexingWorker.kt:244-264 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumIndexingWorker.kt:407-427 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumIndexingWorker.kt:244\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumIndexingWorker.kt"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"b895470f0b99c0089899161c4ea015fc1d333f1431ee0ee212faa75cbe21c110"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherCameraHudView.kt:313-333 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherVocabBottomSheet.kt:853-873 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherCameraHudView.kt:313\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherCameraHudView.kt"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3ad94265e7c884a15e032e02fa5dc7d745371bedae51d1e3730308f1450075"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabPopperScreen.kt:152-172 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabRunnerScreen.kt:170-190 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabPopperScreen.kt:152\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabPopperScreen.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eefaee3375a07c3157af90e016718b0e496f95bdb9d21affc8e6129a5d40536"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt:462-482 | Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt:766-786 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt:462\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"b659ae181da4dfa33ab188fa21c2a0a594503929bcee260c3ff4e0d2c900ee53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerBottomSheet.kt:281-300 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/SkillManagerBottomSheet.kt:403-422 \u2014 before extracting anything, compare \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerBottomSheet.kt\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/SkillManagerBottomSheet.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerBottomSheet.kt:281\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerBottomSheet.kt"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"5240cc308ef07fa85497f173ac952da76deb6ea7fd87525180687042f46a6ec8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/home/HomeScreen.kt:624-643 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/home/HomeScreen.kt:680-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 \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/home/HomeScreen.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/home/HomeScreen.kt"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"270a2518591746e50c793fe4fef3ea15c7fd2daaf5e03286c3fd52e57e15069c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/DefaultAgentRuntimeExecutor.kt:86-104 | Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/DefaultAgentRuntimeExecutor.kt:259-277 \u2014 both copies are in the same file, so extract the block 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/DefaultAgentRuntimeExecutor.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"24bb8df94a3e7a4144878e3c0ace6a56c1263b029b9f8a1d98f4a0a7395c7cfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherSettingsTooltip.kt:169-187 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/AudioConfigOnboardingTooltip.kt:196-214 \u2014 before extracting anything, compare \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherSettingsTooltip.kt\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/AudioConfigOnboardingTooltip.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherSettingsTooltip.kt:169\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherSettingsTooltip.kt"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"2503c30398a4a0e7c553396e7327c057655ffe746ee69ff0cf0517a7a8c68289"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerBottomSheet.kt:252-269 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/SkillManagerBottomSheet.kt:379-396 \u2014 before extracting anything, compare \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerBottomSheet.kt\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/SkillManagerBottomSheet.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerBottomSheet.kt:252\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerBottomSheet.kt"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e78a45399e9c69fb469e7637245b6116871ff193be7aac5e39c4fb45347e62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt:1070-1087 | Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt:1187-1204 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt:1070\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b21c1655c4012d0c8cec253d5d6db54363e768f75fc4a537342219229aeff0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/OptionalComponentsPanel.kt:235-252 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/TtsModelDetails.kt:537-552 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/OptionalComponentsPanel.kt:235\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/OptionalComponentsPanel.kt"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ccd6bd12f5d1aa5c82d80bacf833831286a5ec4e7be4baea00674eacd7a0e6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelManager.kt:55-74 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/SectionedModelSelectionScreen.kt:147-164 \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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelManager.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff942335c31bbaac36fb9288b89688f8c277664d60267a2ad664834829945e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/VoicePreviewController.kt:94-111 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/VoicePreviewController.kt:168-185 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/VoicePreviewController.kt:94\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/VoicePreviewController.kt"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"d047efc6e7de1ad38c23bf8520e365b4b9bc57bcc17d490316fe84645c7919fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddSkillFromFeaturedListBottomSheet.kt:203-219 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerBottomSheet.kt:249-264 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/SkillManagerBottomSheet.kt:376-391 \u2014 before extracting anything, compare \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerBottomSheet.kt\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/SkillManagerBottomSheet.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddSkillFromFeaturedListBottomSheet.kt:203\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddSkillFromFeaturedListBottomSheet.kt"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"0616a4026c8c492eae41d300e86a780169a1e9e7a64c5754ef97fb52175c0ade"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/CollageEditor.kt:683-699 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/CutoutManager.kt:484-500 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/CollageEditor.kt:683\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/CollageEditor.kt"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60cc9bb576323afa10db81dfaa65beb6aa8047a819bd3a5711779becfe9533c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SampleAlbumStorageManager.kt:640-656 | Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt:1254-1267 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SampleAlbumStorageManager.kt:640\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SampleAlbumStorageManager.kt"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d2efd10f6255f517123e0caf2741a09a629f6f32312dff67147f4471e31b4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:1276-1292 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:2761-2777 \u2014 both copies are in the same file, so extract the block 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt"},"region":{"startLine":1276}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f3ad4bbaa46d64d42daa0f34af68c9be8299ce6409f824cb307764ae8f1a59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumViewModel.kt:288-304 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumViewModel.kt:335-351 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumViewModel.kt:288\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumViewModel.kt"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"042f6d3129a6cdf6963ac03127250ae46a05ac0c7aa7e6128789c1eac866b1c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/runtime/aicore/AICoreModelHelper.kt:398-414 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatModelHelper.kt:317-333 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/runtime/aicore/AICoreModelHelper.kt:398\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/runtime/aicore/AICoreModelHelper.kt"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d11147943aac844ea06bf2ae3b77e3002bf6f4e9dcd795ffab393eca52f551b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatHistorySideSheet.kt:176-192 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/TextInputHistorySheet.kt:181-197 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatHistorySideSheet.kt:176\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatHistorySideSheet.kt"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d95826f40efa45bdce473fbb5ef2bac783f87c4e570f7f1d652d15f3c2e3838"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 3): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/OptionalComponentsPanel.kt:245-258 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/LanguagePacksPanel.kt:151-166 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/TtsModelDetails.kt:545-558 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/OptionalComponentsPanel.kt:245\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/OptionalComponentsPanel.kt"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"96991c78a71e17c416296b539c4e5e9cbdf415196162a0f2d61c0a8e4784c579"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddSkillFromFeaturedListBottomSheet.kt:152-167 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/SkillManagerBottomSheet.kt:813-828 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddSkillFromFeaturedListBottomSheet.kt:152\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddSkillFromFeaturedListBottomSheet.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d38227bba4213e03bc3da4384a3f1068567ca662894c81e592babbda3f8f71d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/mobileactions/MobileActionsScreen.kt:691-706 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/tinygarden/TinyGardenScreen.kt:650-665 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/mobileactions/MobileActionsScreen.kt"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a78135999c4b207a2328b02c401d290b3c91b48be3f1847ddc79ef97aa42dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:2662-2677 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:3229-3244 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt"},"region":{"startLine":2662}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea54574aa90ce53f46d7a98fb56c3c454517f8a376e26568fb5dc58315e53022"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt:730-745 | Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt:825-840 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c06b2f811a61f0c5915034417863e9ce67297acd9796055811ca742d4be9c2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatTaskModule.kt:312-327 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatTaskModule.kt:407-422 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatTaskModule.kt:312\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatTaskModule.kt"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4962ee61f5a4c41d87ab2d1eaa6873589a090127c5c07419df15d4121dc15a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddMcpServerFromUrlDialog.kt:117-131 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddSkillFromUrlDialog.kt:91-105 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/home/SettingsDialog.kt:128-142 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelImportDialog.kt:177-191 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddMcpServerFromUrlDialog.kt:117\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddMcpServerFromUrlDialog.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d960e02160b6ccb3acb2acc695269f5204f96b9a244ccc9ab3eccbd713f53a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/mobileactions/MobileActionsScreen.kt:330-344 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/tinygarden/TinyGardenScreen.kt:471-485 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/mobileactions/MobileActionsScreen.kt:330\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/mobileactions/MobileActionsScreen.kt:327\u0060 calls \u0060DisposableEffect\u0060, \u0060cleanUp\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/tinygarden/TinyGardenScreen.kt:468\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/mobileactions/MobileActionsScreen.kt"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b0def2bcef6fec8043fe675fcc89efbf477b4467dd5396eff17003c58aebcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/CollageEditor.kt:189-202 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/Segmenter.kt:155-169 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/CollageEditor.kt:189\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/CollageEditor.kt"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c1e1d5f1de8b8e1ff3c76bddcebd53370dc24d831a615311e494279daf7604"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumAnalysisProgressCard.kt:194-208 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:447-461 \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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumAnalysisProgressCard.kt"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fde2d941633e05b1a83980cff44beada7d52505a63b8435b12bc2734c04722f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/tinygarden/TinyGardenScreen.kt:472-486 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/VideoMomentFinderScreen.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 \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/tinygarden/TinyGardenScreen.kt:472\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/tinygarden/TinyGardenScreen.kt"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef1b858c2b33e93df663459bd88edcc220cc448d1517a5e952d0bf706db86383"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherVocabPopperViewModel.kt:161-175 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherVocabRunnerViewModel.kt:153-165 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherVocabPopperViewModel.kt:161\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherVocabPopperViewModel.kt"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1231956f70d190c287b39f92b676883b5d175bcffda315f5cc69992f47acd7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt:822-836 | Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt:935-948 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt:822\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"94273bc7d93aeef33234decdfd55b9ec32881a57103fdab3810bf720df42aa2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ConfigDialog.kt:840-854 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ConfigDialog.kt:930-944 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ConfigDialog.kt:840\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ConfigDialog.kt"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"075e1b0edb1641026e578c399eee82bad732762628e0cb932a1f0aff8dd2d057"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddMcpServerFromUrlDialog.kt:284-296 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddSkillFromLocalImportDialog.kt:155-167 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddSkillFromUrlDialog.kt:163-176 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddMcpServerFromUrlDialog.kt:284\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AddMcpServerFromUrlDialog.kt"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b7503e41c1d501a79574f6b2c360e976ec93804db281f5ffc3b8e260b31acbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SampleAlbumStorageManager.kt:612-625 | Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt:1229-1241 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SampleAlbumStorageManager.kt:612\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SampleAlbumStorageManager.kt"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec4145228928aea14b0ed218cc2ff2fb834f73411335057050da68ef6e473fdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherSettingsTooltip.kt:133-146 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/AudioConfigOnboardingTooltip.kt:136-152 \u2014 before extracting anything, compare \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherSettingsTooltip.kt\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/AudioConfigOnboardingTooltip.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherSettingsTooltip.kt:133\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/AudioConfigOnboardingTooltip.kt:154\u0060 calls \u0060testTag\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherSettingsTooltip.kt:148\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherSettingsTooltip.kt"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c8c42109a5cf5b9faa1b98c05d3de5e7bbc1cfc8dc9fad46903a8b6afc2ecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ConfigDialog.kt:821-834 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ConfigDialog.kt:911-924 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ConfigDialog.kt:821\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ConfigDialog.kt"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d73d83351d6509d328225f46b1076c81c26657460ff7ae0ba08cbb015c1e00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerBottomSheet.kt:236-247 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/SkillManagerBottomSheet.kt:362-374 \u2014 before extracting anything, compare \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerBottomSheet.kt\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/SkillManagerBottomSheet.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerBottomSheet.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerBottomSheet.kt"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"583c20a65ef52cf0bd8fa2461f6a0d3f4a71c5116c22e9bdc4c03dfe2b5370f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherLessonController.kt:114-126 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherLessonController.kt:147-158 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherLessonController.kt:114\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherLessonController.kt"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"d649f0505c9b39e75a3cde42b703fd3ceb28380380d67f1b959bfd12b59dc255"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherConfigureDialog.kt:121-133 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherOnboardingOverlay.kt:180-192 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherConfigureDialog.kt:121\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherConfigureDialog.kt"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"41060123971491e89fe8040f4725835f6a454ff00a31d70be78e5480e16b0e76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherSettingsTooltip.kt:148-159 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/AudioConfigOnboardingTooltip.kt:155-167 \u2014 before extracting anything, compare \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherSettingsTooltip.kt\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/AudioConfigOnboardingTooltip.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherSettingsTooltip.kt:148\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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, \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/AudioConfigOnboardingTooltip.kt:154\u0060 calls \u0060testTag\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherSettingsTooltip.kt:147\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherSettingsTooltip.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd210d2aabd31096c201c7d484895208547b4e7f3440d30e7a3d516d8209943"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/CollageEditor.kt:189-200 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/CutoutManager.kt:137-149 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/Segmenter.kt:155-166 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/CollageEditor.kt:189\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/CollageEditor.kt"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5aafd3ab20ea2659c24ba2fb82d8895cffa72db7dfb51297b1be5d2e99b97b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerBottomSheet.kt:450-458 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpToolManagerBottomSheet.kt:158-169 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerBottomSheet.kt:450\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerBottomSheet.kt"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"b828fd8e929c3120481cb6c172af00043d66dc9857c6d9ae631fdd7e88168118"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:2157-2168 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:2190-2201 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:2157\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt"},"region":{"startLine":2157}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ccd1e82ffaa2abc93eaad8059f79c935a7bf541163a6bddf9617bda9dac3b49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherVocabPopperViewModel.kt:383-394 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherVocabRunnerViewModel.kt:366-377 \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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherVocabPopperViewModel.kt"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34cf0d7c83482b364f011e3362a684209e783ae9da7e5e0a315c6f0c0a7b520"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/services/semanticretrieval/SemanticRetrievalService.kt:136-147 | Android/src/app/src/main/java/com/google/ai/edge/gallery/services/semanticretrieval/SemanticRetrievalService.kt:287-298 \u2014 both copies are in the same file, so extract the block 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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/semanticretrieval/SemanticRetrievalService.kt"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb87f43ea82becbaa23caad361bb719035fec61ea73bdecb08d596fa23c7fb21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ConfigDialog.kt:531-542 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/home/SettingsDialog.kt:351-362 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ConfigDialog.kt:531\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ConfigDialog.kt"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8e8a357aff213189bac79dc0d5026e9201f2fe459ab847c8a194a407fa98f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatTaskModule.kt:282-293 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatTaskModule.kt:377-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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatTaskModule.kt"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ad254d2bf5e89479cc9bd44ab95829eb5b890950d8fcc0add6b526ebdb4419"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherCameraView.kt:327-337 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherCameraView.kt:346-356 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherCameraView.kt:367-377 \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 \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherCameraView.kt:327\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherCameraView.kt"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45aafee22633f636de0bf39e220df93a4db8350c3b85a840e9fb2f269ce075a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerBottomSheet.kt:194-204 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerBottomSheet.kt:405-414 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerBottomSheet.kt:194\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerBottomSheet.kt"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"a776de4c081bae22bb0608b711cd0ce3dc95b36f210c55c35dc34ac940372597"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SampleAlbumStorageManager.kt:342-352 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SampleAlbumStorageManager.kt:570-578 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SampleAlbumStorageManager.kt:342\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SampleAlbumStorageManager.kt"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa4b29218c6afa4bccb7f184deada4610b776a50c8a06a12fb4015c12769a01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:2639-2649 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:3196-3206 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:2639\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it 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, \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:2650\u0060 calls \u0060BorderStroke\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:3207\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt"},"region":{"startLine":2639}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdcbe1a5f3e4aa43d881fcac0f7b9a92f6d4a9e0fb3e32109a7d001d939775d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchViewModel.kt:735-745 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchViewModel.kt:751-761 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchViewModel.kt:735\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchViewModel.kt"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f300ef8cd55fbbec2837c895e9a71d405b9eb06a27a1195feea008e6a005685"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherOnboardingOverlay.kt:215-225 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/onboarding/OnboardingDialog.kt:191-200 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherOnboardingOverlay.kt:215\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherOnboardingOverlay.kt"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96de6ccc5d10fc05caee0da8581e5ae9720549f34c7b80e49559d63942e8ae4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherOnboardingOverlay.kt:239-249 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/onboarding/OnboardingDialog.kt:214-223 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherOnboardingOverlay.kt:239\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherOnboardingOverlay.kt:238\u0060 calls \u0060isNotEmpty\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/onboarding/OnboardingDialog.kt:213\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherOnboardingOverlay.kt"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ff2e20050d8523e8240fdcbcc244d80e93ce0ac86314b4451b614ca7343a27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/data/supplementary/gates/MlKitAsrBasicGate.kt:83-93 | Android/src/app/src/main/java/com/google/ai/edge/gallery/data/supplementary/gates/MlKitTtsGate.kt:83-93 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/data/supplementary/gates/MlKitAsrBasicGate.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/supplementary/gates/MlKitAsrBasicGate.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"e145771b9cf2f9e0b035eb3b30a913fe1079926d28b8c62cb77efa6c3767b040"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/TtsTextNormalizer.kt:160-170 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/tts/TtsMessageBlocks.kt:395-405 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/TtsTextNormalizer.kt"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"e801ae24ccd331dedb455499358436e516e973310dd8f7fb687db117c17942e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/SmallFilledTonalButton.kt:63-73 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/SmallOutlinedButton.kt:56-66 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/SmallFilledTonalButton.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/SmallFilledTonalButton.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"401da441865f6bc8990a41e736ca837e6c8c3fef8f30f649e98a11d90404c4b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/PromptTemplatesPanel.kt:323-333 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/PromptTemplatesPanel.kt:347-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 \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/PromptTemplatesPanel.kt:323\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/PromptTemplatesPanel.kt"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef1f0f6ed6a49c5f1ac9a80a46509c3261189a974470841547c9bec7e882e22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:2637-2646 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:2694-2703 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:3194-3203 \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, \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:2650\u0060 calls \u0060BorderStroke\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:3207\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt"},"region":{"startLine":2637}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae5eaa6f9a6deb6574a9e406656344901987418078b2d4cdc0a14d51795582d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatScreen.kt:148-157 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatScreen.kt:202-211 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatTaskModule.kt:163-172 \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 \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatScreen.kt:148\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatScreen.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99668bd55b9bcb797db8211a4263d6735d25d96d9ca81bea803968d519aa35f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:1790-1799 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:2329-2338 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:1790\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt"},"region":{"startLine":1790}}}],"partialFingerprints":{"codehealthFindingId/v1":"423ee5831303b0829684b058d15a0fb3e563ba71c7d450687822331ee82630eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:2652-2661 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:3208-3217 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:2652\u0060 it begins part-way through the construct above it, so those exact 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: \u0060Image\u0060 names \u0060androidx.compose.foundation.Image\u0060 in one and \u0060androidx.compose.material.icons.outlined.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:2650\u0060 calls \u0060BorderStroke\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt:3206\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt"},"region":{"startLine":2652}}}],"partialFingerprints":{"codehealthFindingId/v1":"43433328432f67417bfd1c8c2f055d68f0ff4ef110a203c4f9882da1c6706b68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/tinygarden/ConversationHistoryPanel.kt:109-118 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatPanel.kt:550-559 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/tinygarden/ConversationHistoryPanel.kt:109\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/tinygarden/ConversationHistoryPanel.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcdafd6d0c2528c1509444812fdb744fe05101dba78a3405fb995df6fcbc7baf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerViewModel.kt:111-119 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerViewModel.kt:201-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 \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerViewModel.kt:111\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerViewModel.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"06bee219081a693880660de2a0387e9f1e241543213eb6c6a64667fae53897e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/ScrapbookViewModel.kt:685-693 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/ScrapbookViewModel.kt:699-707 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/ScrapbookViewModel.kt:685\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/ScrapbookViewModel.kt"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4be97adcbeb743fa35183d6395a8e88b3e678087b666991165b2ff285d26b82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/ScrapbookViewModel.kt:1717-1725 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/Utils.kt:464-472 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/ScrapbookViewModel.kt"},"region":{"startLine":1717}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b99b511e8535d18c887635e456abe7cb437a62dd5f52d0374ef49738db6d55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumViewModel.kt:311-319 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumViewModel.kt:361-369 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumViewModel.kt:311\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumViewModel.kt"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e2e836110a95ccfe842307117ac7c719b24c1b7be574ba8de5f21ff556d4e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/Utils.kt:400-408 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/Utils.kt:430-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 \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/Utils.kt:400\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/Utils.kt"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b8c26da49b3143114948aef73ebd3831149148d2ba6da67bf2afc46e6691ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/tos/AppTosDialog.kt:58-66 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/tos/GemmaTermsOfUseDialog.kt:64-72 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/tos/AppTosDialog.kt:58\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/tos/AppTosDialog.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"da19b3810b1fe4b5c85dc9371be9cb8901186df19b328b5cc5c63cba3ef688fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/PromptTemplatesPanel.kt:462-470 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/PromptTemplatesPanel.kt:482-490 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/PromptTemplatesPanel.kt:462\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/PromptTemplatesPanel.kt"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"00acebc222411684dd6e01bb14147cda94ff1360928fbd1c8a87db1c49f11114"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherFlashcardReviewView.kt:238-245 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherFlashcardReviewView.kt:286-293 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherFlashcardReviewView.kt:238\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherFlashcardReviewView.kt"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e210aab3890d0945a7b9927c4fe19e8f29ab9612fc469bba3d270a6126eda54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/AsrService.kt:93-100 | Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/AsrService.kt:114-121 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/AsrService.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2cc248980ec457ab7de433aec1f1cc0f56b705e934fbc8f4071da8a1c9a9e2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/worker/DownloadSlowConnectionDetector.kt:68-74 | Android/src/app/src/main/java/com/google/ai/edge/gallery/worker/DownloadSlowConnectionDetector.kt:390-397 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/worker/DownloadSlowConnectionDetector.kt:68\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/worker/DownloadSlowConnectionDetector.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"9429e54d99a3f9d17592b1d65ce9c75e92239998f33be3d7ad4555d1b5930b51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/ScrapbookViewModel.kt:688-694 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/ScrapbookViewModel.kt:702-708 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/ScrapbookViewModel.kt:733-739 \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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/ScrapbookViewModel.kt"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2461375c9e5bafd53793d03098f146e6c8ea83241cc5c9ef1917d213069a848"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/PromptTemplatesPanel.kt:329-335 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/PromptTemplatesPanel.kt:352-358 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/PromptTemplatesPanel.kt:394-400 \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 \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/PromptTemplatesPanel.kt:329\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/PromptTemplatesPanel.kt"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2fc3d9f280090cf2c95a1129d87129928f8e93754b6d717bcfcb4c1fd56989e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerViewModel.kt:321-327 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerViewModel.kt:383-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 \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerViewModel.kt:321\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpManagerViewModel.kt"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9430613130299f71a0edb7fc9774ffe02a930bd47b1f8457c3dabe4e755beb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt:510-516 | Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt:531-537 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt:510\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e7661106cf1c508fb4ae23e1b4fd194cd249d6ab92f08e79542ffccb107e671"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/MessageInputText.kt:475-481 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/MessageInputText.kt:500-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 \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/MessageInputText.kt:475\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/MessageInputText.kt:499\u0060 calls \u0060key\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/MessageInputText.kt:474\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/MessageInputText.kt"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f21c6b70b5b66ed5079e19ab289e68d54de59b9104fe77935b621c38762260"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt:874-878 | Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt:929-933 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt:874\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cbc989811a8e568020cf95a3fd8bd04131cd1c7bd8b90cbab1873b86a33727f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/MlKitTtsEngine.kt:349-353 | Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/MlKitTtsEngine.kt:391-395 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/MlKitTtsEngine.kt:349\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/MlKitTtsEngine.kt"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b0d34a948ce3f2f08b7d9cf74a36a390b185536d6c91e059c79a9c956662ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/data/supplementary/AiCoreVersion.kt:39-49 | Android/src/app/src/main/java/com/google/ai/edge/gallery/data/supplementary/SpeechServicesVersion.kt:39-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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/supplementary/AiCoreVersion.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c5ea6956627f75617a7c49307cc867e577ae2aeaab1f96ae3c7c3db6789861"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/sessions/SummarizationContextCompactor.kt:209-216 | Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/sessions/TruncationContextCompactor.kt:211-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 \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/sessions/SummarizationContextCompactor.kt:209\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/sessions/SummarizationContextCompactor.kt"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"97d382ca46de592dc015e23be3a84c35258a01c7bcd00037e5843ae0ee760b63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/data/supplementary/SupplementarySpeechModelRepository.kt:640-644 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ConfigAudioTabMapper.kt:1064-1068 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/data/supplementary/SupplementarySpeechModelRepository.kt:640\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/supplementary/SupplementarySpeechModelRepository.kt"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad871dd6acf39c2411a653a75d65f1b80a32a7f8f45c21654fae1ee54f418855"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/tools/RunIntentTool.kt:83-87 | Android/src/app/src/main/java/com/google/ai/edge/gallery/tools/RunMcpTool.kt:173-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 \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/tools/RunIntentTool.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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/tools/RunIntentTool.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffde6478ce76bc76e2ed774b51b01b824f00b178d510c011a236ed0c2f94ecf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/home/HomeScreen.kt:1102-1111 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelManagerViewModel.kt:2577-2586 \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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/home/HomeScreen.kt"},"region":{"startLine":1102}}}],"partialFingerprints":{"codehealthFindingId/v1":"047b0f2050a6ddd7a11d00670f63a9812d1d0d304756c6c53db8301d3a8134d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/LlmSingleTurnScreen.kt:107-121 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/navigation/GalleryNavGraph.kt:644-658 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/LlmSingleTurnScreen.kt:107\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/LlmSingleTurnScreen.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"f61c70535b758552d28b8270d0bd5eb8f84011ef3d90faaaa2ee3157ba8ad2ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/DownloadModelPanel.kt:93-105 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/DownloadModelPanel.kt:136-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/DownloadModelPanel.kt:93\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/DownloadModelPanel.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"41aa99d8fc8d4ffc45081c12b61ef62eb0489de3af949511278c82e1772416f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumAnalysisProgressCard.kt:576-587 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumAnalysisProgressCard.kt:599-610 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumAnalysisProgressCard.kt:576\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumAnalysisProgressCard.kt"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9ccb8e005f41794ea6119832cf959b52bfe78c6b611335dee8e040390742f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumAnalysisProgressCard.kt:494-505 | Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumAnalysisProgressCard.kt:517-528 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumAnalysisProgressCard.kt:494\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumAnalysisProgressCard.kt"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca484e790d77ea7429c6c55a0c0af560480f4d0ce968b43085bd5f9a7bcea76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt:598-609 | Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt:759-770 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt:598\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"24477eca9a5293e72659db15db6e03072d14cdf51a6f5923d528028c2f621cb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatView.kt:220-231 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatView.kt:255-266 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatView.kt:220\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatView.kt"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7a64dbaec1cd3c884ce90033b35bb98f5a788f763c9da782c3c8a47a351a1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Android/src/app/src/main/java/com/google/ai/edge/gallery/data/supplementary/gates/MlKitAsrAdvancedGate.kt:94-104 | Android/src/app/src/main/java/com/google/ai/edge/gallery/data/supplementary/gates/MlKitAsrBasicGate.kt:82-91 | Android/src/app/src/main/java/com/google/ai/edge/gallery/data/supplementary/gates/MlKitTtsGate.kt:82-90 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/data/supplementary/gates/MlKitAsrAdvancedGate.kt:94\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/supplementary/gates/MlKitAsrAdvancedGate.kt"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"5040f5d9c45a0f31ed9b0671117c6f9cdcea0e2db1bd9d372fa831a4192c3162"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/MainActivity.kt:97-104 | Android/src/app/src/main/java/com/google/ai/edge/gallery/MainActivity.kt:212-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/MainActivity.kt:97\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/MainActivity.kt"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f0d4499bbbb5ecc4559515399d9f65272e20752f895199ec8a03953d43094be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/common/Utils.kt:434-439 | Android/src/app/src/main/java/com/google/ai/edge/gallery/common/Utils.kt:450-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. 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, \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/common/Utils.kt:431\u0060 calls \u0060hasSystemFeature\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/common/Utils.kt:447\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/common/Utils.kt"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d40807fd6e6cffe00cf9d3a76eb5dc667939d9f8c4dea36e3f4b9ccb3cedd63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/MessageInputText.kt:1498-1502 | Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/GlobalModelManager.kt:762-766 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/MessageInputText.kt:1498\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/MessageInputText.kt"},"region":{"startLine":1498}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b0267be0e384f2aa67e3dd0b0d62b2abcefa99f16cc90b887090a17a9e12fc"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MainActivity (LCOM4 4): MainActivity\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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/MainActivity.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"c981fe886ca4bcad9083203f657b45ad6e74aa65018c41a2d80139d9ae57ec5a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ScrapbookViewModel (LCOM4 4): ScrapbookViewModel\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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/ScrapbookViewModel.kt"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7502f20f0db7700154969347b1bdda1830266c900d2a4183a8aa7450f05b63"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SmartAlbumTask (LCOM4 4): SmartAlbumTask\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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumTask.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2fcb08875edcafb831818269665c7852f95603c61510dc802fb90831d261ae9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DefaultDataStoreRepository (LCOM4 4): DefaultDataStoreRepository\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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/DataStoreRepository.kt"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"f796f56960ca3b03a218ddfcd4de7a63f9726450da8d41788e12094e1b7f3631"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatPanel.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatPanel.kt changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 98 in ChatPanelKt.ChatPanel at line 150. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatPanel.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatPanel.kt"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"518ce80b83d9050115eb3df7f1aa70d10ff86106f39e8fe26ad0d807882e4089"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelManagerViewModel.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelManagerViewModel.kt changed 44 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in ModelManagerViewModel.loadModelAllowlist at line 2136. 2 of those changes were fix/bug commits, and the other 42 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelManagerViewModel.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelManagerViewModel.kt"},"region":{"startLine":2136}}}],"partialFingerprints":{"codehealthFindingId/v1":"2292ce7cd723e5ca919b0a6273b1716e597c2bea05ea44ea6c82c1fcb0ac5bc7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/MessageInputText.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/MessageInputText.kt changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 73 in MessageInputTextKt.MessageInputText at line 185. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/MessageInputText.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/MessageInputText.kt"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"12fc15d9d464c1a177ddcdd73c1464def06a29ea2660966a78ba1db745c63640"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatViewModel.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatViewModel.kt changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in LlmChatViewModelBase.generateResponse at line 205. 1 of those changes was a fix/bug commit, and the other 19 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatViewModel.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatViewModel.kt"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c300a286d180faee2f050c8c256a443ff31b3a4f5df2163166fe247b7afc00"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelItem.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelItem.kt changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in ModelItemKt.ModelItem at line 90. 1 of those changes was a fix/bug commit, and the other 15 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelItem.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelItem.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"0436b576e27b79c6f5e163d7fcf80db25252ec687b099d162a9da4f27998c841"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ModelPageAppBar.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ModelPageAppBar.kt changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in ModelPageAppBarKt.TaskConfigDialog at line 327. 1 of those changes was a fix/bug commit, and the other 19 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ModelPageAppBar.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ModelPageAppBar.kt"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd66ae47c022433cfb22ee097420aacd4641ce482dff7f7e4a53e9433dbd6f70"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatModelHelper.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatModelHelper.kt changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in LlmChatModelHelper.runInference at line 486. 2 of those changes were fix/bug commits, and the other 22 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatModelHelper.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatModelHelper.kt"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"74fd74a1c0432f6e8aa08684855aa70d34fd6e938f82fedc6a15fced30992b31"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/data/ModelAllowlist.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/data/ModelAllowlist.kt changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in AllowedModel.toModel at line 138. 1 of those changes was a fix/bug commit, and the other 17 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/data/ModelAllowlist.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/ModelAllowlist.kt"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"a360d4930d1b91cdbf9eb847f953b8f55bb2df6bdc622654355975878a82e0b8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherStudyView.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherStudyView.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 106 in XrLanguageTeacherStudyViewKt.StudyScreen at line 142. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherStudyView.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherStudyView.kt"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e731aa4c0d876e1aa9e7dfb18b78ac14d2ab4e0624b41e599fb8bb44c86786"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/DownloadAndTryButton.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/DownloadAndTryButton.kt changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in DownloadAndTryButtonKt.DownloadAndTryButton at line 107. 1 of those changes was a fix/bug commit, 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/DownloadAndTryButton.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/DownloadAndTryButton.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a8c82a80518f45cd34ebb1c64338a992aa27bcb7e8d989edb02efc67abc2ba"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/navigation/GalleryNavGraph.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/navigation/GalleryNavGraph.kt changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in GalleryNavGraphKt.GalleryNavHost 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/navigation/GalleryNavGraph.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/navigation/GalleryNavGraph.kt"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c2711aec3c8100bb024d545219b6c0a003b097a9af7eca49bbe1b1b2a1fbd0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/GlobalModelManager.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/GlobalModelManager.kt changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in GlobalModelManagerKt.GlobalModelManager at line 121. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/GlobalModelManager.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/GlobalModelManager.kt"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"3829e33b3a409d36dd28724ab76362d8b3e5f1f0ac397a0530202384c373cb79"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/worker/DownloadWorker.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/worker/DownloadWorker.kt changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in DownloadWorker.doWork 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/worker/DownloadWorker.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/worker/DownloadWorker.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae01beda580fd95f5e3db780e3ee744174dc143e158a91e965eb25e796bf7f3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatView.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatView.kt changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ChatViewKt.ChatView 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatView.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatView.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82e13a180292da1121a86adc208e9e503ce26cb7899fa742af3bd655d0dabb6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/services/XrLanguageTeacherTtsCoordinator.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/services/XrLanguageTeacherTtsCoordinator.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 64 in XrLanguageTeacherTtsCoordinatorKt.streamPipelinedSegments at line 477. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/services/XrLanguageTeacherTtsCoordinator.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/services/XrLanguageTeacherTtsCoordinator.kt"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"0baf56785f381616d3c31ca8a0b40aa2b198b76805ee5e65b8c01936df34a591"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelNameAndStatus.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelNameAndStatus.kt changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in ModelNameAndStatusKt.ModelStatusDetails 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelNameAndStatus.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelNameAndStatus.kt"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bcd01242ced7974d34483dc72841be54e61ff073ee4eb0233d4ff2bf6f19987"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/OptionalComponentsPanel.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/OptionalComponentsPanel.kt changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in OptionalComponentsPanelKt.OptionalComponentsPanel at line 126. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/OptionalComponentsPanel.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/OptionalComponentsPanel.kt"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"649f4444eabf37749061106ca7603585a0bfd92a229dd9f9379dd556e65e0262"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/data/DownloadRepository.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/data/DownloadRepository.kt changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in DefaultDownloadRepository.observeWorkerProgress at line 530. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/data/DownloadRepository.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/DownloadRepository.kt"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee6380ce4510be444966997c1612fdbcd71ccfaeb210921906de941f9ac1adc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherScreen.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherScreen.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 55 in XrLanguageTeacherScreenKt.XrLanguageTeacherScreen 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherScreen.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherScreen.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ae4802c452387c821a93c47732d1d44c01f038ac3abcadc9501de2e5f9979c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AgentChatScreen.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AgentChatScreen.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in AgentChatScreenKt.AgentChatScreen at line 125. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AgentChatScreen.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AgentChatScreen.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4301a02aeb1bae46ff1ea8cba03c46ea06a4ababa1c881045f1fa04b3e8c78"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/mobileactions/MobileActionsScreen.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/mobileactions/MobileActionsScreen.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in MobileActionsScreenKt.MainUi at line 281. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/mobileactions/MobileActionsScreen.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/mobileactions/MobileActionsScreen.kt"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd94bab3637746e8f12d22d87a1afee5436c9f90ae6294d6a558ba565f897d0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/XrLanguageTeacherTask.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/XrLanguageTeacherTask.kt changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in XrLanguageTeacherTask.MainScreen at line 253. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/XrLanguageTeacherTask.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/XrLanguageTeacherTask.kt"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"38bd00d32abac8cf5fd4c6c3a37a705b4ed6cf1d153604cacefdbf41ecebd6df"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/home/HomeScreen.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/home/HomeScreen.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in HomeScreenKt.HomeScreen at line 161. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/home/HomeScreen.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/home/HomeScreen.kt"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"316fa13e24bbc8d4c33cf1a942a0bdec70b825465dcdd84004bfa8e08f5bec65"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/DownloadModelPanel.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/DownloadModelPanel.kt changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in DownloadModelPanelKt.DownloadModelPanel at line 55. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/DownloadModelPanel.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/DownloadModelPanel.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f74018b2d8470820c412b891403e0d1d94e122da49d6a6d30a765e57f00755"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatScreen.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatScreen.kt changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in LlmChatScreenKt.ChatViewWrapper at line 229. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatScreen.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatScreen.kt"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ede8b334e5347c86a0e818eb17272780bb02c11def8454b85e12f53208a108b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/benchmark/BenchmarkResultsViewer.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/benchmark/BenchmarkResultsViewer.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in BenchmarkResultsViewerKt.BenchmarkResultsViewer at line 123. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/benchmark/BenchmarkResultsViewer.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/benchmark/BenchmarkResultsViewer.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd2a47264ac80fe5134ae061515da0e2e4259402ff0c9713e8442f9645796d57"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/LanguagePacksPanel.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/LanguagePacksPanel.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in LanguagePacksPanelKt.LanguageSelectionRow at line 235. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/LanguagePacksPanel.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/LanguagePacksPanel.kt"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8bf350b8b34f108b79a4de1aa35d31c916790ca61861d6a47936b1d90e8d9ff"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/common/metrics/MetricsLogger.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/common/metrics/MetricsLogger.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in MetricsLogger.buildFirebaseBundle at line 254. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/common/metrics/MetricsLogger.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/common/metrics/MetricsLogger.kt"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"53516d84d5b767f13705c3cf146e44155808294f39b54be040c09c02ec7d2969"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelRadioItem.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelRadioItem.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in ModelRadioItemKt.ModelRadioItem 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelRadioItem.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelRadioItem.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"8777b88afbc950752d1904af8bc4168d822f3b3bcca531cd670eccd01995096f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabGameChrome.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabGameChrome.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in XrLanguageTeacherVocabGameChromeKt.VocabGameScoreboard at line 254. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabGameChrome.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabGameChrome.kt"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"849edea9fa42595f2820ca4c7216a2febea58638c30eb71a1ab47808c8bf6b76"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/sessions/TruncationContextCompactor.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/sessions/TruncationContextCompactor.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in TruncationContextCompactor.compactContextReportingSize at line 80. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/sessions/TruncationContextCompactor.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/sessions/TruncationContextCompactor.kt"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5713b419d27ed359a05ae725d19eeb78c2d81e60b412e92f9361daddcd784b9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumScreen.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumScreen.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in SmartAlbumScreenKt.SmartAlbumMainContent at line 632. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumScreen.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumScreen.kt"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0317dfe82e43e461e0a3db176681254ed63dae1b67660f8f3e526f720c653b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/LiveCameraView.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/LiveCameraView.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in LiveCameraViewKt.LiveCameraView at line 68. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/LiveCameraView.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/LiveCameraView.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc45821c11f8f4b2a572cf07df1aa26aef0514d27614197496c3ce9fb293e97"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/MlKitTtsEngine.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/MlKitTtsEngine.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in MlKitTtsEngine.warmClientForLocale at line 553. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/MlKitTtsEngine.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/tts/MlKitTtsEngine.kt"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c4b57dbbf105e9a007b156210acf8cd4242f7d1b1a4e00a89f21f09db4e6d7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabPopperEngine.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabPopperEngine.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in XrLanguageTeacherVocabPopperEngine.step at line 338. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabPopperEngine.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabPopperEngine.kt"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46854eec8fe0855d1660024ee6c0e62848f7a2dd0e25c48b5a6e0a784c53ac9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabRunnerEngine.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabRunnerEngine.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in XrLanguageTeacherVocabRunnerEngine.step at line 258. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabRunnerEngine.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/models/XrLanguageTeacherVocabRunnerEngine.kt"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c49d8cdf3f0ad6e5bde06a74b450fca05ef7eacc9a1723770772f2d63acdb4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/home/SettingsDialog.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/home/SettingsDialog.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in SettingsDialogKt.SettingsDialog at line 105. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/home/SettingsDialog.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/home/SettingsDialog.kt"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b76db5c1520d2c65e69dae0a3ce0e2d8831b028b6f7b13de696db5ad533b56d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatMessageMapper.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatMessageMapper.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in ChatMessageMapper.serializeMessage at line 194. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatMessageMapper.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatMessageMapper.kt"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2694083092c0d2c3fe2e50df2c8ef9c076524b069714799f2acbbd562392bc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/PromptTemplatesPanel.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/PromptTemplatesPanel.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in PromptTemplatesPanelKt.PromptTemplatesPanel at line 111. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/PromptTemplatesPanel.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/PromptTemplatesPanel.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"408a24401ab7165961b5aac44f9728eb7db879b4345b526d30b43b857b9af0e4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherStickerModelDownload.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherStickerModelDownload.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in XrLanguageTeacherStickerModelDownloadController.onModelStatusChanged at line 234. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherStickerModelDownload.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/viewmodels/XrLanguageTeacherStickerModelDownload.kt"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"1725c41db1ccb3312c1208704de3bd7226e71a6849734835c76faf9bf0d3cf42"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/Segmenter.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/Segmenter.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in SegmenterKt.Segmenter at line 101. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/Segmenter.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/scrapbook/Segmenter.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c01a16bdeeff72c4af069d0b32525cd9f6b3450cb07eaf23cf9be2c0067b1dd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/SupplementaryModelCardMapper.kt: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/SupplementaryModelCardMapper.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in SupplementaryModelCardMapperKt.readyCard at line 207. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:16:08 -08:00\u0027 --until=\u00272026-11-10 01:16:08 -08:00\u0027 --full-history --no-merges -- Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/SupplementaryModelCardMapper.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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/SupplementaryModelCardMapper.kt"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"187c93ca3da3d90332935c5e34c22df21f6b89c3ea84fabc8cf1429e854eb054"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 9 significant file(s) lose their only recent owner: Android/src/app/src/main/java/com/google/ai/edge/gallery/common/metrics/LitertlmInferenceMetricsTracker.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/LiveMetricsBar.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/common/metrics/MetricsTracker.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/HfExploreScreen.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/common/metrics/MetricsLogger.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/HfExploreViewModel.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/common/metrics/MemoryMonitor.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/common/metrics/PeriodicSensorMonitor.kt (\u002B1 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c46a7ca9497cc7511db40c3cceec1dbe144d1a22b4661bf796cc6ae697c7bab9"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 5 significant file(s) lose their only recent owner: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ContextCompactionBanner.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatMessageMapper.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/sessions/ContextCompactor.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/FcmMessagingService.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/common/SteadinessMonitor.kt. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"2ccbb90534b20fef1152d3c613099dd94a7a2311496bc9932643d176bf999b73"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #3: If anonymized user #3 becomes unavailable, 3 significant file(s) lose their only recent owner: Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/notifications/NotificationsScreen.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/notifications/NotificationScheduleManager.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AgentChatSamplingParamsManager.kt. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f322629628181df8e7cbfc12c4dac6a344810b93a22c5471ba618f106a854d83"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(developer): Handle FCM messages here. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/FcmMessagingService.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c5302c4c4302d814657e0aa70bfe976968bdec6d2bf2ca52b4005362e8e2bc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: maybe consider downloading them in parallel. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/worker/DownloadWorker.kt"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"991da09f8b5350f975a33809e6b30dc8f9c712f5df9df1774dccbc43b5e76474"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: support other types. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelImportDialog.kt"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"b89c5fc65acdd7752ff408e471194b7a2366fcc919f59115ef0503b33dcf948d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: handle error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelImportDialog.kt"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3f50d6047c56eae0869caf8170ae2600b602fe2ed61e97cc5bd5ddf832f1e3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: handle error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/benchmark/BenchmarkViewModel.kt"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6de182be7c69c9756d205bd790e26f3344b3da90f8a50b4db38dbaf06753700"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: replace icon. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/DownloadRepository.kt"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c11086c38edcc8286299d9e0f29b1fb043a247820b7617be2be48814af12372"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(jingjin): use a \u0022queue\u0022 system to manage model init and cleanup. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/data/Model.kt"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41dc12bd9a5c627e34fc944050103cc215f0c38b2cf97b82736ee3808abcb62"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: inject prompt expander as a dependency. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AgentChatTaskModule.kt"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ad3edbc75374f23a47f4b856659e79534f4042c26a63ca8ab0ab7b2f530f16"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Replace with string resources. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/SecretEditorDialog.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"7812693042e7610aa50f479af9252313f78f1b9a026973b4f888626a30ca68de"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(before launch) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/SkillTesterBottomSheet.kt"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df6ac1ece7641e3ab39a276764b50d58ff0e56b9831a757a121a42fa4543e73"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: the repository holds project manifests and neither \u0060README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33a5992d4bd6ac1ea4b853ae69753fcd7e0410099c58731c86be53325ba8c96"}},{"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."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"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":"3da2fd5ade39674e68bb15f68b9a6800b00cffaff75b2f32078733a803cc1a69"},"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":"c433500083a67c446a5ab0b0af51e7e3780096b20171e909601be22b489c22cf"},"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":"f0a347888d4121995e99b0b1a2aa49a14529935c70e160ec057f3e7720af3fb4"},"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":"74c1fe352726c02937ad0f2252961cd3ce92ee4e1fc91b9d19b143c38a580de2"},"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":"dea0758c01ac0c1ee9b88e09a2b2a31b175e5c0537a80e69b980ff7d77c3870a"},"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":"413c28dd6d50586936bd2fd2cb0f237f504721ba96f3206c9ba5106cffde1313"},"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":"3079407dea8db84d278b085b0c4fa81566f45135176c1c72fec1824ff147328e"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ca51831384ca26007fde9208ccbe4514e590786ba00acfbc9290ff5573bfe991"},"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":"60c5d9ccc7c5ee43352de6086514ca38ea2c619c65f89c197a1485e5118937b0"},"taxa":[{"id":"CWE-601","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: LlmChatViewModel.kt \u2192 DefaultAgentRuntimeExecutor.kt, DefaultLlmSessionManager.kt, LlmSingleTurnViewModel.kt: \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatViewModel.kt\u0060 changes together with 3 other files \u2014 \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/DefaultAgentRuntimeExecutor.kt\u0060, \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/sessions/DefaultLlmSessionManager.kt\u0060, \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/LlmSingleTurnViewModel.kt\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatViewModel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f1dd342ab09c630f2e14a72df4f390aa286caed20e1461ef177db25f0b4c0a"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: LlmChatModelHelper.kt \u2194 LlmSingleTurnViewModel.kt: \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatModelHelper.kt\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/LlmSingleTurnViewModel.kt\u0060 change together 85% of the time (11 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u0060719ec396\u0060 Support visual token budget configuration in model settings; \u0060cd331f6c\u0060 Extract LlmProfile from Model.kt into an individual component.; \u0060611456bb\u0060 Support thinking mode in the chat panel. This change introduces a new\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatModelHelper.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2a2933f81765c33f7eac9dfd349b15a16bcd9874f3d61082b106c01d7f1b74"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: DefaultAgentRuntimeExecutor.kt \u2194 DefaultLlmSessionManager.kt: \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/DefaultAgentRuntimeExecutor.kt\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/sessions/DefaultLlmSessionManager.kt\u0060 change together 70% of the time (7 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u00601652109c\u0060 Create agent runtime conversations through LlmSessionManager.; \u00607de9a6be\u0060 Unify Android context compaction into a single post-turn path.; \u00600dc73928\u0060 Avoid calling createConversation twice during model initialization. \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/DefaultAgentRuntimeExecutor.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4c5913dd0f872dfe55c8b651c71519906c96d352683e16a77cb40a746f9dfd"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ChatPanel.kt \u2194 MessageBodyText.kt: \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatPanel.kt\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/MessageBodyText.kt\u0060 change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060a8e79566\u0060 Internal changes; \u0060b7042c8a\u0060 Add copy-to-clipboard functionality for chat messages; \u0060593190bf\u0060 Update the UI for both the Chat and Prompt Lab to better match the Ge\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatPanel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d85e8fe92af17498d6208253b2cb8f171d5ce6c6a5b96b7218cec0a6c20e2e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Utils.kt \u2194 ModelManagerViewModel.kt: \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/Utils.kt\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelManagerViewModel.kt\u0060 change together 62% of the time (8 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u006061c55d51\u0060 Internal changes.; \u0060283c0c01\u0060 This change introduces a unified mechanism to manage optional extra d\u2026; \u0060c2acaf08\u0060 internal changes only \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/Utils.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bcaa72c6bbddfbc695c555dec0e877b0d05dff34a377eb2f4bcee69bfa0b44b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ChatPanel.kt \u2194 Theme.kt: \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatPanel.kt\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/theme/Theme.kt\u0060 change together 62% of the time (8 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u006034c9db9a\u0060 Update empty state of various screens.; \u0060b94b5a8e\u0060 Re-layout text input to align better with ux design.; \u00603485c07e\u0060 Bug fixes: - Long message cannot be scrolled manually. - Copying mess\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatPanel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26990e061a53d293f51c7d70d561041f87c5367228b5ab8f87677a0fa96dbad9"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ModelImportDialog.kt \u2194 ModelManagerViewModel.kt: \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelImportDialog.kt\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelManagerViewModel.kt\u0060 change together 59% of the time (16 of the 27 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 16 shared commits counted here, the most recent 3 are \u00608285ef6f\u0060 Log OSS model import outcomes in ModelManagerViewModel.; \u006099bf9c40\u0060 Introduce new \u0022Test-it\u0022 task; \u00605590895a\u0060 Internal change only. \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelImportDialog.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98f8770eeb8b5a00092298e3d76b4b2dc60d78d88e57aad267c194a999e4c9a"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ModelItem.kt \u2194 ModelList.kt: \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelItem.kt\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ModelList.kt\u0060 change together 53% of the time (10 of the 19 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u0060c90b05cd\u0060 Extract BackendSpec and ModelHierarchy from Model.kt into their own c\u2026; \u006084c90c4b\u0060 Refactor \u0060showBenchmarkButton\u0060 configuration to \u0060isBenchmarkSupported\u2026; \u006021ead42c\u0060 Add support for showing related models in a single model card. Also a\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelItem.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5b9d2b96669ce4a0be3457c8ba5906baa9b752a4e254bb42389e4013168cbe"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AgentChatScreen.kt \u2194 AgentChatTaskModule.kt: \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AgentChatScreen.kt\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AgentChatTaskModule.kt\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060cd331f6c\u0060 Extract LlmProfile from Model.kt into an individual component.; \u00609db8cc93\u0060 AI Chat: Dynamically enable image and audio support based on model ca\u2026; \u0060735531ba\u0060 Temporarily forcing greedy decoding in Agent Chat for better tool cal\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AgentChatScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ebadada74c56856717137343a0298ef288329c356bb42e2c487fd828c03fad"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AgentChatTaskModule.kt \u2194 LlmChatTaskModule.kt: \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AgentChatTaskModule.kt\u0060 and \u0060Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatTaskModule.kt\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u006003f1f0fa\u0060 Move Android automatic context compaction setting to task level.; \u0060719ec396\u0060 Support visual token budget configuration in model settings; \u0060cd331f6c\u0060 Extract LlmProfile from Model.kt into an individual component. \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AgentChatTaskModule.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4045c02f8d8fb5862c19ee17e7ba33481029a2cf0e8a13e290a0dd799c298509"}},{"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":"465c2be03f7153576688996e7220bfb3f83bd6a20ba353223ae11b4e656061da"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/built-in/mood-tracker/assets/dashboard.html"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"445dbfb0ccb1396486782e4995a69d7db80c07fec9d53628edb1c7e163d2efb8"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/built-in/text-spinner/assets/webview.html"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"f11e5d703938a501570938cac1a444446ba8a3c824906e87aefdf1c467ad8bea"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/featured/restaurant-roulette/assets/ui.html"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc30993f61b52f712a8c7a8c240c5712c82d2aa7feaed03283bea255733d4844"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/built-in/mood-tracker/assets/dashboard.html"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"2680deeaeb2ab79b2b4377d799e2dfc0cac5d3f6d7b17e60373b28c82c95c456"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/built-in/mood-tracker/assets/dashboard.html"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"32948cbe468a266cf921af9a4ad384d5a06d63212bced9deae237861f7b165c6"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/featured/mood-music/assets/webview.html"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6640abc16be30f09877462e86f5f3104b07d8ee7fa572d41365c02571e103d1"}},{"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":"skills/built-in/mood-tracker/assets/dashboard.html"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"df847c9dc22303eb708d6136e6aff427d22421a27a87f78ce77767c1add65b20"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/built-in/text-spinner/assets/webview.html"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"164d6da0abe8a0c2679f0659771c4c188ed6ce513643c797841fe884e79b14c0"}},{"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":"skills/built-in/text-spinner/assets/webview.html"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d981f715fdb8cfab175b6494b6b6fed2da5bc76abe1d8e9f95362405a3f0961"}},{"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":"skills/featured/mood-music/assets/webview.html"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"193620cc224a55fe4cbc2b61131e4df50d9692cfa217f54c9ced8253a2afc602"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/featured/mood-music/scripts/index.html"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c518ebc8603a76730b8a1286c7f5d7f998681f119362a4dde09e5fe08d30f07"}},{"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":"skills/featured/mood-music/scripts/index.html"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac5f5dc0dfe7e885b752df7917fbff94660a8f217f2353f5c518eae8fa6c957f"}},{"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":"skills/featured/restaurant-roulette/assets/ui.html"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f421e57281a78df9c3c15be9b424a56e59bf62de2a4738ba942dea01915901e"}},{"ruleId":"AC3","level":"error","message":{"text":"Viewport restricts zoom: user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/featured/restaurant-roulette/assets/ui.html"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69a113f13e449e4183ee3727ed25c561522075c5da4e0d096ffdfc0d63115e8"}},{"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":"skills/featured/restaurant-roulette/assets/webview.html"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"229b930c6acdcce7aa813397cd1ad340fcb5e3db317a1a459c955dd5ad96ec49"}},{"ruleId":"AC3","level":"error","message":{"text":"Viewport restricts zoom: user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/featured/restaurant-roulette/assets/webview.html"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb925b7e0ce2189bbf8b17b925da8b1033d0c4abb8245b4b863ba965558c65a6"}},{"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":"skills/featured/virtual-piano/assets/ui.html"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0688ce8741c2e313fe67567be3a8e91856cf8c2a9a24e18628b80da33d6f529"}},{"ruleId":"AC3","level":"error","message":{"text":"Viewport restricts zoom: user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/featured/virtual-piano/assets/ui.html"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"187400644d6365a166478c6371c2fdb9b769e6fb2ed658c050f5574696eb058e"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A script attaches a click listener to this \u003Cdiv\u003E, but it has no role, no tabindex and no key handler, so it can only be operated with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/featured/mood-music/assets/webview.html"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccaad526c5d254d2b1eac931e94fbf692897e6fbdefbbd436026c4cf87d507bb"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A script attaches a click listener to this \u003Cdiv\u003E, but it has no role, no tabindex and no key handler, so it can only be operated with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/featured/restaurant-roulette/assets/ui.html"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ca3b887ed06481dcb836153903bc7f78780952a5b33513889daf4adddeec63"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.container\u0060 moves (\u0060animation: fadeIn 0.8s ease-out\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":"skills/built-in/mood-tracker/assets/dashboard.html"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ba709725de179c461c3dbfe41cbd99e42f15e042dc85ff5739110727bd41ea"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.mood-card\u0060 moves (\u0060transition: transform 0.3s\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":"skills/built-in/mood-tracker/assets/dashboard.html"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6473bc13c1147c76c5569ad41055054ab7b59067ddf392f7025c3ba353b224d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.history-item\u0060 moves (\u0060animation: slideIn 0.5s ease-out\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":"skills/built-in/mood-tracker/assets/dashboard.html"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd1da9867e1b6c28ed770082105cd09fa5aa694d2dafe0161317b8a5506a286"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.player-container\u0060 moves (\u0060animation: fadeIn 0.8s ease-out\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":"skills/featured/mood-music/assets/webview.html"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae3254ee7aac5b0a91621f2b3e62881663373b604b1665bdca009002ab94a7b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.music-icon\u0060 moves (\u0060animation: pulse 2s infinite ease-in-out\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":"skills/featured/mood-music/assets/webview.html"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"940131622820dbc655af6e2411aaffbcd6620cc8b4a6c634b09e23c36cc1b7c6"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.progress-fill\u0060 moves (\u0060transition: width 0.1s linear\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":"skills/featured/mood-music/assets/webview.html"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"d765de4e7b523e9e1beb3e74b19a27b8c8e42bbb901185d81b201e1219b378cb"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.btn-play\u0060 moves (\u0060transition: transform 0.2s,\n          box-shadow 0.2s\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":"skills/featured/mood-music/assets/webview.html"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35efc14ba5e8811d420727b46cb27930d4ce06416568f1170c7b4c738078001"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.btn-play svg\u0060 moves (\u0060transition: transform 0.2s\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":"skills/featured/mood-music/assets/webview.html"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"508a6ace1c003400f54ada444da45911156476f7818dbd710399091c15b0e7b2"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.playing .bar\u0060 moves (\u0060animation: bounce 1.2s infinite ease-in-out\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":"skills/featured/mood-music/assets/webview.html"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40a841a2a5bfa4014dee2783a426d3dff738509f7453b149b88e2eaa790499e"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.3:1): \u0060#spin-btn\u0060 sets color: white on background-color: #ff4757 \u2014 3.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/featured/restaurant-roulette/assets/ui.html"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"968ce334b563b853c5d80c08fb5a7a6ebc059dc9a113f966101fd474161ffb6a"}},{"ruleId":"AC7","level":"warning","message":{"text":"Accessibility enforcement below the top rung: No accessibility enforcement found \u2014 no accessibility linting at author time and no automated accessibility check in tests or CI. Add your UI toolkit\u0027s own accessibility assertion to the test suite (Flutter \u0060meetsGuideline\u0060, Espresso \u0060AccessibilityChecks\u0060, XCTest \u0060performAccessibilityAudit\u0060), then gate that test in the pipeline. What was searched, so you can tell an absence from a miss: the 16 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository\u0027s test and CI files \u2014 matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d46019b86eff5ddad9db289e6802ac158899e980df54c34f67722442787ead62"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful singleton: XrGlassesManager: \u0060XrGlassesManager\u0060 is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (connectedOverrideForTesting, connectionMonitorCount, audioDeviceCallback, virtualDeviceListener, onGlassesGestureListener, lastGestureTimeMs; e.g. \u0060connectedOverrideForTesting\u0060 in \u0060setGlassesConnectedForTesting\u0060 at line 143)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/xr/XrGlassesManager.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"5edf04248ca9cd9588317fe92a1ba4cf03c67898b09a42028e2590c7823450a4"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful singleton: SkillManager: \u0060SkillManager\u0060 is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (skillLoaded; e.g. \u0060skillLoaded\u0060 in \u0060loadSkills\u0060 at line 93)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/skills/SkillManager.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"5411f43a78be3b84a97c51b6de5646db45b43817f79ed66af445c282ce924975"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful singleton: TtsPlaybackController: \u0060TtsPlaybackController\u0060 is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (openReadAloudScreenCount, isAppInBackground, playbackSelection, isPreloadRequested, lastPreparedModelId, lastPreparedVoiceId; e.g. \u0060openReadAloudScreenCount\u0060 in \u0060onReadAloudScreenOpened\u0060 at line 601)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/tts/TtsPlaybackController.kt"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f1c93117ed6cad5eb50438df7cb231faaae1451fa0b172be6ae12eb8ea4e14"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"M3","level":"note","message":{"text":"No tests/ separation: Tests aren\u0027t grouped in a dedicated test folder \u2014 the test surface isn\u0027t separable from production code at a glance."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"999e0c784909c76b6346a705ee63961fe363ed1cd6a94e3f80e2ebe7820ccd5d"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add spotbugs with find-sec-bugs (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 2 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"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":"S1","level":"warning","message":{"text":"Third-party script without Subresource Integrity: \u0060https://cdn.jsdelivr.net/npm/chart.js\u0060 is executed by this page with no Subresource Integrity. Whoever can answer that request \u2014 the CDN, anyone who compromises it, anyone on the network path \u2014 runs arbitrary script in this page\u0027s origin, with its session. The URL also names no version, so it resolves to whatever that origin serves at fetch time \u2014 the executed bytes can change with nobody touching this repository. 2 such include(s) across the repository\u0027s markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/built-in/mood-tracker/assets/dashboard.html"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"e532b6e8912ea92affe4b5027dda4c1c0f8fa88d6ed5a74cc8448ae02f613260"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!hasPriorAssistantTurn \u0026\u0026 (uiState.overlayState == TeacherOverlayState.IDENTIFYING || uiState.overlayState == TeacherOverlayState.THINKING |\u2026\u0060 appears character-identically in 2 files \u2014 Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherCameraViewport.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherScreen.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/XrLanguageTeacherCameraViewport.kt"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ddf1d339d0e2c25f7c4523846fafe46488408b1f9a54f44733b5e19445c123"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isModelInitializing \u0026\u0026 !uiState.inProgress\u0060 appears character-identically in 2 files \u2014 Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatView.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmsingleturn/LlmSingleTurnScreen.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatView.kt"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d33779e5ef87a9229cb54e4a9f9830a60db8abf5e4e8170b530c29038f7f752"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_status.value is AsrServiceStatus.Recognizing || _status.value is AsrServiceStatus.Processing\u0060 appears character-identically in 2 files \u2014 Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/MlKitAsrService.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/SpeechProcessorAsrService.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/MlKitAsrService.kt"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d3373d3b341bdf7a6d886726679ba973ffa316642558165e4389bac2016b36"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060anchorBounds.width \u003C= 0 || anchorBounds.height \u003C= 0\u0060 appears character-identically in 2 files \u2014 Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherSettingsTooltip.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/AudioConfigOnboardingTooltip.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/cameraview/XrLanguageTeacherSettingsTooltip.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"80081ee3478d2cf0908af848ebadae85e0c7802b340c7b049d9ac95332b4b2a1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060asset.contentUri.scheme == \u0022file\u0022 || asset.contentUri.toString().startsWith(\u0022file://\u0022)\u0060 appears character-identically in 2 files \u2014 Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SampleAlbumStorageManager.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SampleAlbumStorageManager.kt"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"d83dd95497755a5cae64f0495f709e00bc948617e3cb86e2d28f640f3a3b0639"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060curDownloadStatus == ModelDownloadStatusType.SUCCEEDED \u0026\u0026 (!isModelInitialized || uiState.processing)\u0060 appears character-identically in 2 files \u2014 Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/mobileactions/MobileActionsScreen.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/tinygarden/TinyGardenScreen.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/mobileactions/MobileActionsScreen.kt"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f64f0e49785dda745da4e5027463166a647f6dce80d64143d1f2a619ca58f1c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060currentTokens \u003E 0 \u0026\u0026 maxTokens \u003E 0 \u0026\u0026 currentTokens \u003E (maxTokens * TOKEN_LIMIT_THRESHOLD_RATIO)\u0060 appears character-identically in 2 files \u2014 Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/sessions/SummarizationContextCompactor.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/sessions/TruncationContextCompactor.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/sessions/SummarizationContextCompactor.kt"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eab8bc652cec1d98a35bddee9d00d697968c58462ca6f46fd88fcc3dcf34987"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060downloadStatus?.status == ModelDownloadStatusType.UNAVAILABLE \u0026\u0026 unavailability != null\u0060 appears character-identically in 2 files \u2014 Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelItem.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelRadioItem.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/modelitem/ModelItem.kt"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"b27c8a04ed55e43fcf344a33faaa491930c454a8cc6584bca9528bfee7aec8a3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060finalizedSegments.isNotEmpty() \u0026\u0026 !finalizedSegments.endsWith(\u0022 \u0022)\u0060 appears character-identically in 2 files \u2014 Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/MlKitAsrService.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/SystemSpeechAsrService.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/asr/MlKitAsrService.kt"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"66496cbcdd6b3027ac431e575458d5666b2c5910eeb5b6850a02e5442f60203b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lastProgressPanelMessage != null \u0026\u0026 lastProgressPanelMessage is ChatMessageCollapsableProgressPanel\u0060 appears character-identically in 2 files \u2014 Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AgentChatScreen.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/ChatViewModel.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/AgentChatScreen.kt"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0aaea044b68d67067a2e6c8194347745629fd48a86cc8b560496b17587c5aaf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lockedActionLabel != null \u0026\u0026 onLockedAction != null\u0060 appears character-identically in 2 files \u2014 Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherLanguageStudyCard.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabGameStartView.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherLanguageStudyCard.kt"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"039c8ca898257a1b143dc08ba2ec6ce283bc767222241bd3af559e964f5109a3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060maxDim \u003E targetDimension \u0026\u0026 targetDimension \u003E 0\u0060 appears character-identically in 2 files \u2014 Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SampleAlbumStorageManager.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SampleAlbumStorageManager.kt"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"190433b23f85950f72a2a9cd52f63f6b3a57bdeea3b084dd54ad71473f9d6b00"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060points != null \u0026\u0026 uiState.celebrationMultiplier \u003E 1\u0060 appears character-identically in 2 files \u2014 Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabPopperScreen.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabRunnerScreen.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/views/studyview/XrLanguageTeacherVocabPopperScreen.kt"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d288b5592178f07065c13fa44b6caeb060adb09bc01f6b1dc382fb893d509c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060project.overlapDurationSec \u003E= 0 \u0026\u0026 project.framesPerWindow \u003E 0\u0060 appears character-identically in 2 files \u2014 Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/ProjectDetailsScreen.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/VideoMomentFinderViewModel.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/ProjectDetailsScreen.kt"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16bcfec3817ebeec45698b05f1f5e3db3c920e28d93fc1491e3191fc8638c90"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060showProgressPopup \u0026\u0026 isIndexingIncomplete \u0026\u0026 !isCardDismissed\u0060 appears character-identically in 2 files \u2014 Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumScreen.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumSearchScreen.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/smartalbum/SmartAlbumScreen.kt"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe80443957fefd1b6147e7dc4bb5e02293ec8215f95363e50af5074c93d8245"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060state.continuesInBackground \u0026\u0026 !state.cancellable\u0060 appears character-identically in 2 files \u2014 Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ConfigAudioTabMapper.kt, Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/SupplementaryModelCardMapper.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/modelmanager/ConfigAudioTabMapper.kt"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"0511af98400be90807eb80a66b96c83f99a4b2b58b8f04cb19f7a339e32e1945"}},{"ruleId":"X2","level":"note","message":{"text":"Not all suspend functions that make a request accept the coroutine\u0027s cancellation: Only 0/1 suspend functions that make a cancellable request (Ktor, OkHttp newCall, URL streams) accept the coroutine\u0027s cancellation or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a screen navigated away from, a disposed widget, a superseded search. In a 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":"97a0137a13dc63b0e07ec4e232770b687c26a8a2030f49787e45a4506416c527"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: addSkillFromUrl: \u0060addSkillFromUrl\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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/skills/SkillManager.kt"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33830f682f50b16ed644e047c695634d52e8eafb1a1661209f20eb937bbc7be"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/llmchat/LlmChatModelHelper.kt"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b25bb65922c35c4c771ddd71229b112c2390a68f97bdd1f9788c20230f96c53"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ConfigDialog.kt"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3c8d47990c93c5449c6d0e024b1e5b8b7d6b509cc2b1d3a4a0f26a0534ee4e"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ConfigDialog.kt"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3bb7af06c80876e1dda01c4ab9bd0b218ac5fb24ce9038fff1c51487eba4337"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ConfigDialog.kt"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0508a230756ae497c6924ca7bdb88a37ad861e92a068ce21773e3d5e52bb6cc"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ConfigDialog.kt"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8dac34a6493e0a84cc31293b5704f9e22ca36b91f0632284703f79bc5e58f49"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ConfigDialog.kt"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0cebc7785a3dfed8f4f7472e63818cad72805356457539de9eebef4e82f4ab0"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/chat/AudioPlaybackPanel.kt"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"71791edf5b2ebfd1abbb674401fc8a6f97aa1086f3817cc8dff4481dfade796b"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/skills/SkillManager.kt"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"91563bfd907e49dac67cc1b0ea75241593580294d38c20f41fe0f70bda823f79"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/skills/SkillManager.kt"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"2503fb302408e7ac5bcaf2627748af11b14f9888be63affdb584db72e53aaaca"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"d798ce63243056678fb70fee5bdeb319da3cab121d04f53e8d364c97736c1d10"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f528534876cd596e9eb224651eecea8a40faee0aeec0cfede5531378054cd3f"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":1147}}}],"partialFingerprints":{"codehealthFindingId/v1":"dddf2c77625838a74b889f043e4e3f18e52ef5f9cb782a9ff7393d46631c2f0f"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":1221}}}],"partialFingerprints":{"codehealthFindingId/v1":"133c135fe5de3437c24b9638eb000c97ae139f3442c02c867a6dd5c49501c661"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":1294}}}],"partialFingerprints":{"codehealthFindingId/v1":"9972a0f0b285c6f91db6d4346985f1556b5c57ff8a717444121316cd6718b616"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f970f99496e4da4a1def465effe2c51dba4db4e3992dcf8a6871be98c9fdd7"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/services/photolibrary/PhotoLibraryService.kt"},"region":{"startLine":1386}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2017b76a086d69e3f1e0c7902353b27d4bce39d2fff5686ee98dac7b6eb4a85"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/runtime/aicore/AICoreModelHelper.kt"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac535d76ecf82f4ec853b1de6b0bd1271528e8eeb9ff2899222e011d3908361c"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/xr/GlassesCameraStream.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e13a257865bf238b3a18fcee34441cadd2a21e945ff8b6679d5f887d5ee29f9"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/xr/GlassesCameraStream.kt"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"d380c9b3d6cee442a59072cb128688de19ed1403c4fd6fb979cc4554d4ee539f"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/xr/GlassesCameraStream.kt"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e10b83317b7125220fb4ef4ee25025cd549891a58e53313e0e0f9587c71f507"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/xr/GlassesCameraStream.kt"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"e778d8c4ea542562e5dfd4f5d4f18e99716ec83c92f02841424a66f1e1e22c3a"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/xr/GlassesCameraStream.kt"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8226254f3cfe7d312d7e8fa75890dce86b8b36a8d760db64023e3abf9924871"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/xr/XrGlassesManager.kt"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"4026e68eedf0722360960b8791b65a961146d5c0a457e07fcebb0390fd27e961"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/xrlanguageteacher/services/XrLanguageTeacherTtsCoordinator.kt"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18d918871c4959b513da271b39094db00045f20358eda801bebecb034ff59cc"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/Common.kt"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"6907eab64bb72f3afa245a639b82bd850fb666c43569949dd32ffb8e2a146613"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/Common.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ce87b4942b393ab20cc6301ac2ba832362653db16256b4406b57e83dcfdc55"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/Common.kt"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14b4bb632f883881b084c2a116fc189bfad6bd2fb9550f392496634e78c52cc"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/Mp4Normalizer.kt"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3f49dde6ac3384a9e1e72205b5b8f5a4fba474c7337cc7ffc477f4d7fb38cc"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/Mp4Normalizer.kt"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"c48c7640393e63fa89807f6e280e5939a5d1023ccca1a2eb463f498eaff3038e"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/Mp4Normalizer.kt"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5c7f9f4c648bd3eb4bef348e4289093348282ea011f0bd027d6b21aa4f7d8c"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/videomomentfinder/Mp4Normalizer.kt"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"4540ef6461e7e62ef88e5de1c2611802fb8ae13bdc0d1e439261471227b40037"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/customtasks/agentchat/McpToolCallPermissionDialog.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"785e0170d4eebfc62739136ccf9f8610019657385c87b1c03614bd96353cf908"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/common/ImageUtils.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9d43162fce5a0e6af2d14445cd454607510c2c4fdb0344b9617e81c4006f07"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/common/metrics/ConversationSession.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b4895445c5dac3444496ec692dfb493e35787b50a84079380c1cb5448c261b"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/sessions/SummarizationContextCompactor.kt"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1389d742cbe0aae3cbde2f4b3b6b7fd5a011fc84d4e78c59731f9950fa511e"}},{"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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/agent/sessions/TruncationContextCompactor.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c000c2d51e8471cbb8bed76fdaeff5c0e6f04288d984035795c59ed30237ae"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getTextFieldDisplayValue\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":"Android/src/app/src/main/java/com/google/ai/edge/gallery/ui/common/ConfigDialog.kt"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0dd7aac5ede6eba3094653e72ca74781bf91b2c7a89aad0e44d5d02c8aa4c2"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1329","guid":"f70f1c3f-4ccf-cb5e-bdd3-03ba4868d36d","name":"Reliance on Component That is Not Updateable","shortDescription":{"text":"Reliance on Component That is Not Updateable"},"helpUri":"https://cwe.mitre.org/data/definitions/1329.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-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-601","guid":"9b8963d5-129b-475c-90cf-2d1766e66f2f","name":"URL Redirection to Untrusted Site (\u0027Open Redirect\u0027)","shortDescription":{"text":"URL Redirection to Untrusted Site (\u0027Open Redirect\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/601.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":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":11,"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."]}]}